Phaser API Documentation

  Version: 
sortByDepth(faceA, faceB)

Description:

Compare the depth of two Faces.

Parameters:

name type description
faceA Phaser.Geom.Mesh.Face

The first Face.

faceB Phaser.Geom.Mesh.Face

The second Face.

Returns:
Description:

The difference between the depths of each Face.

Type:
  • number
Since: 3.50.0