Customizable Spline-based Asset Tiler
Create a tool to tile assets along a spline while keeping the same ratio
Create multiple spline meshes to match a constant frequency
In order to make any mesh fit, we need to get the bounds of the mesh first
Axis Enumeration in case of meshes in different direction
Use For Loop to add as many meshes that fit in the spline length, with a customizable variable added
Setting up the loop: set the start and the end of each mesh, with spline tangents applied.
Now we've already got a spline tool with adjustable parameters and replaceable assets!
With PCG graphs it's easy to generate meshes along with the wall frequency
Added additional spline point meshes
Remove the meshes from PCG on exact locations of spline points
Since the construction script updates continuously when moving the spline points, the lag is getting annoying...
There's an option below class settings to disable the update on drag
Creating a manual update would also work
Option to close the spline, and reset the modifier back to a reasonable number
With some randomness, we can already achieve this
Accessible Gates?
We have the fortress, it'd be better if there's an entrance...
Gate locations are exact spline point locations, so we know if there's a starting or ending point of a wall too close to one of the points
Once a starting or ending point is too close, try to adjust their location by moving them forward or backward.