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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user