picking

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
rogerdv
Posts: 93
Joined: Wed Aug 27, 2003 4:20 pm

picking

Post 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?
cyberbobjr
Posts: 64
Joined: Mon Sep 08, 2003 8:21 am
Location: Paris, France

Post 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
rogerdv
Posts: 93
Joined: Wed Aug 27, 2003 4:20 pm

Post by rogerdv »

Thanks, seems this is what I need.
ru guo ni yao ai, ni jiang bu hui shi qu
Post Reply