1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:19:56 +00:00

Slowfall now reduces momentum based on magnitude when jumping

(Allows Constant Effect Slowfall to work as in MW)
This commit is contained in:
ShadowRadiance 2016-11-26 06:27:11 -05:00
parent 5297d7b5be
commit 354a89e3bc

View file

@ -450,8 +450,8 @@ namespace MWPhysics
if (inertia.z() < 0)
inertia.z() *= slowFall;
if (slowFall < 1.f) {
inertia.x() = 0;
inertia.y() = 0;
inertia.x() *= slowFall;
inertia.y() *= slowFall;
}
physicActor->setInertialForce(inertia);
}