|
I have an object that follows the mouse position(x,y) and works perfect until i lock the cursor which then just sits in the center of the screen. I need the object to move based on the x,y coordinates of the mouse while the cursor is locked, any ideas would be awesome.
(comments are locked)
|
|
You don't want to lock the cursor, you just want to hide it. Use Screen.showCursor = false; http://unity3d.com/support/documentation/ScriptReference/Screen-showCursor.html I need to lock it so the cursor stays inside the game window, it's for the web player.
May 03 '10 at 11:31 PM
ThumbStorm
Well what most games do is manually lock the cursor by checking for deltas then resetting the cursor position. Unfortunately I don't see any way to set the cursor position from script.
May 04 '10 at 04:41 PM
Tetrad
(comments are locked)
|
