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

Method getReactionForce

src/constraint/BallAndSocketJoint.cpp:143–146  ·  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

141 * @return The current force (in Newtons) applied on body 2
142 */
143Vector3 BallAndSocketJoint::getReactionForce(decimal timeStep) const {
144 assert(timeStep > MACHINE_EPSILON);
145 return mWorld.mBallAndSocketJointsComponents.getImpulse(mEntity) / timeStep;
146}
147
148// Return the torque (in Newtons * meters) on body 2 required to satisfy the joint constraint in world-space
149/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected