FluidDrain2D
class in OpalScript
Remove particles from a chosen domain inside this object's rectangle, including its rotation and scale.
Properties
| Member | Description |
|---|---|
| FluidDrain2D.Draining | Whether this drain is enabled. |
| FluidDrain2D.DrainedRate | Removed particles in the latest fixed tick divided by tick duration, in particles per second. |
| FluidDrain2D.DomainAvailable | Whether the exact referenced domain is present and enabled in the current physics session. |
Methods
| Member | Description |
|---|---|
| FluidDrain2D.SetDraining | Enable or disable removing water that crosses this drain rectangle. |