1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-25 12:41:01 +00:00

Merge branch 'inertia' into 'master'

Discard momentum upon player's teleportation (bug #6545)

Closes #6545

See merge request OpenMW/openmw!2226
This commit is contained in:
psi29a 2022-08-01 07:48:26 +00:00
commit 6f9c3c111e
2 changed files with 4 additions and 0 deletions

View File

@ -118,6 +118,7 @@
Bug #6519: Effects tooltips for ingredients work incorrectly
Bug #6523: Disintegrate Weapon is resisted by Resist Magicka instead of Sanctuary
Bug #6544: Far from world origin objects jitter when camera is still
Bug #6545: Player character momentum is preserved when going to a different cell
Bug #6559: Weapon condition inconsistency between melee and ranged critical / sneak / KO attacks
Bug #6579: OpenMW compilation error when using OSG doubles for BoundingSphere
Bug #6606: Quests with multiple IDs cannot always be restarted

View File

@ -699,7 +699,10 @@ namespace MWPhysics
void PhysicsSystem::clearQueuedMovement()
{
for (const auto& [_, actor] : mActors)
{
actor->setVelocity(osg::Vec3f());
actor->setInertialForce(osg::Vec3f());
}
}
std::vector<Simulation> PhysicsSystem::prepareSimulation(bool willSimulate)