mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
fix warning
This commit is contained in:
parent
178a68c967
commit
55b68ad4b1
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ void ObjectActionTravelOriented::updateActionWorker(btScalar deltaTimeStep) {
|
|||
// find normalized velocity
|
||||
glm::vec3 velocity = bulletToGLM(rigidBody->getLinearVelocity());
|
||||
float speed = glm::length(velocity);
|
||||
const float TRAVEL_ORIENTED_TOO_SLOW = 0.001; // meters / second
|
||||
const float TRAVEL_ORIENTED_TOO_SLOW = 0.001f; // meters / second
|
||||
if (speed < TRAVEL_ORIENTED_TOO_SLOW) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue