Type alias PositionUpdateCallback

PositionUpdateCallback: ((uid: string, x: number, y: number, o: number) => void)

Type declaration

    • (uid: string, x: number, y: number, o: number): void
    • A function to call when a remote source changes their position.

      Parameters

      • uid: string

        The ID of the remote source as set by the call to setupReceiverMetadata for the remote source.

      • x: number

        The x position of the remote source, in meters.

      • y: number

        The y position of the remote source, in meters.

      • o: number

        The orientation of the remote source, in radians.

      Returns void

© 2023 High Fidelity, Inc. | All rights reserved Terms of Service | Privacy Policy