Question by
abers1997 · Aug 16, 2017 at 02:06 AM ·
movementgameobjectrigidbodytouchrestrictmovement
How to restrict object's movement to a bezier curve?
I'm making a mobile game where the player can tap+hold on an object and swipe a direction on a bezier in order to move said object with touch controls.
Here's what it would look like:
I got a touch and grab system that works well, but I can move the object anywhere without restrictions on the X and Z axis.
How could I make it so when I drag the object, it follows along the bezier curve?
untitled.jpg
(201.7 kB)
Comment