setTangentsAt

fun setTangentsAt(engine: Engine, targetIndex: Int, tangents: ShortArray, count: Int, offset: Int = 0)

Updates tangents for the given morph target. Requires a buffer built with withTangents(true).

Parameters

engine

The Engine instance.

targetIndex

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

tangents

At least count quaternions, 4 shorts each: components in -1, 1 times 32767.

count

Number of vertices being updated.

offset

Offset into the target buffer, in vertices.