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
collision detection between two nodes in irrlicht
-
rogerborg
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
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
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way