mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 11:48:09 +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
|
// find normalized velocity
|
||||||
glm::vec3 velocity = bulletToGLM(rigidBody->getLinearVelocity());
|
glm::vec3 velocity = bulletToGLM(rigidBody->getLinearVelocity());
|
||||||
float speed = glm::length(velocity);
|
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) {
|
if (speed < TRAVEL_ORIENTED_TOO_SLOW) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue