Enable/Disable the motor of the joint * @param isMotorEnabled True if you want to enable the motor of the joint and * false otherwise */
| 104 | * false otherwise |
| 105 | */ |
| 106 | void HingeJoint::enableMotor(bool isMotorEnabled) { |
| 107 | |
| 108 | mWorld.mHingeJointsComponents.setIsMotorEnabled(mEntity, isMotorEnabled); |
| 109 | mWorld.mHingeJointsComponents.setImpulseMotor(mEntity, decimal(0.0)); |
| 110 | |
| 111 | // Wake up the two bodies of the joint |
| 112 | awakeBodies(); |
| 113 | } |
| 114 | |
| 115 | // Set the minimum angle limit |
| 116 | /** |
nothing calls this directly
no test coverage detected