Sets the hit area for an array of Game Objects to be a Phaser.Geom.Circle
shape, using
the given coordinates and radius to control its position and size.
name | type | arguments | description |
---|---|---|---|
gameObjects | Phaser.GameObjects.GameObject | Array.<Phaser.GameObjects.GameObject> |
An array of Game Objects to set as having a circle hit area. |
|
x | number |
The center of the circle. |
|
y | number |
The center of the circle. |
|
radius | number |
The radius of the circle. |
|
callback | Phaser.Types.Input.HitAreaCallback | <optional> |
The hit area callback. If undefined it uses Circle.Contains. |
This InputPlugin object.