how to move objects along a curve?

Hi!How to move objects along a curve? I need move car along curvre with correct rotation(car should not move sideways or backwards)
Thanks.

The question is a bit old but this beautiful tutorial has all you need: Curves and Splines, a Unity C# Tutorial

Its a bit hard at the beginning but you will develop your own tool to edit a spline curve and make a cube travel along the curve.

It depends how your curves is defined. If it is a succession of waypoints, you need the logic to move from one waypoint to another and the logic change the target when you’re close enough.

If it’s more like a bezier curve, the position will depend on a a variable “t” based on the speed you desire and the length of the curve.

Either way, the orientation is going to be toward the movement’s direction, probably using Quaternion.LookRotation and Vector3.lerp / Time.deltaTime.

Good luck.