mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-22 18:09:41 +00:00
Don't set a vertical velocity when on the ground
This commit is contained in:
parent
8e59ea4941
commit
90cb9ee0ac
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue