Page 1 of 1

Targeting an object (SOLVED)

Posted: Mon Oct 17, 2005 8:31 am
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:

Posted: Mon Oct 17, 2005 3:53 pm
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.

Posted: Mon Oct 17, 2005 6:39 pm
by Guest
Czoker :lol: