mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-18 08:56:10 -04: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)
|
if(cmode)
|
||||||
{
|
{
|
||||||
act->enableCollisions(false);
|
act->enableCollisions(false);
|
||||||
act->setGravity(0);
|
act->setGravity(0.);
|
||||||
|
act->setVerticalVelocity(0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
act->enableCollisions(true);
|
act->enableCollisions(true);
|
||||||
act->setGravity(10);
|
act->setGravity(10.);
|
||||||
|
act->setVerticalVelocity(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user