Enable/Disable the limits of the joint * @param isLimitEnabled True if you want to enable the joint limits and false * otherwise */
| 96 | * otherwise |
| 97 | */ |
| 98 | void SliderJoint::enableLimit(bool isLimitEnabled) { |
| 99 | |
| 100 | bool isEnabled = mWorld.mSliderJointsComponents.getIsLimitEnabled(mEntity); |
| 101 | |
| 102 | if (isLimitEnabled != isEnabled) { |
| 103 | |
| 104 | mWorld.mSliderJointsComponents.setIsLimitEnabled(mEntity, isLimitEnabled); |
| 105 | |
| 106 | // Reset the limits |
| 107 | resetLimits(); |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | // Enable/Disable the motor of the joint |
| 112 | /** |
nothing calls this directly
no test coverage detected