Replies: 1 comment 2 replies
-
Hello, Yes, it seems to be useless but the only thing is that the 'inverseMass' of a body can also be zero that is useful to simulate a static body that cannot move. Therefore, if we remove the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I might be wrong here as I haven't worked through all the code so far and I'm assuming inverseMass is always 1/m but isn't in DynamicsSystem.cpp line 152
mRigidBodyComponents.mConstrainedLinearVelocities[i] = mRigidBodyComponents.mConstrainedLinearVelocities[i] + timeStep * mRigidBodyComponents.mInverseMasses[i] * mRigidBodyComponents.mLinearLockAxisFactors[i] * mRigidBodyComponents.mMasses[i] * mGravity;
the inversMass * Mass always 1 and thus irrelevant?
Beta Was this translation helpful? Give feedback.
All reactions