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

Method getReactionForce

src/constraint/FixedJoint.cpp:78–81  ·  view source on GitHub ↗

Return the force (in Newtons) on body 2 required to satisfy the joint constraint in world-space * @return The current force (in Newtons) applied on body 2 */

Source from the content-addressed store, hash-verified

76 * @return The current force (in Newtons) applied on body 2
77 */
78Vector3 FixedJoint::getReactionForce(decimal timeStep) const {
79 assert(timeStep > MACHINE_EPSILON);
80 return mWorld.mFixedJointsComponents.getImpulseTranslation(mEntity) / timeStep;
81}
82
83// Return the torque (in Newtons * meters) on body 2 required to satisfy the joint constraint in world-space
84/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected