UNPKG

@needle-tools/engine

Version:

Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in

23 lines (22 loc) 866 B
/// <reference types="webxr" /> import type { IXRRig } from "../../engine/engine_xr.js"; import { type NeedleXREventArgs } from "../../engine/engine_xr.js"; import { Behaviour } from "../Component.js"; /** * A user in XR (VR or AR) is parented to an XR rig during the session. * When moving through the scene the rig is moved instead of the user. * @category XR * @group Components */ export declare class XRRig extends Behaviour implements IXRRig { priority: number; get isActive(): boolean; /** Sets this rig to be the active XR rig (needs to be called during an active XR session) */ setAsActiveXRRig(): void; awake(): void; isXRRig(): boolean; supportsXR(_mode: XRSessionMode): boolean; private _startScale?; onEnterXR(args: NeedleXREventArgs): void; onLeaveXR(args: NeedleXREventArgs): void; }