setPositionsAt

actual fun setPositionsAt(engine: Engine, targetIndex: Int, positions: FloatArray, count: Int)

Upload position data for a specific morph target.

The positions array must contain count vertices, with 3 floats per vertex (x, y, z).

Parameters

engine

The Engine instance.

targetIndex

Zero-based index of the morph target to update (< count).

positions

Array of position offsets (3 floats per vertex).

count

Number of vertices being updated.

expect fun setPositionsAt(engine: Engine, targetIndex: Int, positions: FloatArray, count: Int)

Upload position data for a specific morph target.

The positions array must contain count vertices, with 3 floats per vertex (x, y, z).

Parameters

engine

The Engine instance.

targetIndex

Zero-based index of the morph target to update (< count).

positions

Array of position offsets (3 floats per vertex).

count

Number of vertices being updated.

actual fun setPositionsAt(engine: Engine, targetIndex: Int, positions: FloatArray, count: Int)

Upload position data for a specific morph target.

The positions array must contain count vertices, with 3 floats per vertex (x, y, z).

Parameters

engine

The Engine instance.

targetIndex

Zero-based index of the morph target to update (< count).

positions

Array of position offsets (3 floats per vertex).

count

Number of vertices being updated.

actual fun setPositionsAt(engine: Engine, targetIndex: Int, positions: FloatArray, count: Int)

Upload position data for a specific morph target.

The positions array must contain count vertices, with 3 floats per vertex (x, y, z).

Parameters

engine

The Engine instance.

targetIndex

Zero-based index of the morph target to update (< count).

positions

Array of position offsets (3 floats per vertex).

count

Number of vertices being updated.

actual fun setPositionsAt(engine: Engine, targetIndex: Int, positions: FloatArray, count: Int)

Upload position data for a specific morph target.

The positions array must contain count vertices, with 3 floats per vertex (x, y, z).

Parameters

engine

The Engine instance.

targetIndex

Zero-based index of the morph target to update (< count).

positions

Array of position offsets (3 floats per vertex).

count

Number of vertices being updated.