setBonesAsMatrices

actual fun setBonesAsMatrices(engine: Engine, matrices: FloatArray, boneCount: Int, offset: Int)

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

Each bone is specified as a 4x4 transformation matrix in row-major order.

Parameters

engine

The engine

matrices

Array of 4x4 matrices (16 floats per matrix)

boneCount

Number of bones to set

offset

Offset in elements (not bytes) in the SkinningBuffer (default: 0)

expect fun setBonesAsMatrices(engine: Engine, matrices: FloatArray, boneCount: Int, offset: Int)

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

Each bone is specified as a 4x4 transformation matrix in row-major order.

Parameters

engine

The engine

matrices

Array of 4x4 matrices (16 floats per matrix)

boneCount

Number of bones to set

offset

Offset in elements (not bytes) in the SkinningBuffer (default: 0)

actual fun setBonesAsMatrices(engine: Engine, matrices: FloatArray, boneCount: Int, offset: Int)

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

Each bone is specified as a 4x4 transformation matrix in row-major order.

Parameters

engine

The engine

matrices

Array of 4x4 matrices (16 floats per matrix)

boneCount

Number of bones to set

offset

Offset in elements (not bytes) in the SkinningBuffer (default: 0)

actual fun setBonesAsMatrices(engine: Engine, matrices: FloatArray, boneCount: Int, offset: Int)

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

Each bone is specified as a 4x4 transformation matrix in row-major order.

Parameters

engine

The engine

matrices

Array of 4x4 matrices (16 floats per matrix)

boneCount

Number of bones to set

offset

Offset in elements (not bytes) in the SkinningBuffer (default: 0)

actual fun setBonesAsMatrices(engine: Engine, matrices: FloatArray, boneCount: Int, offset: Int)

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

Each bone is specified as a 4x4 transformation matrix in row-major order.

Parameters

engine

The engine

matrices

Array of 4x4 matrices (16 floats per matrix)

boneCount

Number of bones to set

offset

Offset in elements (not bytes) in the SkinningBuffer (default: 0)