mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-12 04:14:05 +00:00
fix the fall bug when using ToggleCollision. Require lastest change with OEngine.
This commit is contained in:
parent
21c224af25
commit
8aeefd2af8
@ -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…
x
Reference in New Issue
Block a user