TKE_Repeat_Object

Opcode

ASCII

&

Hexadecimal

26

Decimal

38

Operands

Long from_index, Long from_variant, Long to_index, Long to_variant, Byte options, (12)xFloat matrix,

from_index

index of previous object to copy

from_variant

specific variant (level of detail) to copy

to_index

if -1, create new object, otherwise adding a variant to the specified object

to_variant

variant being created

options

(currently unused)

matrix

components of the transform matrix

Notes

This may be used when an object is a copy of a previous object, with the exception of an affine transformation (any combination of translate, scale, shear, and rotate) applied to the points.

The matrix is specified in the same form as the Modelling_Matrix opcode – the first 3 elements of the 4 rows of the transform matrix. The 4th element of each row is assumed to be 0 for the frist 3 rows, 1 for the last.