07-27-2022, 11:08 AM
(This post was last modified: 07-27-2022, 12:04 PM by Beaver_Boy.)
Hello,
I am making a railway track using a Curvy spline. In runtime, I add a new segment with a mouse click, and then use the generator to make a mesh for this segment.
Then I can move the cursor to a new position and click the mouse button, and another curvy segment is added here and the mesh generator makes another rail mesh that connects to the previous one.
My problem is that there are visible gaps between the mesh segments. Here is an image:
I am using a Bezier splines, and have set the handles for the control points in code, which gives a smooth spline. But the gaps are still there between the segments.
Is there a way to not have the gaps? I saw in Example scene 12 - Train there are no gaps between the rails. How was this done? I am using the same cross-section spline, the same material, and the same generator, but I am getting these gaps.
I think the problem may be that I cannot move the position of the 'Handle In' arm on the control point of the segment where the mesh has already been generated. This is because that segment of track has already been placed on the terrain by the player, and so the spline shape needs to be fixed for that segment.
I am making a railway track using a Curvy spline. In runtime, I add a new segment with a mouse click, and then use the generator to make a mesh for this segment.
Then I can move the cursor to a new position and click the mouse button, and another curvy segment is added here and the mesh generator makes another rail mesh that connects to the previous one.
My problem is that there are visible gaps between the mesh segments. Here is an image:
I am using a Bezier splines, and have set the handles for the control points in code, which gives a smooth spline. But the gaps are still there between the segments.
Is there a way to not have the gaps? I saw in Example scene 12 - Train there are no gaps between the rails. How was this done? I am using the same cross-section spline, the same material, and the same generator, but I am getting these gaps.
I think the problem may be that I cannot move the position of the 'Handle In' arm on the control point of the segment where the mesh has already been generated. This is because that segment of track has already been placed on the terrain by the player, and so the spline shape needs to be fixed for that segment.