Skip to content

[4.2.0] buildOrderedIndices method of Mesh2D game object #7327

Description

@rexrainbow

Version

  • Phaser Version: 4.2.0
  • Operating system: win11
  • Browser: chrome

Description

Test case , build the same vertices via different methods

  • setRenderAsTriangles
  • setUseOrderedIndices
  • buildOrderedIndices

And user can drag red-circle to move the vertex.

The last one, ordered quad

mesh.buildOrderedIndices(2, true)
// renderAsTriangles = false

seems to be wrong, especially the bottom of triangle.

1st and 2nd methods looks fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions