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
SlopeScatterer
chevron_left
Classes
class
SlopeScatterer
Constructors
functions
SlopeScatterer
Properties
data_object
AlignToNormal
data_object
Density
data_object
HeightOffset
data_object
Mappings
data_object
Scale
data_object
UseFallback
Methods
lock
Generate
SlopeScatterer
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.
class
Sandbox.Clutter
.
account_tree
extends
Scatterer
Sandbox.Engine
build
Constructors
1
SlopeScatterer
(
)
data_object
Properties
6
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 at which slope angles.
Scale
RangedFloat
Scale range for spawned objects.
UseFallback
bool
Use random clutter entry if no slope mapping matches.
functions
Methods
1
Generate
(
bounds
,
clutter
,
scene
)
List`1
Inheritance
Scatterer
SlopeScatterer
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.