Phaser API Documentation

  Version: 
isCounterClockwise(z)

Description:

Checks if the vertices in this Face are orientated counter-clockwise, or not.

It checks the transformed position of the vertices, not the local one.

Parameters:

name type description
z number

The z-axis value to test against. Typically the Mesh.modelPosition.z.

Returns:
Description:

true if the vertices in this Face run counter-clockwise, otherwise false.

Type:
  • boolean
Since: 3.50.0
Source: src/geom/mesh/Face.js (Line 242)