mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +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
1 changed files with 2 additions and 2 deletions
|
@ -450,8 +450,8 @@ namespace MWPhysics
|
||||||
if (inertia.z() < 0)
|
if (inertia.z() < 0)
|
||||||
inertia.z() *= slowFall;
|
inertia.z() *= slowFall;
|
||||||
if (slowFall < 1.f) {
|
if (slowFall < 1.f) {
|
||||||
inertia.x() = 0;
|
inertia.x() *= slowFall;
|
||||||
inertia.y() = 0;
|
inertia.y() *= slowFall;
|
||||||
}
|
}
|
||||||
physicActor->setInertialForce(inertia);
|
physicActor->setInertialForce(inertia);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue