Reset the external force and torque applied to the bodies
| 184 | |
| 185 | // Reset the external force and torque applied to the bodies |
| 186 | void DynamicsSystem::resetBodiesForceAndTorque() { |
| 187 | |
| 188 | // For each body of the world |
| 189 | const uint32 nbRigidBodyComponents = mRigidBodyComponents.getNbComponents(); |
| 190 | for (uint32 i=0; i < nbRigidBodyComponents; i++) { |
| 191 | mRigidBodyComponents.mExternalForces[i].setToZero(); |
| 192 | mRigidBodyComponents.mExternalTorques[i].setToZero(); |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | // Reset the split velocities of the bodies |
| 197 | void DynamicsSystem::resetSplitVelocities() { |
no test coverage detected