Skip to content

FluidDrain2D ​

class in OpalScript

Remove particles from a chosen domain inside this object's rectangle, including its rotation and scale.

Properties ​

MemberDescription
FluidDrain2D.DrainingWhether this drain is enabled.
FluidDrain2D.DrainedRateRemoved particles in the latest fixed tick divided by tick duration, in particles per second.
FluidDrain2D.DomainAvailableWhether the exact referenced domain is present and enabled in the current physics session.

Methods ​

MemberDescription
FluidDrain2D.SetDrainingEnable or disable removing water that crosses this drain rectangle.

See also ​