Page 1 of 1

Nodes identification?

Posted: Fri May 12, 2006 9:04 pm
by PsycoDad
Hello,
my problem is that i want to identify a node in the front of my FPScamera. Something like an enemy identifier witch the terminater (T2000) has in his eye cam. Is this possible to do this by the TriangleSelector? plz help me
Thx for replys

Posted: Fri May 12, 2006 10:37 pm
by vitek
Try ISceneCollisionManager::getSceneNodeFromCameraBB(...). It casts a ray from the camera position to the look at position. It then finds the closest object whose bounding box is intersected by that ray.

Travis