2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 05:07:43 +00:00

More bug fixes

This commit is contained in:
Jack Andersen
2018-05-17 18:16:33 -10:00
parent 055c8e8a47
commit 979a54a8a8
18 changed files with 242 additions and 232 deletions

View File

@@ -66,12 +66,12 @@ CVECone::CVECone(CVectorElement* a, CRealElement* b)
{
zeus::CVector3f av;
x4_direction->GetValue(0, av);
av.normalize();
if (av[0] > 0.8)
zeus::CVector3f avNorm = av.normalized();
if (avNorm.x > 0.8)
xc_xVec = av.cross(zeus::CVector3f(0.f, 1.f, 0.f));
else
xc_xVec = av.cross(zeus::CVector3f(1.f, 0.f, 0.f));
x18_yVec = av.cross(xc_xVec);
x18_yVec = avNorm.cross(xc_xVec);
}
bool CVECone::GetValue(int frame, zeus::CVector3f& valOut) const