mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-01 04:20:20 +00:00
Merge branch 'projectilefix' into 'master'
Fix for projectile movement simulation (#6526 and probably #6434) See merge request OpenMW/openmw!1518
This commit is contained in:
commit
087084abdc
@ -224,6 +224,7 @@ namespace
|
||||
}
|
||||
void operator()(const LockedProjectileSimulation& sim) const
|
||||
{
|
||||
if (sim.first->isActive())
|
||||
MWPhysics::MovementSolver::move(sim.second, mPhysicsDt, mCollisionWorld);
|
||||
}
|
||||
};
|
||||
|
@ -33,6 +33,7 @@ Projectile::Projectile(const MWWorld::Ptr& caster, const osg::Vec3f& position, f
|
||||
|
||||
mPosition = position;
|
||||
mPreviousPosition = position;
|
||||
mSimulationPosition = position;
|
||||
setCaster(caster);
|
||||
|
||||
const int collisionMask = CollisionType_World | CollisionType_HeightMap |
|
||||
|
Loading…
x
Reference in New Issue
Block a user