collide(object1, object2, collideCallback, processCallback, callbackContext) → {boolean}
Checks for collision between two game objects. You can perform Sprite vs. Sprite, Sprite vs. Group, Group vs. Group, Sprite vs. Tilemap Layer or Group vs. Tilemap Layer collisions.The second parameter can be an array of objects, of differing types.The objects are also automatically separated. If you don't require separation then use ArcadePhysics.overlap instead.An optional processCallback can be provided