GetSceneNodeFromScreenCoordinates

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
specht8
Posts: 11
Joined: Mon Aug 09, 2010 2:07 pm

GetSceneNodeFromScreenCoordinates

Post by specht8 »

Hi, I have the following Problem:

I use GetSceneNodeFromScreenCoordinates() to determine over which SceneNode my cursor currently is. For some SceneNodes it works properly but in other cases not the SceneNode in the front is selected but one in the background.

Is there a solution?

Ideas?

greets
CuteAlien
Admin
Posts: 9934
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Maybe the bounding-boxes are larger than you expect? Do enable debug-drawing for the bounding-boxes (see example 09 for how to do that) to check for that.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply