Hi all
in IrrNewt, when i'm using the CreateWorld function in each level, it works, but when i close the game, it gives me a windows error message, something with memory, i dunno, any solutions??? how can i refresh Irrnewt so it can be prepared for the next level.
another thing, IrrWizard, is just GREAT! but it misses Physics, WHY IS THAT? if it has supported Newton, it would be more GREAT
Irrnewt Problem, CreatWorld
Irrnewt Problem, CreatWorld
(\__/)
(='.'=) Copy bunny into your signature to
(")_(") help him gain world domination.
(='.'=) Copy bunny into your signature to
(")_(") help him gain world domination.
-
- Posts: 269
- Joined: Tue Oct 31, 2006 3:24 pm
- Contact:
as you can't call irr::createDevice twice, you can't call createPhysicsWorld twice. you can create only one world, you can't create more than that.
if you want to go from a level to another, simply destroy all bodies in the level ( IWorld::clear() ) and create the bodies of the new level in the (now empty) world.
if you want to go from a level to another, simply destroy all bodies in the level ( IWorld::clear() ) and create the bodies of the new level in the (now empty) world.