Phaser API Documentation

  Version: 
depthSort()

Description:

Runs a depth sort across all Faces in this Mesh, comparing their averaged depth.

This is called automatically if you use any of the rotate methods, but you can also invoke it to sort the Faces should you manually position them.

Returns:
Description:

This Mesh Game Object.

Since: 3.50.0