API ReferenceSandbox
WaterVolumeclass
Makes objects float, sink and drift. Attach to any trigger collider to create water.
Constructors1
Showing 1 constructors
public WaterVolume()
No results match this filter.
Properties8
Showing 8 properties
public float Sandbox.WaterVolume.AngularDrag { get; set; }
How much the fluid slows down spinning.
Returns:
float—public float Sandbox.WaterVolume.FluidDensity { get; set; }
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.
Returns:
float—public Vector3 Sandbox.WaterVolume.FluidVelocity { get; set; }
Direction and speed of the water current.
public Sandbox.TagSet Sandbox.WaterVolume.IgnoreTags { get; set; }
Objects with any of these tags won't be affected.
public float Sandbox.WaterVolume.LinearDrag { get; set; }
How much the fluid slows down movement.
Returns:
float—public float Sandbox.WaterVolume.SurfaceOffset { get; set; }
Moves the water surface up or down.
Returns:
float—public float Sandbox.WaterVolume.WaveAmplitude { get; set; }
How tall the waves are. Set to 0 for calm water.
Returns:
float—public float Sandbox.WaterVolume.WaveFrequency { get; set; }
How fast the waves move.
Returns:
float—No results match this filter.