Suppose I want to allow a model to do an animation when I hover the mouse cursor over it. Would I need to use the Panel function for models? or is that just for BMPs only?
I did something along the lines of:
Code:
if((mouse_pos.x == player.x) && (mouse_pos.y == player.y) && (mouse_pos.z == player.z)) //if the mouse coords are the same as the player model's
{
// do the player model's animation here
}
but it didn't work. I did a panel check and noticed that the mouse_pos data is different from the player's. It uses the screen size to determine the position (ie: 800 x 600) instead of the 3D world size, whereas the player model uses the actual 3D world coords. Should I not be using mouse_pos then?