scatter
Place multiple copies of an object randomly on surfaces with control over area, distance, slope, alignment, scale, and rotation; get counts and rejection reasons.
Instructions
Place count copies of an object at random on top of surface objects, standing on the surface: trees, rocks,
crates, grass, sprinkles. source may be a list: each copy takes one at random and weights sets the odds.
area [x0,y0,x1,y1] limits where (default: the surface bounds); min_distance keeps copies apart; max_slope_deg
skips steep ground; align_to_normal tilts them with the ground; scale_range [min,max] and yaw_random vary them.
The same seed gives the same result. linked=true shares one mesh (cheap). The answer counts the copies per source
and why tries were rejected (too_close, not_on_surface, too_steep). For one object at a chosen spot use place_on.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | ||
| name | No | ||
| seed | No | ||
| count | Yes | ||
| linked | No | ||
| source | Yes | ||
| surface | Yes | ||
| weights | No | ||
| yaw_random | No | ||
| scale_range | No | ||
| min_distance | No | ||
| max_slope_deg | No | ||
| align_to_normal | No |