Moving a 3D gameobject along a spline - what solution would you suggest?

Hello Unity friends,

I want to move a 3D gameobject and have it keep pointing forward along a spline, exactly like this.

My understanding is Unity doesn’t have a inbuilt spline feature so what options would you recommend?

A lot of the assets I’ve found seem to want to do quirky and elaborate things with splines, which in my case is unneeded. I just want to setup and spline and, bam, set a gameobject going along it rollercoaster style. Alternatively, is it feasible to script a solution?

Interested in your thoughts.

Thanks!

I used the “BezierSolutions” package in the past, it worked pretty well.

https://github.com/yasirkula/UnityBezierSolution

It’s on the asset store too I think but obviously github’s likely to be more updated.

2 Likes

Excellent. That package seems perfect. Thanks @Kurt-Dekker .

2 Likes