mirror of
https://github.com/overte-org/overte.git
synced 2025-06-20 14:21:20 +02:00
fix for velocity in units of domain size
This commit is contained in:
parent
f2bcdfa2b4
commit
36c20c24fe
1 changed files with 1 additions and 1 deletions
|
@ -732,7 +732,7 @@ void EntityItem::simulateKinematicMotion(float timeElapsed) {
|
|||
}
|
||||
|
||||
float speed = glm::length(velocity);
|
||||
const float EPSILON_LINEAR_VELOCITY_LENGTH = 0.001f; // 1mm/sec
|
||||
const float EPSILON_LINEAR_VELOCITY_LENGTH = 0.001f / (float)TREE_SCALE; // 1mm/sec
|
||||
if (speed < EPSILON_LINEAR_VELOCITY_LENGTH) {
|
||||
setVelocity(ENTITY_ITEM_ZERO_VEC3);
|
||||
if (speed > 0.0f) {
|
||||
|
|
Loading…
Reference in a new issue