Renderer · interface
ClothBindingData
A mesh's cloth binding, one entry a render vertex unless said otherwise.
Explained in Hello world.
interface ClothBindingDataimport type { ClothBindingData } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
trianglesreadonly | Uint32Array | Three particle indices a vertex. |
coordinatesreadonly | Float32Array | Barycentric u and v a vertex, for the second and third particle; the first takes the rest. |
offsetsreadonly | Float32Array | Metres along the triangle's normal. |
weightsreadonly | Float32Array | How much of the cloth's place a vertex takes: 0 skinned, 1 cloth. |
restreadonly | Float32Array | The particles at rest, three floats each, in the mesh's model space. |