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
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.