Transform:setTransformation

Sets the translation, rotation, and scale of the Transform. This will override the current values in the Transform.

transform = Transform:setTransformation(x, y, z, sx, sy, sz, angle, ax, ay, az)

Arguments

NameTypeDescription
xnumberThe x position of the Transform.
ynumberThe x position of the Transform.
znumberThe x position of the Transform.
sxnumberThe x scale of the Transform.
synumberThe y scale of the Transform.
sznumberThe z scale of the Transform.
anglenumberThe number of radians the Transform is rotated around its axis of rotation.
axnumberThe x component of the axis of rotation.
aynumberThe y component of the axis of rotation.
aznumberThe z component of the axis of rotation.

Returns

NameTypeDescription
transformTransformThe original Transform.

See also