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

Method getMotorForce

src/constraint/SliderJoint.cpp:244–246  ·  view source on GitHub ↗

Return the intensity of the current force applied for the joint motor * @param timeStep Time step (in seconds) * @return The current force of the joint motor (in Newton x meters) */

Source from the content-addressed store, hash-verified

242 * @return The current force of the joint motor (in Newton x meters)
243 */
244decimal SliderJoint::getMotorForce(decimal timeStep) const {
245 return mWorld.mSliderJointsComponents.getImpulseMotor(mEntity) / timeStep;
246}
247
248// Return true if the limits or the joint are enabled
249/**

Callers

nothing calls this directly

Calls 1

getImpulseMotorMethod · 0.45

Tested by

no test coverage detected