Create an overlap sensor between the two objects. Bodies pass through each other; the callback fires when they overlap.
Optionalcallback: ArcadePhysicsCallbackThe created Collider (overlap), or null if physics is not available.
Create a solid collider between the two objects. Bodies bounce off each other and cannot overlap.
Optionalcallback: ArcadePhysicsCallbackThe created Collider, or null if physics is not available.
Optional process callback — return false to prevent the collision response for that specific pair this frame (e.g., one-way platforms).
Set the second collision target
Fluent collision setup builder returned by
PhysicsHelper.collide().Example
Example