Namespace: Tilemap

Phaser.Physics.Arcade. Tilemap

Methods


<static> ProcessTileCallbacks(tile, sprite)

[description]

Parameters:
Name Type Description
tile Phaser.Tilemaps.Tilemap

[description]

sprite Phaser.GameObjects.Sprite

[description]

Since: 3.0.0
Source: src/physics/arcade/tilemap/ProcessTileCallbacks.js (Line 7)
Returns:

[description]

Type
boolean

<static> ProcessTileSeparationX(body, x)

Internal function to process the separation of a physics body from a tile.

Parameters:
Name Type Description
body Phaser.Physics.Arcade.Body

The Body object to separate.

x number

The x separation amount.

Since: 3.0.0
Source: src/physics/arcade/tilemap/ProcessTileSeparationX.js (Line 7)

<static> ProcessTileSeparationY(body, y)

Internal function to process the separation of a physics body from a tile.

Parameters:
Name Type Description
body Phaser.Physics.Arcade.Body

The Body object to separate.

y number

The y separation amount.

Since: 3.0.0
Source: src/physics/arcade/tilemap/ProcessTileSeparationY.js (Line 7)

<static> SeparateTile(i, body, tile, tileWorldRect, tilemapLayer, tileBias)

The core separation function to separate a physics body and a tile.

Parameters:
Name Type Description
i number

[description]

body Phaser.Physics.Arcade.Body

The Body object to separate.

tile Phaser.Tilemaps.Tile

The tile to collide against.

tileWorldRect Phaser.Geom.Rectangle

[description]

tilemapLayer Phaser.Tilemaps.DynamicTilemapLayer | Phaser.Tilemaps.StaticTilemapLayer

The tilemapLayer to collide against.

tileBias number

[description]

Since: 3.0.0
Source: src/physics/arcade/tilemap/SeparateTile.js (Line 11)
Returns:

Returns true if the body was separated, otherwise false.

Type
boolean

<static> TileCheckX(body, tile, tileLeft, tileRight, tileBias)

Check the body against the given tile on the X axis.

Parameters:
Name Type Description
body Phaser.Physics.Arcade.Body

The Body object to separate.

tile Phaser.Tilemaps.Tile

The tile to check.

tileLeft number

[description]

tileRight number

[description]

tileBias number

[description]

Since: 3.0.0
Source: src/physics/arcade/tilemap/TileCheckX.js (Line 9)
Returns:

The amount of separation that occurred.

Type
number

<static> TileCheckY(body, tile, tileTop, tileBottom, tileBias)

Check the body against the given tile on the Y axis.

Parameters:
Name Type Description
body Phaser.Physics.Arcade.Body

The Body object to separate.

tile Phaser.Tilemaps.Tile

The tile to check.

tileTop number

[description]

tileBottom number

[description]

tileBias number

[description]

Since: 3.0.0
Source: src/physics/arcade/tilemap/TileCheckY.js (Line 9)
Returns:

The amount of separation that occurred.

Type
number

<static> TileIntersectsBody(tileWorldRect, body)

[description]

Parameters:
Name Type Description
tileWorldRect Object

[description]

body Phaser.Physics.Arcade.Body

[description]

Since: 3.0.0
Source: src/physics/arcade/tilemap/TileIntersectsBody.js (Line 7)
Returns:

[description]

Type
boolean