Internal handler for Sprite vs. Group collisions. Please use Phaser.Physics.Arcade.World#collide instead.
name | type | description |
---|---|---|
sprite | Phaser.GameObjects.GameObject |
The first object to check for collision. |
group | Phaser.GameObjects.Group |
The second object to check for collision. |
collideCallback | ArcadePhysicsCallback |
The callback to invoke when the two objects collide. |
processCallback | 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 the Sprite collided with the given Group, otherwise false
.