is there a way to generate a Curve Vector from an array of coordinates in the world space?

Hi guys, is it possible to generate or fill a Curve Vector, from an array of vector xyz?? I need this to make sure that the motorbike follow a path in a specified time, such that speeds, accelerations and these things remain the same. Add all the key in the Curve Vector is impossible so is there a method to automate this process?
If you also have other ways to solve this problem you can also write them here.
Thanks in advance to anyone who will dedicate some of their time to me.

Hi @TonyBaia99

Maybe have a look at splines. You can plot the spline using the coordinates you have then you can get your actor to follow the spline including rotation.

He explains this very well

I already saw that video, but i need to build the curve that he use for the timeline with precise key, ad also a lot of key. I can’t add all the key that i need by hand.
is there a way to automate the process of adding key to curve?
Thanks for the reply.

Of course by blueprint, create a blueprint actor and add the spline component into it.

Then in the construction graph try using the following with your array of vectors

sorry I explained myself badly, give me one moment

I’m already doing what you see in the image to generate the spline on the map. For now i’m painting the spline by hand, after i will retrive the array Position from a C++ class.
The problem now is that the motorbike that will move on the spline, it must do so with a specific point-to-point speed, each segment has its own average speed.
In the photo below there is the part of the blueprint that i use to move the motorBike on the spline.

Ok what about having the spline points in an array and the matching speeds in a seperate array , matched by there index value, then iterate each vector and get the same matching speed from the array of floats with the same index?

Or even simpler an array of vector 4 and use the W as a float speed

Ok, good idea. But the how can i use that speed to move the motorBike from one point of the spline to the next? Should I change anything in the photos I sent? sorry the stupid question, but this is the first time that i use UE, I’m learning while using it, so I don’t know many of the functions.

Unfortunately im out onbusiness rihht now so im answering from my mobilr, makes it dofficult to read blueprints , i will look properly when im back but may not be til tomorrow. Unless somone else can look at your blueprints and translate what i said to it

Possibly the time to complete float value if thats being used as a speed?

Thanks a lot all the same, don’t worry. Tomorrow is fine too, I’m in no hurry. in the meantime I keep trying different solutions.

Ok, I’ll think about it for a moment and see if it could work. I’ve been looking for a solution for half a day and I’m really tired…

I try to rephrase the problem, maybe it can help. I have to make sure that the motorBike take 1/50 sec to go from one point of the spline to the next. So the more distance there is between the two points of the spline, the faster the bike will have to go.

Does anyone have any ideas, I still haven’t found a good solution.