Grom
22-01-2007 03:44:24
I want to hide a body, it's a ball one of my characters will throw. I don't want it waiting around, I want to hide it until it's time to throw it. Right now, I put it way out of the scene and do this:
Then when it's time to use it, I move it to the appropriate place and do this:
Is there a better way to do it?
sceneMgr->getEntity("ball")->setVisible(false);
mScene->findBody("ball")->putToSleep();
Then when it's time to use it, I move it to the appropriate place and do this:
sceneMgr->getEntity("ball")->setVisible(true);
mScene->findBody("ball")->wakeUp();
Is there a better way to do it?