A component which modifies the Transform of the object it is on to a position in the real world, based on a LocationAsset and a position.

interface LocatedAtComponent {
    distanceToLocation: number;
    enabled: boolean;
    location: LocationAsset;
    onCannotTrack: event0<void>;
    onCanTrack: event0<void>;
    onError: event0<void>;
    onFound: event0<void>;
    onLost: event0<void>;
    onReady: event0<void>;
    position: vec3;
    proximityStatus: LocationProximityStatus;
    sceneObject: SceneObject;
    uniqueIdentifier: string;
    destroy(): void;
    getSceneObject(): SceneObject;
    getTransform(): Transform;
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
}

Hierarchy (view full)

Properties

distanceToLocation: number
enabled: boolean

If disabled, the Component will stop enacting its behavior.

location: LocationAsset

The LocationAsset which contains the position this object should be anchored to.

onCannotTrack: event0<void>
onCanTrack: event0<void>
onError: event0<void>
onFound: event0<void>
onLost: event0<void>
onReady: event0<void>
position: vec3

The geo anchored position within a LocationAsset that this object should be anchored to.

proximityStatus: LocationProximityStatus
sceneObject: SceneObject
uniqueIdentifier: string

Methods

  • Destroys the component.

    Returns void

  • Returns the name of this object's type.

    Returns string

  • 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