Hi Playmaker forums.
Struggling with something here that I feel should have an obvious solution but I can't figure it out. Basically I want to move cylinders only forward and backward on their local z axis in relationship to hand controllers. The way I am doing it now is I am getting the position of the hand controller and setting it to the cylinder, clamping on the X and Y axis, here is a link to a gif that will make this more clear...
http://i.imgur.com/wsexKHK.gifvIn the gif the first cylinder behaves as I want, hover the second does not. I guess the fact I am clamping their local X and Y positions is not the way I should be going about this.
So my question is, how do I move a game object only along one local axis?
Would be very grateful for any advice.
Cheers,
Jimmy.