phaser - v3.90.0
    Preparing search index...
    • 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

      • face: Geom.Mesh.Face

        The Face to rotate.

      • angle: number

        The angle to rotate to, in radians.

      • Optionalcx: number

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

      • Optionalcy: number

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

      Returns void