Targeting an object (SOLVED)
Posted: Mon Oct 17, 2005 8:31 am
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
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