How to bend a Spline mesh in runtime?

Hi everyone.

Ok so, what im trying to do here is an “outrun” style game, without using Mode7 , my first idea was to have a spline (being the road) where i can move in runtime (bend it to the sides to simulate a curve, since the car would be static)

Context:

Problem:

The spline moves in runtime, but the mesh stays on place. (so the road doesnt move in runtime)

This is the code im using for the mesh creation on the spline (in construct)

Then on the Road BP i just have a timeline asking one point of the spline to go from point A to B which is 2 spheres placeholders just to grab the location from. (one on each side of the road where i want the curve to and from.

After trying everything i could under the sun i wasnt able to move that mesh how it moves in the editor, (i cant move it at all)

I checked forums, and tried the:

-manually attach tick
-Update spline tick

And still nothing.

Im using UE5 5.0.3

Does anyone know if there is a way to move the spline mesh on runtime?
And if there is, how?

also any advice on to how a good practice of doing so would be great.

Thanks a bunch!

I’m pretty sure you can use morph targets (extreme left & right) to change it at runtime.

1 Like

I don’t know what Morph Targets is or how to use it.
i will try learn about it and try it out thanks for the tip!

Managed to do what i wanted to do using the morph targets, thanks a ton!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.