phaser-jsx
    Preparing search index...

    Variable Mesh2DConst

    Mesh2D: FC<
        ObjectProps<Mesh2D> & RecursivePartial<Mesh2D> & {
            flipV?: boolean;
            indices: number[];
            texture: string | Texture;
            vertices: number[];
        },
    > = ...

    A Mesh2D game object renders a 2D mesh made from textured triangles.

    Connects bodies in the composite with constraints in a grid pattern, with optional cross braces.

    It only works in WebGL render mode.

    Mesh2D does not generate vertices from a texture frame. Each vertex provides its own position and texture coordinate.