Advice on using spline mesh to create 2.5D platforms

Hi, I’m attempting to make a system for generating 2.5D platforms. Current base is a spline mesh that uses direction along spline to select horizontal or vertical meshes (ok so far).

What I want next is to spawn corner meshes (specifically on top corners). Automatic selection would be ideal, but am struggling to find a method. I am selecting by point type currently but this is less than ideal as I would prefer most of my points (incl top corner points) to be linear.

Any wizards out there with advice on how I might accomplish this? I was thinking a comparison system between surrounding points but getting a bit lost in the math.

EG (just a 2d example for viz purposes):

Sometimes just articulating the question is enough to inspire the solution.

If this ever comes up for anyone else: I simply get the spline rotation before and after each point (I selected only linear points) and if these meet specific criteria then I spawn an IM at the point - setting its rotation to match that of the horizontal surface.

1 Like