Skip to main content

Project Onto Geometry/Landscape

By default, Paths follow the height of the PathSpline. This is useful when creating Paths that need to maintain a steady height, such as a highway, tunnel or bridge. For smaller roads it is often useful to project the Path onto the landscape using ProjectOntoGeometry property in the PathAdjustment.

There is also a property that controls whether the first/last points should be projected as well. This matters when the ends of the Path are connected to intersections.

The best method of projecting a Path only onto specific objects (e.g. landscape) in a level is to create a trace channel with the default response set to "Ignore" and setting the response to the "Block" for the selected objects only. The Path can be configured to only project onto objects with that trace channel set to "Block".

The video below demonstrates results of this method. Path projection ignores the tunnel above the landscape if the "Collision Channel" is set to the "PathProjection". Otherwise, if it's set to the "WorldStatic", Path gets projected onto all the objects, including the tunnel.

tip

When projecting a Path onto the landscape, it's usually crucial to apply vertical smoothing to the Path.