Showing the changes to libraries/physics/src/ObjectMotionState.cpp (1 of 5 files). Show all
Unified · Split
| @@ -179,7 +179,7 @@ bool ObjectMotionState::shouldSendUpdate(uint32_t simulationFrame) { · 178 unmodified lines | ||
| 179 | 179 | // Bullet caps the effective rotation velocity inside its rotation integration step, therefore |
| 180 | 180 | // we must integrate with the same algorithm and timestep in order achieve similar results. |
| 181 | 181 | for (int i = 0; i < numFrames; ++i) { |
| 182 | − _sentRotation = glm::normalize(bulletRotationStep(_sentAngularVelocity, PHYSICS_ENGINE_FIXED_SUBSTEP) * _sentRotation); | |
| 182 | + _sentRotation = glm::normalize(computeBulletRotationStep(_sentAngularVelocity, PHYSICS_ENGINE_FIXED_SUBSTEP) * _sentRotation); | |
| 183 | 183 | } |
| 184 | 184 | } |
| 185 | 185 | const float MIN_ROTATION_DOT = 0.99f; // 0.99 dot threshold coresponds to about 16 degrees of slop |