Nodes identification?

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
PsycoDad
Posts: 36
Joined: Mon Jan 09, 2006 8:30 am
Location: Munich/Germany

Nodes identification?

Post 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
Wer andern eine Bratwurst brät, der hat ein Bratwurstbratgerät!
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post 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
Post Reply