Creates a new Arcade Physics Collider object.
name | type | arguments | description |
---|---|---|---|
object1 | Phaser.Types.Physics.Arcade.ArcadeColliderType |
The first object to check for collision. |
|
object2 | Phaser.Types.Physics.Arcade.ArcadeColliderType |
The second object to check for collision. |
|
collideCallback | Phaser.Types.Physics.Arcade.ArcadePhysicsCallback | <optional> |
The callback to invoke when the two objects collide. |
processCallback | Phaser.Types.Physics.Arcade.ArcadePhysicsCallback | <optional> |
The callback to invoke when the two objects collide. Must return a boolean. |
callbackContext | * | <optional> |
The scope in which to call the callbacks. |
The Collider that was created.