I'm trying to use a generated mesh from a spline and seamlessly attach it to a prefab. The mesh generation is using the line shape so it's nothing terribly fancy. The attached image here shows the effect I'm seeing.
This is a single spline that loops around with the first CP being at the top of the junction point and the last being at the bottom. The generated mesh is the road that loops. The junction in the road is a prefab with a couple of different splines that run in varying directions so I can path accordingly.
What I'd like this to do is honour the orientation of the starting and ending control points so that I can get them to line up with the junction mesh.
Is this something that we can do with the current mesh generator? Or is this on the wishlist for the new one?
I've been able to tweak the splines to get it pretty close to joining up by mucking about with the TCB values but my goal is to be able to allow the user to draw roads in realtime and have it line up the way they would expect.
This is a single spline that loops around with the first CP being at the top of the junction point and the last being at the bottom. The generated mesh is the road that loops. The junction in the road is a prefab with a couple of different splines that run in varying directions so I can path accordingly.
What I'd like this to do is honour the orientation of the starting and ending control points so that I can get them to line up with the junction mesh.
Is this something that we can do with the current mesh generator? Or is this on the wishlist for the new one?
I've been able to tweak the splines to get it pretty close to joining up by mucking about with the TCB values but my goal is to be able to allow the user to draw roads in realtime and have it line up the way they would expect.