Phaser API Documentation

  Version: 
setFromTileRectangle([options])

Description:

Sets the current body to a rectangle that matches the bounds of the tile.

Parameters:

name type arguments description
options Phaser.Types.Physics.Matter.MatterBodyTileOptions <optional>

Options to be used when creating the Matter body. See MatterJS.Body for a list of what Matter accepts.

Returns:
Description:

This TileBody object.

Since: 3.0.0