mirror of https://github.com/PrimeDecomp/prime.git
Fix CUnitVector3f non-match
This commit is contained in:
parent
87c0a6041c
commit
60c82b0a89
|
@ -8,7 +8,7 @@
|
|||
class CUnitVector3f : public CVector3f {
|
||||
public:
|
||||
CUnitVector3f(f32 x, f32 y, f32 z) : CVector3f(x, y, z) { Normalize(); }
|
||||
CUnitVector3f(const CVector3f& vec) : CVector3f(vec) { Normalize(); }
|
||||
CUnitVector3f(const CVector3f& vec);// : CVector3f(vec) { Normalize(); }
|
||||
// TODO
|
||||
};
|
||||
CHECK_SIZEOF(CUnitVector3f, 0xc)
|
||||
|
|
|
@ -642,7 +642,7 @@ void CScriptSpecialFunction::ThinkIntroBossRingController(float dt, CStateManage
|
|||
case kRS_Rotate: {
|
||||
x1ac_ringRotateTarget =
|
||||
CQuaternion::AxisAngle(
|
||||
CVector3f(0.f, 0.f, 1.f),
|
||||
CUnitVector3f(0.f, 0.f, 1.f),
|
||||
CRelAngle::FromDegrees(xfc_float1 * (x1b8_ringReverse ? 1.f : -1.f) * dt))
|
||||
.Transform(x1ac_ringRotateTarget);
|
||||
bool allReachedTarget = true;
|
||||
|
|
Loading…
Reference in New Issue