From 19ad7d7f0cd77984ed4628ac539cce9a0c502039 Mon Sep 17 00:00:00 2001 From: Bret Curtis Date: Sat, 13 Mar 2021 15:24:45 +0100 Subject: [PATCH] Resolve #5895 by setting the initial mOnGround state to false; we do this because the movement solver runs one frame behind so when we run through the loop the first time we assume we are on the ground even though we may be 400 units in the air. --- apps/openmw/mwphysics/actor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/openmw/mwphysics/actor.cpp b/apps/openmw/mwphysics/actor.cpp index 06abe72403..87698ef37c 100644 --- a/apps/openmw/mwphysics/actor.cpp +++ b/apps/openmw/mwphysics/actor.cpp @@ -72,6 +72,7 @@ Actor::Actor(const MWWorld::Ptr& ptr, const Resource::BulletShape* shape, Physic updatePosition(); addCollisionMask(getCollisionMask()); updateCollisionObjectPosition(); + mOnGround.store(false, std::memory_order_release); } Actor::~Actor()