Spline mesh tile
I am trying to make a road tool and I followed Zak`s video https://www.youtube.com/watch?v=wR0fH6O9jD8. The tool works very well but I cannot find any way to tile the meshes so that the track does not stretch between the spline points. Does anyone know how to do this?
asked Oct 22 '17 at 05:07 PM in Blueprint Scripting
One of the most obvious ways to attack this is to have a variable named Mesh Density which would indicate how the meshes are distributed along the spline. Then, you would divide the total spline length by the mesh density and get the distance between each mesh. Then, you would iterate from 0 to mesh density and multiply the iterator with the quotient of total spline length / mesh density to get the current distance along the spline that you're at. Then, simply get the location and tangent at spline distance and add the spline mesh.
In blueprint this should look something like this:
answered Oct 22 '17 at 05:47 PM
Road splines available through Epic's launcher in Learn tab, look for "Blueprint Splines Track" project.
answered Oct 22 '17 at 05:34 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here