Fix compilation issues

This commit is contained in:
Daniel Chappuis 2020-10-14 20:40:41 +02:00
parent 8f5a7a12cb
commit 8c7a709ebe
2 changed files with 4 additions and 4 deletions

View File

@ -63,8 +63,8 @@ void SolveHingeJointSystem::initBeforeSolve() {
const uint32 componentIndexBody1 = mRigidBodyComponents.getEntityIndex(body1Entity);
const uint32 componentIndexBody2 = mRigidBodyComponents.getEntityIndex(body2Entity);
assert(!mRigidBodyComponents.mIsEntityDisabled[componentIndexBody1]);
assert(!mRigidBodyComponents.mIsEntityDisabled[componentIndexBody2]);
assert(!mRigidBodyComponents.getIsEntityDisabled(body1Entity));
assert(!mRigidBodyComponents.getIsEntityDisabled(body2Entity));
// Get the inertia tensor of bodies
mHingeJointComponents.mI1[i] = mRigidBodyComponents.mInverseInertiaTensorsWorld[componentIndexBody1];

View File

@ -63,8 +63,8 @@ void SolveSliderJointSystem::initBeforeSolve() {
const uint32 componentIndexBody1 = mRigidBodyComponents.getEntityIndex(body1Entity);
const uint32 componentIndexBody2 = mRigidBodyComponents.getEntityIndex(body2Entity);
assert(!mRigidBodyComponents.mIsEntityDisabled[componentIndexBody1]);
assert(!mRigidBodyComponents.mIsEntityDisabled[componentIndexBody2]);
assert(!mRigidBodyComponents.getIsEntityDisabled(body1Entity));
assert(!mRigidBodyComponents.getIsEntityDisabled(body2Entity));
// Get the inertia tensor of bodies
mSliderJointComponents.mI1[i] = mRigidBodyComponents.mInverseInertiaTensorsWorld[componentIndexBody1];