Do you know how I can fill the inside of a closed spline with a grid system. My Idea is that I can easily change the spline and my grid system changes with it. Also important to say is that the player shouldn´t be able to place buildings out of the spline and the player is only able to place buildings in the closed spline.
Splines have direction, you can use the right vector and direction from the world location closest to the spline to determine whether you’re inside or outside of it - use dot product
. Ideally you’d do it with a vector snapped to a grid. Some extra stuff will be needed to make it a system. But that’s the gist.