Phaser API Documentation

  Version: 
<static> TileIntersectsBody(tileWorldRect, body)

Description:

Checks for intersection between the given tile rectangle-like object and an Arcade Physics body.

Parameters:

name type description
tileWorldRect Object

A rectangle object that defines the tile placement in the world.

body Phaser.Physics.Arcade.Body

The body to check for intersection against.

Returns:
Description:

Returns true of the tile intersects with the body, otherwise false.

Type:
  • boolean