mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
add warning about truncated kinematic timestep
This commit is contained in:
parent
2bd83764e7
commit
34d622e498
1 changed files with 3 additions and 0 deletions
|
@ -889,6 +889,9 @@ bool EntityItem::stepKinematicMotion(float timeElapsed) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const float MAX_TIME_ELAPSED = 1.0f; // seconds
|
const float MAX_TIME_ELAPSED = 1.0f; // seconds
|
||||||
|
if (timeElapsed > MAX_TIME_ELAPSED) {
|
||||||
|
qCWarning(entities) << "kinematic timestep = " << timeElapsed << " truncated to " << MAX_TIME_ELAPSED;
|
||||||
|
}
|
||||||
timeElapsed = glm::min(timeElapsed, MAX_TIME_ELAPSED);
|
timeElapsed = glm::min(timeElapsed, MAX_TIME_ELAPSED);
|
||||||
|
|
||||||
Transform transform;
|
Transform transform;
|
||||||
|
|
Loading…
Reference in a new issue