- Home /
Object follow irregular path 2D
Hello everyone. I am making a 2d game endless runner. I want to make a cart follow the path of an irregular rail as shown in the image below, but without taking off the rail, without rail swinging. I'm not able to do this, the way I'm doing the cart sometimes falls back and shakes a lot. Is there a way to do that while the cart is in contact with the rail, do the same path clinging to the rail? My rail is a 2d sprite with polygoncollider and my cart is a sprite with a rigidbody with a 2d boxcollider
untitled-1.jpg
(21.1 kB)
Comment
Best Answer
Answer by gcoope · Aug 01, 2014 at 09:22 PM
Check out the iTween (free) asset on the Asset Store http://u3d.as/content/pixelplacement/i-tween/1s9