mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-14 13:26:28 +02: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
|
||||
if (timeElapsed > MAX_TIME_ELAPSED) {
|
||||
qCWarning(entities) << "kinematic timestep = " << timeElapsed << " truncated to " << MAX_TIME_ELAPSED;
|
||||
}
|
||||
timeElapsed = glm::min(timeElapsed, MAX_TIME_ELAPSED);
|
||||
|
||||
Transform transform;
|
||||
|
|
Loading…
Reference in a new issue