Phaser API Documentation

  Version: 
onWall()

Description:

Whether this Body is touching a tile or the world boundary while moving left or right.

Returns:
Description:

True if touching.

Type:
  • boolean
Since: 3.0.0