mirror of
https://github.com/overte-org/overte.git
synced 2025-08-14 01:29:55 +02:00
less variability in verlet simulation loop count
This commit is contained in:
parent
b177686f74
commit
3d107cc7e5
1 changed files with 2 additions and 2 deletions
|
@ -207,8 +207,8 @@ void MyAvatar::simulate(float deltaTime) {
|
|||
PerformanceTimer perfTimer("ragdoll");
|
||||
if (Menu::getInstance()->isOptionChecked(MenuOption::CollideAsRagdoll)) {
|
||||
const float minError = 0.00001f;
|
||||
const float maxIterations = 10;
|
||||
const quint64 maxUsec = 2000;
|
||||
const float maxIterations = 3;
|
||||
const quint64 maxUsec = 4000;
|
||||
_physicsSimulation.setTranslation(_position);
|
||||
_physicsSimulation.stepForward(deltaTime, minError, maxIterations, maxUsec);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue