Body of shape1.
Body of shape2.
Cast to CollisionArbiter if this is a collision, else null.
The list of active contact points between the two shapes. Contains 1 or 2 Contact objects depending on the collision geometry.
Dynamic (kinetic) friction coefficient — applied when the contact is sliding. Combined from the two shapes' material values. Mutable in pre-handler only.
Coefficient of restitution (bounciness).
Combined from the two shapes' elasticity values. Can be overridden
inside a pre-handler. Must be >= 0.
Mutable in pre-handler only.
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.
Collision normal vector pointing from shape1 toward shape2.
Read-only; available after the arbiter is active.
Sum of the radii of the two shapes at the collision point.
Reference edge of shape1 (if polygon), or null.
Reference edge of shape2 (if polygon), or null.
Rolling friction coefficient — resists rolling motion. Combined from the two shapes' material values. Mutable in pre-handler only.
First shape (lower id).
Second shape (higher id).
The pre-handler state of this arbiter.
Static friction coefficient — applied when the contact is at rest. Combined from the two shapes' material values. Mutable in pre-handler only.
Whether the first contact point lies on a polygon vertex (poly-circle only).
Whether this is a collision arbiter.
Whether this is a fluid arbiter.
Whether this is a sensor arbiter.
Rolling impulse applied by this collision.
One of the two bodies, or null for the combined value.
Only include new contact points. Default false.
Whether the second contact point lies on a polygon vertex (poly-circle only).
An arbiter representing a physical collision between two solid shapes.
Provides access to contact points, collision normal, friction coefficients, elasticity, and impulse data. Properties marked mutable in pre-handler can only be set within a PreListener handler.
Obtain via Arbiter.collisionArbiter or by casting from a callback's arbiter list.
Fully modernized — uses extracted ZPP_ColArbiter directly.