bounds : Phaser.Rectangle
This Rectangle defines the bounds that are used when determining if a Bullet should be killed or not.
It's used in combination with Weapon.bulletKillType
when that is set to either Phaser.Weapon.KILL_WEAPON_BOUNDS
or Phaser.Weapon.KILL_STATIC_BOUNDS
. If you are not using either of these kill types then the bounds are ignored.
If you are tracking a Sprite or Point then the bounds are centered on that object every frame.
- Source code: plugins/weapon/WeaponPlugin.js (Line 266)
Please login to continue.