Mouse selection(mouse collision - x/y coord to vectors)

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
Guest

Mouse selection(mouse collision - x/y coord to vectors)

Post by Guest »

in the colliision demo collision is detected directly forward from the camera. what if the camera did not move (so it wasnt a fps camera, just a normal camera) but the mouse pointer then aimed the collision line.

I have no idea where to start in making a vector line from the mouse coords.

Any help please?

Cheers

Dan
Saguman
Posts: 10
Joined: Fri Jul 23, 2004 7:48 am

Post by Saguman »

You could use sceneCollisionManager to get a ray from screen coordinates:
http://irrlicht.sourceforge.net/docu/cl ... er.html#a3
Guest

Post by Guest »

cheers, that looks good. I'll give it a go.
Post Reply