Game Development Community

Mouse Move Function

by Balmer Steve · in Torque Developer Network · 06/21/2010 (4:07 am) · 3 replies

Hi All

Could Any One Explain How can i use Mouse Move Function in torque 3d.

Suppose if I move my cursor to An Object the Normal Cursor Should Change to

Hand Cursor?

How can I do it.

I am using Ray casting Method to Identify the Object.

how can i identify the Object when the Cursor is placed in the Object?

Any Ideas Welcome



#1
06/21/2010 (10:56 pm)
Try this way

function PlayGui::onMouseMove(%pos,%vec)
{
echo(%pos)
echo(%vec)
}


#2
06/22/2010 (4:53 am)
Its not working. Is Mouse Move function is available in the torque 3d or not.
#3
06/24/2010 (4:25 am)
function PlayGui::onMouseMove(%this, %pos, %start, %ray)
{
echo(%pos);
echo(%start);
}

you can do this :)