A Collision Detection 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
Handle
Posts: 19
Joined: Tue Jul 13, 2004 2:00 pm

A Collision Detection Question

Post by Handle »

Hi I had a quick search through the forum but had no joy so I wonder if anyone could help me with this problem.

I am using the getSceneNodeFromRayBB() function to send a ray from my camera position into the world so I can detect which node the player is looking at and therefore can interact with the detected node.

Everything was working pretty much fine but recently I added a arm animations to the character and now I have the problem of if the ray hitting the arms first rather than any actual objects I want to interact with.

Is there anyway I can set the arms node to be ignored by the getSceneNodeFromRayBB() test?

Cheers,

Handle
uzik
Posts: 24
Joined: Wed Sep 22, 2004 4:56 pm

Post by uzik »

Since it's using the bounding box for that function I would think that
would be pretty tough. Can you add extra tests to eliminate the collision
if it's an arm?
AssiDragon
Posts: 158
Joined: Wed Apr 28, 2004 11:03 am
Location: Hungary
Contact:

Post by AssiDragon »

My two tips:

-get some trimesh collison library like OPCODE, which works quite fast and returns trimesh accurate results

-check if what you hit is your player node, and if it is, ignore this hit and only care with the next one
Staring through eyes of hate we kill
Are we controlled, or is our own will...?
(Edguy)
Post Reply