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

actorid
gugus 14 years ago
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…
Cancel
Save