Provides basic information about a transformation. See also: DeviceTracking

interface BasicTransform {
    getInvertedMatrix(): mat4;
    getMatrix(): mat4;
    getPosition(): vec3;
    getRotation(): quat;
    getScale(): vec3;
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
}

Hierarchy (view full)

Methods

  • Returns the inverted world matrix of the BasicTransform.

    Returns mat4

  • Returns the world matrix of the BasicTransform.

    Returns mat4

  • Returns the world position of the BasicTransform.

    Returns vec3

  • Returns the world rotation of the BasicTransform.

    Returns quat

  • Returns the world scale of the BasicTransform.

    Returns vec3

  • Returns true if the object matches or derives from the passed in type.

    Parameters

    • type: string

    Returns boolean

  • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

    Parameters

    Returns boolean