s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
inputLog in with Steam
Api
Classes
TerrainMaterialScatterer
chevron_left Classes
class
TerrainMaterialScatterer

Constructors

functionsTerrainMaterialScatterer

Properties

data_objectAlignToNormaldata_objectDensitydata_objectHeightOffsetdata_objectMappingsdata_objectRandomYawdata_objectScaledata_objectUseFallback

Methods

lockGenerate
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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter