Check what's in front of the object (solved)
Posted: Wed May 20, 2009 11:40 am
Hi everyone, I have a problem.
I want to check, via getSceneNodeFromRayBB, what is in front of a given scene node. I know the position and rotation of the node (obviously), but for the life of me I cannot calculate what parameters should I pass as the line ending point and beginning points. The line ending point should be a given amount, let's say "dist" amount of units in front of the object in the direction it's facing. The beginning should also be in front of the object as not to collide with the object itself. Can anyone give me a hand here?
I want to check, via getSceneNodeFromRayBB, what is in front of a given scene node. I know the position and rotation of the node (obviously), but for the life of me I cannot calculate what parameters should I pass as the line ending point and beginning points. The line ending point should be a given amount, let's say "dist" amount of units in front of the object in the direction it's facing. The beginning should also be in front of the object as not to collide with the object itself. Can anyone give me a hand here?