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:
parent
21c224af25
commit
8aeefd2af8
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue