API ReferenceSandbox.Clutter

SlopeScattererclass

Scatterer that filters and selects assets based on the slope angle of the surface. Useful for placing different vegetation or rocks on flat vs steep terrain.

objectScattererSlopeScatterer
Namespace
Sandbox.Clutter
Assembly
Sandbox.Engine
Declaration
public class Sandbox.Clutter.SlopeScatterer : Sandbox.Clutter.Scatterer

Constructors1

Showing 1 constructors

Methods1

Showing 1 methods

Properties6

Showing 6 properties

public bool Sandbox.Clutter.SlopeScatterer.AlignToNormal { get; set; }PUBLICGETSET

Align objects to surface normal.

Returns:bool

public float Sandbox.Clutter.SlopeScatterer.Density { get; set; }PUBLICGETSET

Points per square meter (density).

Returns:float

public float Sandbox.Clutter.SlopeScatterer.HeightOffset { get; set; }PUBLICGETSET

Offset from ground surface.

Returns:float

public System.Collections.Generic.List`1<Sandbox.Clutter.SlopeMapping> Sandbox.Clutter.SlopeScatterer.Mappings { get; set; }PUBLICGETSET

Define which entries spawn at which slope angles.

Returns:List<SlopeMapping>

public bool Sandbox.Clutter.SlopeScatterer.UseFallback { get; set; }PUBLICGETSET

Use random clutter entry if no slope mapping matches.

Returns:bool

On this page