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

Method getMotorTorque

src/constraint/HingeJoint.cpp:251–253  ·  view source on GitHub ↗

Return the intensity of the current torque applied for the joint motor * @param timeStep The current time step (in seconds) * @return The intensity of the current torque (in Newtons) of the joint motor */

Source from the content-addressed store, hash-verified

249 * @return The intensity of the current torque (in Newtons) of the joint motor
250 */
251decimal HingeJoint::getMotorTorque(decimal timeStep) const {
252 return mWorld.mHingeJointsComponents.getImpulseMotor(mEntity) / timeStep;
253}
254
255// Return the current hinge angle
256/**

Callers

nothing calls this directly

Calls 1

getImpulseMotorMethod · 0.45

Tested by

no test coverage detected