2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 17:44:56 +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

@@ -176,6 +176,7 @@ public:
boo::ObjToken<boo::IGraphicsBufferD> m_uniformBufPmus;
CGenDescription* GetDesc() {return x1c_genDesc.GetObj();}
const SObjectTag* GetDescTag() const {return x1c_genDesc.GetObjectTag();}
static bool g_ParticleSystemInitialized;
static int g_ParticleAliveCount;

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