The WebXRInputManager class is responsible for managing input devices in a WebXR environment.

WebXRInputManager 类用来在 WebXR 环境中管理输入设备。

构造函数

方法

  • 参数

    • meshSprite: Sprite3D

      The rendering sprite to bind.

    • handness: string

      The handness of the device, "left" or "right".

    返回 void

    Binds a rendering node to the input device.

    将渲染节点绑定到输入设备。

  • 参数

    • lineSprite: PixelLineSprite3D

      The line sprite to bind as a ray.

    • handness: string

      The handness of the device, "left" or "right".

    返回 void

    Binds a ray to the input device for visual representation.

    为输入设备绑定射线以进行可视化表示。