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

Method resetLimits

src/constraint/SliderJoint.cpp:196–204  ·  view source on GitHub ↗

Reset the limits

Source from the content-addressed store, hash-verified

194
195// Reset the limits
196void SliderJoint::resetLimits() {
197
198 // Reset the accumulated impulses for the limits
199 mWorld.mSliderJointsComponents.setImpulseLowerLimit(mEntity, decimal(0.0));
200 mWorld.mSliderJointsComponents.setImpulseUpperLimit(mEntity, decimal(0.0));
201
202 // Wake up the two bodies of the joint
203 awakeBodies();
204}
205
206// Set the motor speed
207/**

Callers

nothing calls this directly

Calls 2

setImpulseLowerLimitMethod · 0.45
setImpulseUpperLimitMethod · 0.45

Tested by

no test coverage detected