Object on a path (with coordinates). A possible solution.

 

Motivated by some posts here for an object to follow a path (with exact coordinates) I made the following experimental solution




The vectors can be generated with expressions or lua scripts, or read from a file; then we get the minimum length (to avoid overflowing), and we loop from the starting index to the maximum index with a delay (from index to index). Mode in the above compound is stop, loop or reverse the loop.

Then we assemble the position from the X, Y, and Z coordinates and create the new transformation (which will be provided to a scene node to move the object). We add a smooth transformation at the end to create the animation.

Now I am not sure, if the delay inside the Smooth transformation is in seconds (the one inside the looping is using a timer). If it is, then those match. We wait, for example 1 second to increase the index, and at that time we animate from point to point etc.

We can also tweak the solution to provide durations per vector point, so not all points are equidistant.

The benefit of this approach is that the paths are reusable


   buffos