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.
Constructors1
Showing 1 constructors
public SlopeScatterer()
No results match this filter.
Methods1
Showing 1 methods
protected virtual System.Collections.Generic.List`1<Sandbox.Clutter.ClutterInstance> Generate(BBox bounds, Sandbox.Clutter.ClutterDefinition clutter, Sandbox.Scene scene = null)
| Parameter | Type | Description |
|---|---|---|
| bounds | BBox | — |
| clutter | ClutterDefinition | — |
| scene = null | Scene | — |
No results match this filter.
Properties6
Showing 6 properties
public bool Sandbox.Clutter.SlopeScatterer.AlignToNormal { get; set; }
Align objects to surface normal.
Returns:
bool—public float Sandbox.Clutter.SlopeScatterer.Density { get; set; }
Points per square meter (density).
Returns:
float—public float Sandbox.Clutter.SlopeScatterer.HeightOffset { get; set; }
Offset from ground surface.
Returns:
float—public System.Collections.Generic.List`1<Sandbox.Clutter.SlopeMapping> Sandbox.Clutter.SlopeScatterer.Mappings { get; set; }
Define which entries spawn at which slope angles.
public RangedFloat Sandbox.Clutter.SlopeScatterer.Scale { get; set; }
Scale range for spawned objects.
public bool Sandbox.Clutter.SlopeScatterer.UseFallback { get; set; }
Use random clutter entry if no slope mapping matches.
Returns:
bool—No results match this filter.