Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

triangleMesh

triangleMesh(options): TriangleMeshShape

A concave mesh: vertices x, y and z after one another in the entity’s own axes, and indices three per triangle, each a vertex’s place. A fixed or a kinematic body takes it, which the body’s type holds: a dynamic body’s mesh has no inside to weigh.

Parameter Type
options { indices: readonly number[]; vertices: readonly number[]; }
options.indices readonly number[]
options.vertices readonly number[]

TriangleMeshShape