Description

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

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

Hierarchy (view full)

Properties

location: LocationAsset

Description

The LocationAsset which this anchor is relative to.

position: vec3

Description

The position of this anchor relative to the LocationAsset.

Methods

  • Returns string

    Description

    Returns the name of this object's type.

  • Parameters

    • type: string

    Returns boolean

    Description

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

  • Parameters

    Returns boolean

    Description

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

Generated using TypeDoc