Enable/Disable the motor of the joint * @param isMotorEnabled True if you want to enable the joint motor and false * otherwise */
| 114 | * otherwise |
| 115 | */ |
| 116 | void SliderJoint::enableMotor(bool isMotorEnabled) { |
| 117 | |
| 118 | mWorld.mSliderJointsComponents.setIsMotorEnabled(mEntity, isMotorEnabled); |
| 119 | mWorld.mSliderJointsComponents.setImpulseMotor(mEntity, decimal(0.0)); |
| 120 | |
| 121 | // Wake up the two bodies of the joint |
| 122 | awakeBodies(); |
| 123 | } |
| 124 | |
| 125 | // Return the current translation value of the joint |
| 126 | /** |
nothing calls this directly
no test coverage detected