Set the motor speed * @param motorSpeed The speed of the joint motor (in meters per second) */
| 208 | * @param motorSpeed The speed of the joint motor (in meters per second) |
| 209 | */ |
| 210 | void 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 | /** |
nothing calls this directly
no test coverage detected