Quick Collision Question

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
iamtehpwn
Posts: 30
Joined: Sat Mar 31, 2007 6:11 pm

Quick Collision Question

Post by iamtehpwn »

I've been coding an action RPG for a while now with irrlicht. Thing have been going smoothly, but Object-specific collision is another story. Collision with the object has worked fine, as the player can't go through objects, and items stay on the level.

However, the probably is, Suppose I swing my sword at an enemy. I've tried reading the documentation, But I'm quite seeing how to detect if two nodes are touching each other, then, I can run another section of code via "if" command.


Put simply: How do I see if 2 specific nodes are colliding?
Sean H.
Posts: 21
Joined: Mon Aug 06, 2007 12:25 am

Post by Sean H. »

you could do a raycast from the sword handle to the sword tip and see if it touches anything.
Post Reply