Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Snuki on May 23, 2015, 04:01:40 PM

Title: Object follow mouse on X axis
Post by: Snuki on May 23, 2015, 04:01:40 PM
I have a 3D Object that I want to follow the mouse on the X axis and right now I'm just doing that using "Get Mouse X" and "Set position" and it moves. But it is not where my mouse is. When I move my mouse a lot, the object just moves a little in the middle of the screen.
Is there a better way to do this or a fix for what I'm using?
Title: Re: Object follow mouse on X axis
Post by: Tedthebug on May 24, 2015, 12:04:51 AM
check this link on unity forum,  http://answers.unity3d.com/questions/230588/getting-object-to-follow-mouse-position-along-x-ax.html

I used this & modified it for an assignment last year.  There should be a way to replicate what they are doing using playmaker but I don't know enough about playmaker to do it yet as I've only just started using it.  Hopefully it can point you in the right direction.