Collision Detection on IEventReceiver

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
r3i
Posts: 147
Joined: Wed Jun 29, 2005 10:15 am
Location: Sorrento
Contact:

Collision Detection on IEventReceiver

Post by r3i »

hi guys, today I'm active... :D
I have copied the code of collision detection of the tutorial from the loop to a method of my EventReceiver for making more logic the division, but when there are many nodes on my scene, my method doesn't work while it works fine when there is only 1 node in the scene.

can be a problem of race condition? Or I make some mistakes?
Other question...programming object oriented i'm used to share IrrlichtDevice to all my objects:

class Obj {
private: IrrlichtDevice* Device;
public: Obj( Irrlichtdevice* a_device ){ Device = a_device; }
}

do you think that must be a wrong way to program?
"We work in the dark, we do what we can, we give what we have, Our doubt is our passion and our passion is our task. The rest: is art of Madness" (H.James)
Post Reply