Return the torque (in Newtons * meters) on body 2 required to satisfy the joint constraint in world-space * @return The current torque (in Newtons * meters) applied on body 2 */
| 321 | * @return The current torque (in Newtons * meters) applied on body 2 |
| 322 | */ |
| 323 | Vector3 SliderJoint::getReactionTorque(decimal timeStep) const { |
| 324 | |
| 325 | assert(timeStep > MACHINE_EPSILON); |
| 326 | return mWorld.mSliderJointsComponents.getImpulseRotation(mEntity) / timeStep; |
| 327 | } |
| 328 | |
| 329 | // Return a string representation |
| 330 | std::string SliderJoint::to_string() const { |
nothing calls this directly
no outgoing calls
no test coverage detected