1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-22 01:09:41 +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;
}
physicActor->setOnGround(onground);
physicActor->setVerticalForce(clippedVelocity.z - time*627.2f);
physicActor->setVerticalForce(!onground ? clippedVelocity.z - time*627.2f : 0.0f);
return newPosition;
}