setBonesAsMatrices

actual fun setBonesAsMatrices(instance: EntityInstance, matrices: FloatArray, boneCount: Int, offset: Int)

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

Parameters

instance

Instance of the component obtained from getInstance()

matrices

bone transform matrices

boneCount

the number of bones to set

offset

the offset of the first bone to set

expect fun setBonesAsMatrices(instance: EntityInstance, matrices: FloatArray, boneCount: Int, offset: Int)

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

Parameters

instance

Instance of the component obtained from getInstance()

matrices

bone transform matrices

boneCount

the number of bones to set

offset

the offset of the first bone to set

actual fun setBonesAsMatrices(instance: EntityInstance, matrices: FloatArray, boneCount: Int, offset: Int)

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

Parameters

instance

Instance of the component obtained from getInstance()

matrices

bone transform matrices

boneCount

the number of bones to set

offset

the offset of the first bone to set

actual fun setBonesAsMatrices(instance: EntityInstance, matrices: FloatArray, boneCount: Int, offset: Int)

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

Parameters

instance

Instance of the component obtained from getInstance()

matrices

bone transform matrices

boneCount

the number of bones to set

offset

the offset of the first bone to set

actual fun setBonesAsMatrices(instance: EntityInstance, matrices: FloatArray, boneCount: Int, offset: Int)

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

Parameters

instance

Instance of the component obtained from getInstance()

matrices

bone transform matrices

boneCount

the number of bones to set

offset

the offset of the first bone to set