Inheritence

Summary

Base class to override if you want to create custom scatterer logic. Provides utility methods for entry selection and common operations.

Constructors

Scatterer

Properties

Random

Methods

CalculatePointCount Calculates the number of points to scatter based on density and area. Caps at maxPoints to prevent engine freezing.
Generate Generates clutter instances for the given bounds. The Random property is initialized before this is called.
GetRandomEntry Selects a random entry from the clutter based on weights. Returns null if no valid entries exist.
Scatter Public entry point for scattering. Creates Random from seed and calls Generate().

Static Methods

GenerateSeed Generates a deterministic seed from tile coordinates and base seed. Use this to create unique seeds for different tiles.
GetAlignedRotation Creates a rotation aligned to a surface normal with random yaw.
TraceGround Helper to perform a ground trace at a position.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.