1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-25 12:41:01 +00:00

Don't set a vertical velocity when on the ground

This commit is contained in:
Chris Robinson 2013-02-23 16:30:11 -08:00
parent 8e59ea4941
commit 90cb9ee0ac

View File

@ -190,7 +190,7 @@ namespace MWWorld
onground = false; onground = false;
} }
physicActor->setOnGround(onground); physicActor->setOnGround(onground);
physicActor->setVerticalForce(clippedVelocity.z - time*627.2f); physicActor->setVerticalForce(!onground ? clippedVelocity.z - time*627.2f : 0.0f);
return newPosition; return newPosition;
} }