setMorphWeights

fun setMorphWeights(instance: EntityInstance, weights: FloatArray, offset: Int = 0)

Updates the vertex morphing weights on a renderable, all zeroes by default.

The renderable must be built with morphing enabled, see Builder.morphing(). In legacy morphing mode, only the first 4 weights are considered.

Parameters

weights

morph target weights to set

offset

index of the first morph target weight to set