think about some conception...

Hello together,
I think about a solution to generate random motion path for flying gameobjects. The theory is, generate randomly 4-6 position in space, calculate through this points a bspline and use this spline as motion path, attach a instance from the gameobejct to this path - and go!
That´s the theory…
Is this to complicate, or there are other solutions? I don´t want to handle long static list with way points, as well these are a other solution…
The main challenge for me is know, calculate through this points a bspline and use this spline as motion path during run time.

Any suggestions?

Sounds reasonable, as long as the control points are positioned in a way that makes sense (that is, fairly evenly spaced and not all very close to each other, or coincident, or going ‘back and forth’ repeatedly, etc.).

For the spline, you could try a Catmull-Rom spline, which will be guaranteed to pass through the control points and will not require any fitting. (I don’t have a link, but I think some spline code has been posted to the forums before, so a forum search might turn up something useful.)

yeah, that´s the way…

found some good stuff:
http://www.geometrictools.com/LibMathematics/CurvesSurfacesVolumes/CurvesSurfacesVolumes.html

… a better one, it´s unity :slight_smile:
http://www.ernestorojo.com/projects/catmull-rom-unity-demo/

mmmhhh, the interpolation is not so god…

seams a better start…