Internal helper function. Please use Phaser.Physics.Arcade.World#collide instead.
name | type | arguments | description |
---|---|---|---|
object1 | Phaser.Types.Physics.Arcade.ArcadeColliderType |
The first object to check for collision. |
|
object2 | Phaser.Types.Physics.Arcade.ArcadeColliderType | <optional> |
The second object to check for collision. |
collideCallback | Phaser.Types.Physics.Arcade.ArcadePhysicsCallback |
The callback to invoke when the two objects collide. |
|
processCallback | Phaser.Types.Physics.Arcade.ArcadePhysicsCallback |
The callback to invoke when the two objects collide. Must return a boolean. |
|
callbackContext | any |
The scope in which to call the callbacks. |
|
overlapOnly | boolean |
Whether this is a collision or overlap check. |
True if any objects overlap (with overlapOnly
); or true if any overlapping objects were separated.