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

Method resetLimits

src/constraint/HingeJoint.cpp:154–162  ·  view source on GitHub ↗

Reset the limits

Source from the content-addressed store, hash-verified

152
153// Reset the limits
154void HingeJoint::resetLimits() {
155
156 // Reset the accumulated impulses for the limits
157 mWorld.mHingeJointsComponents.setImpulseLowerLimit(mEntity, decimal(0.0));
158 mWorld.mHingeJointsComponents.setImpulseUpperLimit(mEntity, decimal(0.0));
159
160 // Wake up the two bodies of the joint
161 awakeBodies();
162}
163
164// Set the motor speed
165/**

Callers

nothing calls this directly

Calls 2

setImpulseLowerLimitMethod · 0.45
setImpulseUpperLimitMethod · 0.45

Tested by

no test coverage detected