- Home /
Question by
jjsmith1116 · Jan 16, 2018 at 12:15 PM ·
player movementobject movement
Move ball to touch input but freeze y axis
I've been trying to get a ball move to the users touch input but the scene is 3d and the camera is slightly angled so when the ball moves to the users touch, it starts floating upwards so I would like to freeze the y axis of the ball so it stays on the platform and just moves around on the x and z axis, is there anyway to get touch input and then freeze the y axis? ,I've been trying to get a ball to move to a players touch input but the problem is that its a 3d game where the game is slightly angled and when I implement the touch input, the ball starts floating due to the y axis not being frozen, is there anyway to freeze the y axis so the ball stays on the platform but still moves around to the players touch input?
Comment