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:
parent
8e59ea4941
commit
90cb9ee0ac
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user