Fields
optionalstay:Null<(Body, Body, Array<CollisionData>) ‑> Void>
A callback function that is called on frames when two Bodies are continuing to collide.
optionalseparate:Null<Bool>
Flag that determines if Collisions found by this listener should separate the Bodies. Defaults to true
.
optionalpercent_correction:Null<Float>
Percentage of correction along the collision normal to be applied to seperating bodies. Helps prevent objects sinking into each other.
optionalexit:Null<(Body, Body) ‑> Void>
A callback function that is called when a collision between two Bodies ends.
optionalenter:Null<(Body, Body, Array<CollisionData>) ‑> Void>
A callback function that is called on the first frame that a collision starts.
optionalcorrection_threshold:Null<Float>
Threshold determining how close two separating bodies must be before position correction occurs. Helps reduce jitter.