setBones

fun setBones(instance: EntityInstance, transforms: Array<RenderableManager.Bone>, boneCount: Int = transforms.size, offset: Int = 0)

Updates the bone transforms in the range [offset, offset + boneCount). The bones must be pre-allocated using Builder.skinning().

Parameters

transforms

the bone transforms

boneCount

the number of bones to set

offset

the index of the first bone to set


fun setBones(instance: EntityInstance, transforms: FloatArray, boneCount: Int = transforms.size / 16, offset: Int = 0)

Updates the bone transforms in the range [offset, offset + boneCount). The bones must be pre-allocated using Builder.skinning().

Parameters

transforms

4x4 bone transforms, 16 floats per bone

boneCount

the number of bones to set

offset

the index of the first bone to set