Scripting API

Scripting API

MeshGeometry

Record in Abyss.Core, from Abyss.Core.

A mesh's corners and the triangles between them, as the engine holds the mesh: what a collider of it is made of. See World.MeshGeometry.

public record MeshGeometry

Constructors

MeshGeometry

public MeshGeometry(Vector3[] Positions, uint[] Indices)

A mesh's corners and the triangles between them, as the engine holds the mesh: what a collider of it is made of. See World.MeshGeometry.

Parameters

  • Positions: Each corner, in the mesh's own space.
  • Indices: Each triangle's three corners, as indices into Positions, three a triangle.

Properties

Positions

public Vector3[] Positions { get; init; }

Each corner, in the mesh's own space.

Indices

public uint[] Indices { get; init; }

Each triangle's three corners, as indices into Positions, three a triangle.

Triangles

public int Triangles { get; }

How many triangles there are.