MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / getReactionTorque

Method getReactionTorque

src/constraint/SliderJoint.cpp:323–327  ·  view source on GitHub ↗

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 */

Source from the content-addressed store, hash-verified

321 * @return The current torque (in Newtons * meters) applied on body 2
322 */
323Vector3 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
330std::string SliderJoint::to_string() const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected