What must done for knowing on which node camera moves?

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
r3i
Posts: 147
Joined: Wed Jun 29, 2005 10:15 am
Location: Sorrento
Contact:

What must done for knowing on which node camera moves?

Post by r3i »

I want to give to some paths names and I want check if the camera is walking on these paths with collision detection... I've tried with a ray from camera to the ground but it' doesn't work...maybe I've made some misktakes!!
My code:

line3d<f32> line;

line.start = telecameraRegistrata->getPosition();
line.end = line.start - vector3df(0,2,0 );
electedSceneNode = gestoreCollisione->getSceneNodeFromRayBB(line,id );
"We work in the dark, we do what we can, we give what we have, Our doubt is our passion and our passion is our task. The rest: is art of Madness" (H.James)
Post Reply