Targeting an object (SOLVED)

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
r3i
Posts: 147
Joined: Wed Jun 29, 2005 10:15 am
Location: Sorrento
Contact:

Targeting an object (SOLVED)

Post by r3i »

I've placed in my 3d stage some objects.
When mouse is over them, they must be highlighted.
I've tried to create code but there are problems.
I'hve used the code of the collision tutorial as point of beginning.
There is only one problem: selectedSceneNode pointer is always the node of the stage but the triangle selected is of the object!

I've made some mistake?
--------------------------------------------------------------------------------
No mistakes: I've used better the collision:
1) added id to every node.
2) added parent
3) get element collided with the idBitMask specified!

It works fine! Thank's at all :roll:
Last edited by r3i on Wed Oct 19, 2005 1:45 pm, edited 1 time in total.
"We work in the dark, we do what we can, we give what we have, Our doubt is our passion and our passion is our task. The rest: is art of Madness" (H.James)
CZestmyr
Posts: 72
Joined: Sat Feb 12, 2005 7:11 pm
Location: Czech Republic
Contact:

Post by CZestmyr »

I've made some mistake?
I guess, you HAVE definitely made a mistake, otherwise it would work. :D

Try posting a piece of code here, but just the relevant portion.
Bugfree is not a synonym to dumbass-resistant

My irrlicht files and tutorials
My music in mp3
Guest

Post by Guest »

Czoker :lol:
Post Reply