Page 1 of 1

rectangle stick to mouse position??

Posted: 19 Nov 2013, 08:04
by ahmedsheeraz
Hi all, just wanna know is there any built-in function or something to let an object follow or stick to mouse? In windows mouse node, clippedX and clippedY values are only spitting values from -1 to 1 and i dont think pixelx and pixely values are of anyuse in this scenerio. So any idea how can i manipulate object's axis node x,y pos to get values from windows mouse node or any predefined node is there already?

Re: rectangle stick to mouse position??

Posted: 19 Nov 2013, 13:07
by ahmedsheeraz
fanstastic!! thanx.

Re: rectangle stick to mouse position??

Posted: 03 Apr 2014, 16:02
by d4mance
I tried it that way and I also found out how to solve this with the WinMouse. But when I'm leaving the window with the cursor, the object sticks to the last position at the border (of course). Is there a way to let it float back to the center of the window again?