s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
live now
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
The jam is running. Build something, or play the entries.
£
50,000
prizepool
View the jam
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
input
Log in with Steam
Api
Classes
TerrainMaterialScatterer
chevron_left
Classes
class
TerrainMaterialScatterer
Constructors
functions
TerrainMaterialScatterer
Properties
data_object
AlignToNormal
data_object
Density
data_object
HeightOffset
data_object
Mappings
data_object
RandomYaw
data_object
Scale
data_object
UseFallback
Methods
lock
Generate
TerrainMaterialScatterer
Scatterer that selects assets based on the terrain material at the hit position. Useful for placing different vegetation on different terrain textures (grass, dirt, rock, etc).
class
Sandbox.Clutter
.
account_tree
extends
Scatterer
Sandbox.Engine
build
Constructors
1
TerrainMaterialScatterer
(
)
data_object
Properties
7
AlignToNormal
bool
Align objects to surface normal.
Density
float
Points per square meter (density).
HeightOffset
float
Offset from ground surface.
Mappings
List`1
Define which entries spawn on which terrain materials.
RandomYaw
bool
Apply random rotation around vertical axis.
Scale
RangedFloat
Scale range for spawned objects.
UseFallback
bool
Use random clutter entry if no material mapping matches or no terrain is present.
functions
Methods
1
Generate
(
bounds
,
clutter
,
scene
)
List`1
Inheritance
Scatterer
TerrainMaterialScatterer
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.