trackSprite(sprite, offsetX, offsetY, trackRotation) → {Phaser.Weapon}
Sets this Weapon to track the given Sprite, or any Object with a public world Point object.When a Weapon tracks a Sprite it will automatically update its fireFrom value to match the Spritesposition within the Game World, adjusting the coordinates based on the offset arguments. This allows you to lock a Weapon to a Sprite, so that bullets are always launched from its location. Calling trackSprite will reset Weapon.trackedPo