Back to Filament

setBonesAsMatrices

docs/android/dokka/filament-android/com.google.android.filament/-skinning-buffer/set-bones-as-matrices.md

1.75.01020 B
Original Source

//filament-android/com.google.android.filament/SkinningBuffer/setBonesAsMatrices

setBonesAsMatrices

[main]
open fun setBonesAsMatrices(engine: Engine, matrices: Buffer, boneCount: Int, offset: Int)

Updates the bone transforms in the range [offset, offset + boneCount).

Parameters

main

engineEngine instance
matricesA FloatBuffer containing boneCount 4x4 packed matrices (i.e. 16 floats each matrix and no gap between matrices)
boneCountNumber of bones to set
offsetIndex of the first bone to set