Page 1 of 1

Collision Detection on IEventReceiver

Posted: Wed Mar 08, 2006 11:43 am
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?