mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Merge pull request #959 from svaante/master
Slowfall now stops momentum when jumping
This commit is contained in:
commit
07abaf8777
@ -448,6 +448,10 @@ namespace MWPhysics
|
||||
inertia.z() += time * -627.2f;
|
||||
if (inertia.z() < 0)
|
||||
inertia.z() *= slowFall;
|
||||
if (slowFall < 1.f) {
|
||||
inertia.x() = 0;
|
||||
inertia.y() = 0;
|
||||
}
|
||||
physicActor->setInertialForce(inertia);
|
||||
}
|
||||
physicActor->setOnGround(isOnGround);
|
||||
|
Loading…
x
Reference in New Issue
Block a user