Phaser API Documentation

  Version: 
addFace(vertex1, vertex2, vertex3)

Description:

Adds a new Face into the faces array of this Mesh.

A Face consists of references to 3 Vertex instances, which must be provided.

Parameters:

name type description
vertex1 Phaser.Geom.Mesh.Vertex

The first vertex of the Face.

vertex2 Phaser.Geom.Mesh.Vertex

The second vertex of the Face.

vertex3 Phaser.Geom.Mesh.Vertex

The third vertex of the Face.

Returns:
Description:

This Mesh Game Object.

Since: 3.50.0