diff --git a/include/egg/math/eggRotation.h b/include/egg/math/eggRotation.h index 97910e97..b1e1e075 100644 --- a/include/egg/math/eggRotation.h +++ b/include/egg/math/eggRotation.h @@ -13,7 +13,7 @@ struct Rotation { mRot = other.mRot; } Rotation &operator=(const Rotation &other) { - mRot = val; + mRot = other.mRot; return *this; } Rotation &operator=(T val) { diff --git a/src/toBeSorted/d_path.cpp b/src/toBeSorted/d_path.cpp index ff89b7fe..43b2b896 100644 --- a/src/toBeSorted/d_path.cpp +++ b/src/toBeSorted/d_path.cpp @@ -409,7 +409,7 @@ bool dPath_c::getDirection(s32 pointIndex, f32 time, mVec3_c &out) const { b = 3.f * (currPos + nextControl) - 6.f * currControl; c = 3.f * (currControl - currPos); - out = a * (time * time * 3.f) + b * (time * 2.f); + out = a * (time * time * 3.f) + b * (time * 2.f) + c; } f32 mag = out.mag();