forked from mirror/openmw-tes3mp
[Client] Fix manual setting of inertial force
Actors who are on the ground have their inertial force ignored, so they are now made to not be regarded as being on the ground in World::setInertialForce()
This commit is contained in:
parent
b69e6b96e6
commit
74fa1d0f01
1 changed files with 3 additions and 1 deletions
|
@ -1604,7 +1604,9 @@ namespace MWWorld
|
|||
*/
|
||||
void World::setInertialForce(const Ptr& ptr, const osg::Vec3f &force)
|
||||
{
|
||||
mPhysics->getActor(ptr)->setInertialForce(force);
|
||||
MWPhysics::Actor *actor = mPhysics->getActor(ptr);
|
||||
actor->setOnGround(false);
|
||||
actor->setInertialForce(force);
|
||||
}
|
||||
/*
|
||||
End of tes3mp addition
|
||||
|
|
Loading…
Reference in a new issue