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