Irrnewt Problem, CreatWorld

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Beshr
Posts: 36
Joined: Mon Mar 12, 2007 3:34 pm
Location: Damascus, Syria

Irrnewt Problem, CreatWorld

Post 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
(\__/)
(='.'=) Copy bunny into your signature to
(")_(") help him gain world domination.
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

can you post out the source code? maybe someone can help you to fix your problems.
white tiger
Posts: 269
Joined: Tue Oct 31, 2006 3:24 pm
Contact:

Post 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.
Post Reply