How to make a spline follow a path

How would I make a spline, that follows this path

The path that i would like it to follow:

The path with nodes:

1 Like

Instead of using splines i recommend using Bezier. Since it would be way more efficient in your situation


This is what i did where each waypoint (except start and endwaypoint) have 2 more points produce the beizier

2 Likes

the issue is that i have already used bezier curves. All i did to make that video was make an npc follow the path through lerping and bezier curves, with a line behind him, but i dont want to use that as i keep switching. Also splines are not very performance heavy.

how did you make the enemies move along the path though?

Using time based movement where the movement is based on
local t = (SpawnTime - CurrentGameTime) * Speed - AllPassedWaypointsMagnitude)
where i just set the position of the character using units
CurrentWaypointPositon + WaypointDirection * t