s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter