s&
infoAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games exploreDiscover Games
categoryWorkshop
sports_esportsGames landscapeMaps view_in_arModels textureMaterials apparelClothing constructionMore..
forumForum menu_bookLearn
docsDocumentation apiApi Reference schoolTutorials manage_searchCode Search
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
Components
WaterVolume
chevron_left Components
class
WaterVolume

Constructors

functionsWaterVolume

Properties

data_objectAngularDragdata_objectFluidDensitydata_objectFluidVelocitydata_objectIgnoreTagsdata_objectLinearDragdata_objectSurfaceOffsetdata_objectWaveAmplitudedata_objectWaveFrequency
WaterVolume
Makes objects float, sink and drift. Attach to any trigger collider to create water.
class Sandbox .account_tree extends Component
sealedSandbox.Engine

build Constructors 1

WaterVolume ()

data_object Properties 8

AngularDrag
float
How much the fluid slows down spinning.
FluidDensity
float
How heavy the fluid is. Higher values make things float more. Water is 1000, oil is around 900, something very heavy like mercury is 13600.
FluidVelocity
Vector3
Direction and speed of the water current.
IgnoreTags
TagSet
Objects with any of these tags won't be affected.
LinearDrag
float
How much the fluid slows down movement.
SurfaceOffset
float
Moves the water surface up or down.
WaveAmplitude
float
How tall the waves are. Set to 0 for calm water.
WaveFrequency
float
How fast the waves move.

Inheritance

Component
WaterVolume
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