API ReferenceSandbox.Clutter
public class Sandbox.Clutter.SlopeScatterer : Sandbox.Clutter.Scatterer
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.
Constructors
Showing 1 constructors
public SlopeScatterer()
No results match this filter.
Methods
Showing 1 methods
protected virtual System.Collections.Generic.List`1<Sandbox.Clutter.ClutterInstance> Generate(BBox bounds, Sandbox.Clutter.ClutterDefinition clutter, Sandbox.Scene scene = null)
Parameters
scene: Default: null
No results match this filter.
Properties
Showing 6 properties
public bool Sandbox.Clutter.SlopeScatterer.AlignToNormal { get; set; }
Align objects to surface normal.
public float Sandbox.Clutter.SlopeScatterer.Density { get; set; }
Points per square meter (density).
public float Sandbox.Clutter.SlopeScatterer.HeightOffset { get; set; }
Offset from ground surface.
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.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.Clutter |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Clutter.SlopeScatterer |