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

Method getReactionTorque

src/constraint/FixedJoint.cpp:87–90  ·  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

85 * @return The current torque (in Newtons * meters) applied on body 2
86 */
87Vector3 FixedJoint::getReactionTorque(decimal timeStep) const {
88 assert(timeStep > MACHINE_EPSILON);
89 return mWorld.mFixedJointsComponents.getImpulseRotation(mEntity) / timeStep;
90}
91
92// Return a string representation
93std::string FixedJoint::to_string() const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected