mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:07:42 +00:00
ANCS PAS I/O fix
This commit is contained in:
@@ -185,6 +185,8 @@ void CPhysicsActor::MoveToWR(const zeus::CVector3f& trans, float d) {
|
||||
zeus::CAxisAngle CPhysicsActor::GetRotateToORAngularMomentumWR(const zeus::CQuaternion& q, float d) const {
|
||||
if (q.w() > 0.99999976)
|
||||
return zeus::CAxisAngle::skZero;
|
||||
if (GetEditorId().Id() == 0x77)
|
||||
printf("%f\n", q.yaw());
|
||||
return (xf0_inertiaTensor *
|
||||
(((2.f * std::acos(q.w())) * (1.f / d)) * x34_transform.rotate(q.getImaginary()).normalized()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user