mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 20:19:57 +00:00
Slowfall now stops momentum when jumping
This commit is contained in:
parent
a00e4de5c3
commit
943d9d97dc
1 changed files with 4 additions and 0 deletions
|
@ -448,6 +448,10 @@ namespace MWPhysics
|
||||||
inertia.z() += time * -627.2f;
|
inertia.z() += time * -627.2f;
|
||||||
if (inertia.z() < 0)
|
if (inertia.z() < 0)
|
||||||
inertia.z() *= slowFall;
|
inertia.z() *= slowFall;
|
||||||
|
if (slowFall < 1.f) {
|
||||||
|
inertia.x() = 0;
|
||||||
|
inertia.y() = 0;
|
||||||
|
}
|
||||||
physicActor->setInertialForce(inertia);
|
physicActor->setInertialForce(inertia);
|
||||||
}
|
}
|
||||||
physicActor->setOnGround(isOnGround);
|
physicActor->setOnGround(isOnGround);
|
||||||
|
|
Loading…
Reference in a new issue