s&
info
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
explore
Discover Games
category
Workshop
sports_esports
Games
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
menu_book
Learn
docs
Documentation
api
Api Reference
school
Tutorials
manage_search
Code Search
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Components
WaterVolume
chevron_left
Components
class
WaterVolume
Constructors
functions
WaterVolume
Properties
data_object
AngularDrag
data_object
FluidDensity
data_object
FluidVelocity
data_object
IgnoreTags
data_object
LinearDrag
data_object
SurfaceOffset
data_object
WaveAmplitude
data_object
WaveFrequency
WaterVolume
Makes objects float, sink and drift. Attach to any trigger collider to create water.
class
Sandbox
.
account_tree
extends
Component
sealed
Sandbox.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.