Finds the Body or Game Object closest to a source point or object.
targets argument is passed, this method finds the closest of those.
The targets can be Arcade Physics Game Objects, Dynamic Bodies, or Static Bodies.
targets argument is passed, this method finds the closest Dynamic Body.
If two or more targets are the exact same distance from the source point, only the first target is returned.
Any object with public
|Array.<Phaser.Physics.Arcade.Body> | Array.<Phaser.Physics.Arcade.StaticBody> | Array.<Phaser.GameObjects.GameObject>
The target closest to the given source point.