Class SceneObjectTransform

Contains local and world transforms for a SceneObject, as well as various cached data as well as helper functionality.

Hierarchy

  • FrameworkObject
    • SceneObjectTransform

Constructors

Accessors

  • get worldMatrix(): Immutable<Matrix4>
  • Gets the objects world transform matrix.

    Returns Immutable<Matrix4>

    Performance warning: This might involve updating the transforms if the transform is dirty.

  • get worldMatrixInverse(): Immutable<Matrix4>
  • Gets the objects inverse world transform matrix.

    Returns Immutable<Matrix4>

    Performance warning: This might involve updating the transforms if the transform is dirty.

  • get worldScale(): Immutable<Vector3>
  • World scale of the object.

    Setting this will not work properly if this object or any of its parents have non-affine transform matrices.

    Returns Immutable<Vector3>

  • set worldScale(value): void
  • Parameters

    Returns void

Methods

  • Orients the object so it is looking at the provided location (world space) where up is used for determining the location of the object's Y axis.

    Parameters

    Returns void

    The positiveZ determine if the object looks through its positive or negative Z-Axis. For cameras and lights, this should be false, for all other objects it's best to set this to true (Default).

  • Moves the object's position by the vector offset provided along it's own axes (relative to orientation).

    Parameters

    Returns void

  • Moves the object's position by the vector offset provided along world axes.

    Parameters

    Returns void

  • Rotates around X axis

    Parameters

    Returns void

  • Rotates around local Z axis.

    Parameters

    Returns void

  • Rotate the object around an arbitrary axis.

    Parameters

    Returns void

  • Rotates the game object so it's forward axis faces the provided direction.

    Parameters

    Returns void

    Local forward axis is considered to be positive Z.

  • Rotates around Y axis.

    Parameters

    Returns void