Skip to content

@modoki/engine / index / computeAutoWeights

Function: computeAutoWeights()

computeAutoWeights(verts, bones, opts?): AutoWeights

Compute per-vertex bone weights for a mesh. verts are texture-space [x,y] (the same frame the bind bones live in). Returns packed 4-per-vertex indices+weights.

Parameters

verts

readonly readonly number[][]

bones

readonly BindBone[]

opts?

AutoWeightOptions = {}

Returns

AutoWeights

Built with Modoki.