# Sandbox.WaterVolume

Makes objects float, sink and drift. Attach to any trigger collider to create water.

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.Component](/api/Sandbox.Component)
- Modifiers: sealed

## Constructors

- [`WaterVolume`](/api/Sandbox.WaterVolume/.ctor)

## Properties

- [`AngularDrag`](/api/Sandbox.WaterVolume/AngularDrag): How much the fluid slows down spinning.
- [`FluidDensity`](/api/Sandbox.WaterVolume/FluidDensity): 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`](/api/Sandbox.WaterVolume/FluidVelocity): Direction and speed of the water current.
- [`IgnoreTags`](/api/Sandbox.WaterVolume/IgnoreTags): Objects with any of these tags won't be affected.
- [`LinearDrag`](/api/Sandbox.WaterVolume/LinearDrag): How much the fluid slows down movement.
- [`SurfaceOffset`](/api/Sandbox.WaterVolume/SurfaceOffset): Moves the water surface up or down.
- [`WaveAmplitude`](/api/Sandbox.WaterVolume/WaveAmplitude): How tall the waves are. Set to 0 for calm water.
- [`WaveFrequency`](/api/Sandbox.WaterVolume/WaveFrequency): How fast the waves move.
