Skip to content

tes3transform⚓︎

A rotation matrix, translation vector, and scale that marks an object's transformation.

Properties⚓︎

rotation⚓︎

The transform's rotation matrix.

Returns:


scale⚓︎

The transform's scale.

Returns:

  • result (number)

translation⚓︎

The transform's translation vector.

Returns:


Methods⚓︎

copy⚓︎

Creates a copy of the transform.

local result = myObject:copy()

Returns:


invert⚓︎

Returns a new transform that is the inverse of this transform. The second return value indicates whether the calculating the inverse was possible.

local transform, valid = myObject:invert()

Returns:


new⚓︎

Creates a new instance of this type.

local result = myObject:new(rotation, translation, scale)

Parameters:

Returns:


toIdentity⚓︎

Sets transform's rotation matrix to the identity matrix, translation to null vector, and scale to 1.0.

myObject:toIdentity()

Math Operations⚓︎

Multiplication (*)⚓︎

Left operand type Right operand type Result type Description
tes3transform tes3transform tes3transform Calculate the combination of two transforms.
tes3transform tes3vector3 tes3vector3 Calculate the result of applying this transform to a vector.