collision detection between two nodes in irrlicht

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
jamia
Posts: 5
Joined: Fri Oct 12, 2007 7:42 am

collision detection between two nodes in irrlicht

Post by jamia »

hi!
i want to know about a simple method(or a sample code) to detect collision between two nodes in irrlicht.
Any help/assistance would be highly appreciated.
thanks
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I guess a search will come up with that much information that you will need weeks to go through. Come back when you're finished.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

I'd start from here:

Code: Select all

if(node1->getTransformedBoundingBox().intersectsWithBox(node2->getTransformedBoundingBox()))
{
    // collision
}
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply