Skip to main content

RiverCenterFill

A class in Root.Township, Alta.Forests.

Forest fill step that places objects on points along the middle of rivers.

Constructors​

MemberWhat it is
RiverCenterFill()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

5 private and internal fields
MemberWhat it is
private float extraRadiusExtra radius passed to the segments when getting points.
private bool isSpawningOnWaterfallsAlso use waterfall segments.
private static Logger loggerLogger for this class.
private RiverGenerator riverRiver generator to read segments from.
private float stepSpacing between points.

Methods​

MemberWhat it is
protected override async Task GenerateInternal(LocationChunk chunk, InstructionSet instructions)Takes points from river segments in the chunk, raycasts them and adds spawn instructions for those that pass.