I'm trying to do collision detection between a ray and a node.
I'm using: (irr 1.1 .Net)
Public Function GetSceneNodeFromRayBB( _
ByVal ray As Line3D, _
ByVal idBitMask As Integer _
) As ISceneNode
method of the ISceneCollisionManager class
(I had an image showing my prob but can't post it)
Anyway, I have assumed BB stands for bounding box, and have created a scene with a MD2 model. I've drawn the bounds around the model, and drawn a line along the Ray I have created which i can move around with the keyboard.
Problem is, when the line intercepts the bounding box 99% of the time the expected effect does not occur. It seems that the ray has to intercept a precise point in the box which i suspect is the origin.
On the other hand, I don't know what the bit mask should be set to and whether this would cause my problem if I have it set wrong.
So, has anyone else had this problem, am I completely misinterpreting the method, should I be doing this a different way?
![Confused :?](./images/smilies/icon_confused.gif)
I will be able to post the image and my code in about a couple hours.