Phaser API Documentation

  Version: 
<static> RectangleToTriangle(rect, triangle)

Description:

Checks for intersection between Rectangle shape and Triangle shape.

Parameters:

name type description
rect Phaser.Geom.Rectangle

Rectangle object to test.

triangle Phaser.Geom.Triangle

Triangle object to test.

Returns:
Description:

A value of true if objects intersect; otherwise false.

Type:
  • boolean
Examples:
Since: 3.0.0