Skip to content

Dynamic

Inherits Instance

Dynamic is the base class where all objects with a position, rotation and scale derive from.

Properties

Position : Vector3

The position of the object.

Rotation : Vector3

The rotation of the object.

Size : Vector3

The size of the object.

LocalPosition : Vector3

The position of the object relative to its parent.

LocalRotation : Vector3

The rotation of the object relative to its parent.

LocalSize : Vector3

The size of the object relative to its parent.

Quaternion : Quaternion

The rotation of the object represented as a quaternion.

Locked : boolean

Determines whether the object can be selected in the Creator.

Forward : Vector3

The forward direction vector of the object.

The right direction vector of the object.

Up : Vector3

The up direction vector of the object.

Methods

LookAt → nil

Parameters: target [ any ]

Orients the object to look at a target with a specified up vector.

LookAt → nil

Parameters

target [ any ]

up [ Vector3 ]

Orients the object to look at a target with a specified up vector.

Translate → nil

Parameters: translation [ Vector3 ]

Moves the transform in the direction and distance of translation.

RotateAround → nil

Parameters

point [ Vector3 ]

axis [ Vector3 ]

angle [ number ]

Rotates the object around a point by the specified Euler angles.

Rotate → nil

Parameters: eulerAngles [ Vector3 ]

Rotates the object by the specified Euler angles.

InverseTransformPoint → Vector3

Parameters: point [ Vector3 ]

Transforms a point from world space to local space.

TransformPoint → Vector3

Parameters: point [ Vector3 ]

Transforms a point from local space to world space.

InverseTransformDirection → Vector3

Parameters: direction [ Vector3 ]

Transforms a direction from world space to local space.

TransformDirection → Vector3

Parameters: direction [ Vector3 ]

Transforms a direction from local space to world space.

InverseTransformVector → Vector3

Parameters: vector [ Vector3 ]

Transforms a vector from world space to local space.

InverseTransformPosition → Vector3

Parameters: position [ Vector3 ]

Transforms a position from world space to local space.

GetBounds → Bounds

Parameters: ``

Gets the bounding box of the object.