Rectangle#intersects()

intersects(b) → {boolean}

Determines whether this Rectangle and another given Rectangle intersect with each other.
This method checks the x, y, width, and height properties of the two Rectangles.

Parameters
Name Type Description
b Phaser.Rectangle

The second Rectangle object.

Returns
boolean -

A value of true if the specified object intersects with this Rectangle object; otherwise false.

Source code: geom/Rectangle.js (Line 323)
doc_phaser
2017-02-14 11:06:59
Comments
Leave a Comment

Please login to continue.