Any ideas on how to approach this?
function Update()
{
if(Input.GetMouseButtonDown(0))
{
object.transform.position = Input.mouse.position;
}
}
or something there of. There might be some drag/delay if you drag your mouse really quickly, but I think thats it. Also I am not sure if calling this inside the GetMouseButtonDown as it may only fire once. If so, use InvokeRepeating() I would suggest.
We don’t have enough information to give an answer. Are you wanting physics? Does it need to stay at a specific height?
To the post above, you could use Input.GetMouseButton instead of InvokeRepeating.
what renman3000 says, but use GetMouseButton (0) this returns true as long as you hold down the left mouse if i’m correct.
GetMouseButtonDown only returns true the frame the button was pushed.
edit: oeps didn’t see Dman sorry…