How to make Meshes follow Path like a Train
I have multiple boxes (Instanced Static Mesh Component) in a straight row. When the player moves I want these boxes to follow the player around as if they were connected (like a train or like in the game snake).
Does anyone have an idea what's the math behind this because I literally have no clue how to start this :/
Thanks for your suggestions! Kind Regards.
You can do this using BluePrints. Here is how I would do it. I would get the Manenquin Actor's location and set the Box Actor's location. Lookup 'Set Actor Location', 'Get Actor Location' in Blue Prints.
Something like this. BoxActor Location = manenquin Actor Location - 10
So when the manenquin moves, the box moves as well . You can use interpolation when you move the box from old location to the new location so the movements are smoother.
Also check out Spline points. You can place these boxes on spline points.
Hope this helps d0d0
Follow this question
Once you sign in you will be able to subscribe for any updates here