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

Method setMotorSpeed

src/constraint/SliderJoint.cpp:210–219  ·  view source on GitHub ↗

Set the motor speed * @param motorSpeed The speed of the joint motor (in meters per second) */

Source from the content-addressed store, hash-verified

208 * @param motorSpeed The speed of the joint motor (in meters per second)
209 */
210void SliderJoint::setMotorSpeed(decimal motorSpeed) {
211
212 if (motorSpeed != mWorld.mSliderJointsComponents.getMotorSpeed(mEntity)) {
213
214 mWorld.mSliderJointsComponents.setMotorSpeed(mEntity, motorSpeed);
215
216 // Wake up the two bodies of the joint
217 awakeBodies();
218 }
219}
220
221// Set the maximum motor force
222/**

Callers

nothing calls this directly

Calls 1

getMotorSpeedMethod · 0.45

Tested by

no test coverage detected