Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Mesh

<static> RotateFace(face, angle, [cx], [cy])

Description:

Rotates the vertices of a Face to the given angle.

The actual vertex positions are adjusted, not their transformed positions.

Therefore, this updates the vertex data directly.

Parameters:

name type arguments description
face Phaser.Geom.Mesh.Face

The Face to rotate.

angle number

The angle to rotate to, in radians.

cx number <optional>

An optional center of rotation. If not given, the Face in-center is used.

cy number <optional>

An optional center of rotation. If not given, the Face in-center is used.

Since: 3.50.0