Page 1 of 1

Irrnewt Problem, CreatWorld

Posted: Sun Apr 22, 2007 8:07 am
by Beshr
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

Posted: Sun Apr 22, 2007 8:21 am
by Virion
can you post out the source code? maybe someone can help you to fix your problems.

Posted: Sun Apr 22, 2007 1:27 pm
by white tiger
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.