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

Method resetLimits

src/constraint/BallAndSocketJoint.cpp:130–137  ·  view source on GitHub ↗

Reset the limits

Source from the content-addressed store, hash-verified

128
129// Reset the limits
130void BallAndSocketJoint::resetLimits() {
131
132 // Reset the accumulated impulses for the limits
133 mWorld.mBallAndSocketJointsComponents.setConeLimitImpulse(mEntity, decimal(0.0));
134
135 // Wake up the two bodies of the joint
136 awakeBodies();
137}
138
139// Return the force (in Newtons) on body 2 required to satisfy the joint constraint in world-space
140/**

Callers

nothing calls this directly

Calls 1

setConeLimitImpulseMethod · 0.80

Tested by

no test coverage detected