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
A Collision Detection Question
-
- Posts: 158
- Joined: Wed Apr 28, 2004 11:03 am
- Location: Hungary
- Contact:
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
-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)
Are we controlled, or is our own will...?
(Edguy)