mirror of https://github.com/PrimeDecomp/prime.git
parent
cd85b46d6d
commit
682ce50113
|
@ -8,7 +8,7 @@
|
||||||
class CUnitVector3f : public CVector3f {
|
class CUnitVector3f : public CVector3f {
|
||||||
public:
|
public:
|
||||||
CUnitVector3f(f32 x, f32 y, f32 z) : CVector3f(x, y, z) { Normalize(); }
|
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
|
// TODO
|
||||||
};
|
};
|
||||||
CHECK_SIZEOF(CUnitVector3f, 0xc)
|
CHECK_SIZEOF(CUnitVector3f, 0xc)
|
||||||
|
|
|
@ -642,7 +642,7 @@ void CScriptSpecialFunction::ThinkIntroBossRingController(float dt, CStateManage
|
||||||
case kRS_Rotate: {
|
case kRS_Rotate: {
|
||||||
x1ac_ringRotateTarget =
|
x1ac_ringRotateTarget =
|
||||||
CQuaternion::AxisAngle(
|
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))
|
CRelAngle::FromDegrees(xfc_float1 * (x1b8_ringReverse ? 1.f : -1.f) * dt))
|
||||||
.Transform(x1ac_ringRotateTarget);
|
.Transform(x1ac_ringRotateTarget);
|
||||||
bool allReachedTarget = true;
|
bool allReachedTarget = true;
|
||||||
|
|
Loading…
Reference in New Issue