Fix compilation issues
This commit is contained in:
parent
8f5a7a12cb
commit
8c7a709ebe
|
@ -63,8 +63,8 @@ void SolveHingeJointSystem::initBeforeSolve() {
|
||||||
const uint32 componentIndexBody1 = mRigidBodyComponents.getEntityIndex(body1Entity);
|
const uint32 componentIndexBody1 = mRigidBodyComponents.getEntityIndex(body1Entity);
|
||||||
const uint32 componentIndexBody2 = mRigidBodyComponents.getEntityIndex(body2Entity);
|
const uint32 componentIndexBody2 = mRigidBodyComponents.getEntityIndex(body2Entity);
|
||||||
|
|
||||||
assert(!mRigidBodyComponents.mIsEntityDisabled[componentIndexBody1]);
|
assert(!mRigidBodyComponents.getIsEntityDisabled(body1Entity));
|
||||||
assert(!mRigidBodyComponents.mIsEntityDisabled[componentIndexBody2]);
|
assert(!mRigidBodyComponents.getIsEntityDisabled(body2Entity));
|
||||||
|
|
||||||
// Get the inertia tensor of bodies
|
// Get the inertia tensor of bodies
|
||||||
mHingeJointComponents.mI1[i] = mRigidBodyComponents.mInverseInertiaTensorsWorld[componentIndexBody1];
|
mHingeJointComponents.mI1[i] = mRigidBodyComponents.mInverseInertiaTensorsWorld[componentIndexBody1];
|
||||||
|
|
|
@ -63,8 +63,8 @@ void SolveSliderJointSystem::initBeforeSolve() {
|
||||||
const uint32 componentIndexBody1 = mRigidBodyComponents.getEntityIndex(body1Entity);
|
const uint32 componentIndexBody1 = mRigidBodyComponents.getEntityIndex(body1Entity);
|
||||||
const uint32 componentIndexBody2 = mRigidBodyComponents.getEntityIndex(body2Entity);
|
const uint32 componentIndexBody2 = mRigidBodyComponents.getEntityIndex(body2Entity);
|
||||||
|
|
||||||
assert(!mRigidBodyComponents.mIsEntityDisabled[componentIndexBody1]);
|
assert(!mRigidBodyComponents.getIsEntityDisabled(body1Entity));
|
||||||
assert(!mRigidBodyComponents.mIsEntityDisabled[componentIndexBody2]);
|
assert(!mRigidBodyComponents.getIsEntityDisabled(body2Entity));
|
||||||
|
|
||||||
// Get the inertia tensor of bodies
|
// Get the inertia tensor of bodies
|
||||||
mSliderJointComponents.mI1[i] = mRigidBodyComponents.mInverseInertiaTensorsWorld[componentIndexBody1];
|
mSliderJointComponents.mI1[i] = mRigidBodyComponents.mInverseInertiaTensorsWorld[componentIndexBody1];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user