mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-15 22:21:00 +00:00
Merge pull request #1140 from ShadowRadiance/master
Slowfall now reduces momentum based on magnitude when jumping
This commit is contained in:
commit
6759f70229
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user