TruWorlds

DynamicInstance

Inherits: VisualInstance

DynamicInstance is an Instance that has a position and rotation in the world, represented by a CMatrix.

Properties

CMatrix CMatrix

The coordinate matrix (CMatrix) representing the DynamicInstance's position and rotation transform in the world, in local space.

Position Vector3

The position of the DynamicInstance. This is a shortcut for setting CMatrix.Position.

Rotation Quaternion

The rotation of the DynamicInstance. This is a shortcut for setting CMatrix.Rotation.

RotationDegrees Vector3

The rotation of the DynamicInstance in Euler angles (degrees). This is a shortcut for setting Rotation using Euler angles.

Functions

GetBoundsBox() Returns BoundsBox

Gets the world-space bounding box of the DynamicInstance.

Returns: The world-space bounding box of the DynamicInstance.

GetWorldCMatrix() Returns CMatrix
SetWorldCMatrix(world: CMatrix)