1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 12:23:53 +00:00

fix the fall bug when using ToggleCollision. Require lastest change with OEngine.

This commit is contained in:
gugus 2011-03-20 21:52:31 +01:00
parent 21c224af25
commit 8aeefd2af8

View file

@ -211,12 +211,14 @@ void MWScene::toggleCollisionMode()
if(cmode)
{
act->enableCollisions(false);
act->setGravity(0);
act->setGravity(0.);
act->setVerticalVelocity(0);
}
else
{
act->enableCollisions(true);
act->setGravity(10);
act->setGravity(10.);
act->setVerticalVelocity(0);
}
}
}