Skip to main content

mesh

Files live in models/. Used by collider2d · mesh, collider3d · mesh, mesh · source, polygon · mesh, shape2d · mesh.

Geometry for mesh-typed properties. A definition either names a source model file to import or carries the vertices itself as positions and indices, which is what lets a script build one at run time; naming both is refused. A skin table adds bone weights for skeletal animation.

[[assets]]
id = "blade"
type = "mesh"
source = "models/blade.obj" # imported...
# ...or, instead of `source`:
positions = [[0, 0, 0], [1, 0, 0], [0, 1, 0]]
indices = [[0, 1, 2]]