An object containing the position of an object relative to a LocationAsset.

interface Anchor {
    location: LocationAsset;
    position: vec3;
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
}

Hierarchy (view full)

Properties

location: LocationAsset

The LocationAsset which this anchor is relative to.

position: vec3

The position of this anchor relative to the LocationAsset.

Methods

  • 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