Hello.
Is there any way how to make SetHighlight() working with some part of the mesh?
My goal is to do something like this:
1. I have a 3d chracter(player). This character consists of 5 parts.
I have mouse cursor. When 1 of 5 parts is under mouse cursor it must be Highlighted. I am clicking on this mesh part and it disappears:(mesh->hide("name")).
I am trying to get it working during last days, but problem is:
(From the inventory tutorial)
Code:
UInt Item::drawPrepare()
{
if(Lit==this)
SetHighlight(Color(156,48,48,0));
...
Here is obj pointer == obj pointer. I tied to use MeshPart class. I can only change materials, etc. But I can't find how to:
1. Check mesh part is under mouse cursor or not.
2. And then, make highlignting for this part.