Page 1 of 1

picking

Posted: Tue Sep 23, 2003 1:33 pm
by rogerdv
I was looking at the collision tutorial, but I cant imagine how to adapt it to fit my needs. I need to pick the node where the mouse cursor is located and sometimes convert it to my map coordinates or get the unit in that location. As I mention in a previous post Im implementing an isometric like engine for an RPG, so i cant use the camera like in the example.
How can I pick nodes using the screen 2d coordinates instead of camera?

Posted: Tue Sep 23, 2003 1:45 pm
by cyberbobjr
Hi,
I've already do this function, but with version 0.4.1 it's more simple : you have a function : getSceneNodeFromScreenCoordinatesBB which you can have the node under a screen coordinate.

http://irrlicht.sourceforge.net/docu/cl ... er.html#a5

Posted: Tue Sep 23, 2003 2:26 pm
by rogerdv
Thanks, seems this is what I need.