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.
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. |