Body of shape1.
Body of shape2.
Cast to CollisionArbiter if this is a collision, else null.
Cast to FluidArbiter if this is a fluid interaction, else null.
Whether both interacting bodies are currently sleeping. Throws if the arbiter is not active.
Area of the overlap region in pixels². Used to compute buoyancy force. Must be strictly positive and finite. Mutable in pre-handler only.
First shape (lower id).
Second shape (higher id).
The pre-handler state of this arbiter.
An arbiter representing a fluid interaction between a fluid shape and a body.
Provides access to buoyancy and drag impulses, the overlap area, and the centre of overlap. Properties marked mutable in pre-handler can only be set within a PreListener handler.
Obtain via Arbiter.fluidArbiter or by casting from a callback arbiter.
Fully modernized — uses extracted ZPP_FluidArbiter directly.