setPositions

external fun setPositions(positions: TypedArray<*, *, *, *>, primitiveOffset: Int, primitiveCount: Int)(source)

Updates vertex positions over the specified range of primitives. For position-only updates to many primitives, setPositions() is more efficient than updating each primitive individually.

Argument positions must contain the same total number of vertices as the target primitive range; vertices cannot be added/removed by this method.

See also