playMaker

Author Topic: Object follow mouse on X axis  (Read 2633 times)

Snuki

  • Playmaker Newbie
  • *
  • Posts: 2
Object follow mouse on X axis
« 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?
« Last Edit: May 23, 2015, 07:36:55 PM by Snuki »

Tedthebug

  • Playmaker Newbie
  • *
  • Posts: 21
Re: Object follow mouse on X axis
« Reply #1 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.