From 5198fc897dfd24cc67f1830ac3d383dd971e612b Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 23 Feb 2017 22:23:34 +0100 Subject: [PATCH] Fix collision glitch caused by Bullet AABB not being updated when an actor moves without turning --- apps/openmw/mwphysics/physicssystem.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/openmw/mwphysics/physicssystem.cpp b/apps/openmw/mwphysics/physicssystem.cpp index ebf51a66e..454dc611d 100644 --- a/apps/openmw/mwphysics/physicssystem.cpp +++ b/apps/openmw/mwphysics/physicssystem.cpp @@ -1423,6 +1423,7 @@ namespace MWPhysics waterlevel, slowFall, mCollisionWorld, mStandingCollisions); physicActor->setPosition(position); } + mCollisionWorld->updateSingleAabb(physicActor->getCollisionObject()); float interpolationFactor = mTimeAccum / physicsDt; osg::Vec3f interpolated = position * interpolationFactor + physicActor->getPreviousPosition() * (1.f - interpolationFactor);