Renderer · interface

ClothBindingData

A mesh's cloth binding, one entry a render vertex unless said otherwise.

Explained in Hello world.

interface ClothBindingData
import type { ClothBindingData } from '@driftengine/core';

Properties

NameTypeDescription
trianglesreadonlyUint32ArrayThree particle indices a vertex.
coordinatesreadonlyFloat32ArrayBarycentric u and v a vertex, for the second and third particle; the first takes the rest.
offsetsreadonlyFloat32ArrayMetres along the triangle's normal.
weightsreadonlyFloat32ArrayHow much of the cloth's place a vertex takes: 0 skinned, 1 cloth.
restreadonlyFloat32ArrayThe particles at rest, three floats each, in the mesh's model space.