mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-04 01:45:35 +00:00
Merge remote branch 'gus/collisions' into collision
This commit is contained in:
commit
8788dcebcf
1 changed files with 4 additions and 2 deletions
|
@ -175,12 +175,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