mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 21:06:43 +00:00
filled the toggleCollisionMode function. It needs the lastest change in OEngine
This commit is contained in:
parent
2aee958789
commit
102f1ee5dc
1 changed files with 5 additions and 1 deletions
|
@ -204,5 +204,9 @@ void MWScene::scaleObject (const std::string& handle, float scale)
|
||||||
|
|
||||||
void MWScene::toggleCollisionMode()
|
void MWScene::toggleCollisionMode()
|
||||||
{
|
{
|
||||||
|
for(std::map<std::string,OEngine::Physic::PhysicActor*>::iterator it = eng->PhysicActorMap.begin(); it != eng->PhysicActorMap.end();it++)
|
||||||
|
{
|
||||||
|
OEngine::Physic::PhysicActor* act = it->second;
|
||||||
|
act->enableCollisions(!act->getCollisionMode());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue