Showing the changes to libraries/physics/src/ObjectActionSpring.cpp (1 of 4 files). Show all
Unified · Split
| @@ -92,7 +92,7 @@ void ObjectActionSpring::updateActionWorker(btScalar deltaTimeStep) { · 91 unmodified lines | ||
| 92 | 92 | // dQ = Q1 * Q0^ |
| 93 | 93 | btQuaternion deltaQ = target * bodyRotation.inverse(); |
| 94 | 94 | float angle = deltaQ.getAngle(); |
| 95 | − const float MIN_ANGLE = 1.0e-4; | |
| 95 | + const float MIN_ANGLE = 1.0e-4f; | |
| 96 | 96 | if (angle > MIN_ANGLE) { |
| 97 | 97 | targetVelocity = (angle / _angularTimeScale) * deltaQ.getAxis(); |
| 98 | 98 | } |