Weapon#bounds

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)
doc_phaser
2017-02-14 11:19:40
Comments
Leave a Comment

Please login to continue.