Fix collision glitch caused by Bullet AABB not being updated when an actor moves without turning

coverity_scan^2
scrawl 8 years ago
parent 3df7a8c4d8
commit 5198fc897d

@ -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);

Loading…
Cancel
Save