|
@@ -44033,10 +44033,10 @@ declare module "babylonjs/Cameras/XR/webXRSessionManager" {
|
|
initializeSessionAsync(xrSessionMode?: XRSessionMode, xrSessionInit?: XRSessionInit): Promise<XRSession>;
|
|
initializeSessionAsync(xrSessionMode?: XRSessionMode, xrSessionInit?: XRSessionInit): Promise<XRSession>;
|
|
/**
|
|
/**
|
|
* Sets the reference space on the xr session
|
|
* Sets the reference space on the xr session
|
|
- * @param referenceSpace space to set
|
|
|
|
|
|
+ * @param referenceSpaceType space to set
|
|
* @returns a promise that will resolve once the reference space has been set
|
|
* @returns a promise that will resolve once the reference space has been set
|
|
*/
|
|
*/
|
|
- setReferenceSpaceAsync(referenceSpace?: XRReferenceSpaceType): Promise<XRReferenceSpace>;
|
|
|
|
|
|
+ setReferenceSpaceTypeAsync(referenceSpaceType?: XRReferenceSpaceType): Promise<XRReferenceSpace>;
|
|
/**
|
|
/**
|
|
* Resets the reference space to the one started the session
|
|
* Resets the reference space to the one started the session
|
|
*/
|
|
*/
|
|
@@ -44106,10 +44106,6 @@ declare module "babylonjs/Cameras/XR/webXRCamera" {
|
|
*/
|
|
*/
|
|
export class WebXRCamera extends FreeCamera {
|
|
export class WebXRCamera extends FreeCamera {
|
|
private _xrSessionManager;
|
|
private _xrSessionManager;
|
|
- /**
|
|
|
|
- * Is the camera in debug mode. Used when using an emulator
|
|
|
|
- */
|
|
|
|
- debugMode: boolean;
|
|
|
|
private _firstFrame;
|
|
private _firstFrame;
|
|
private _referencedPosition;
|
|
private _referencedPosition;
|
|
private _referenceQuaternion;
|
|
private _referenceQuaternion;
|
|
@@ -44127,7 +44123,7 @@ declare module "babylonjs/Cameras/XR/webXRCamera" {
|
|
* @param otherCamera the non-vr camera to copy the transformation from
|
|
* @param otherCamera the non-vr camera to copy the transformation from
|
|
* @param resetToBaseReferenceSpace should XR reset to the base reference space
|
|
* @param resetToBaseReferenceSpace should XR reset to the base reference space
|
|
*/
|
|
*/
|
|
- setTransformationFromNonVRCamera(otherCamera: Camera, resetToBaseReferenceSpace?: boolean): void;
|
|
|
|
|
|
+ setTransformationFromNonVRCamera(otherCamera?: Camera, resetToBaseReferenceSpace?: boolean): void;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_updateForDualEyeDebugging(): void;
|
|
_updateForDualEyeDebugging(): void;
|
|
private _updateReferenceSpace;
|
|
private _updateReferenceSpace;
|
|
@@ -44147,12 +44143,17 @@ declare module "babylonjs/Cameras/XR/webXRFeaturesManager" {
|
|
*/
|
|
*/
|
|
attached: boolean;
|
|
attached: boolean;
|
|
/**
|
|
/**
|
|
|
|
+ * Should auto-attach be disabled?
|
|
|
|
+ */
|
|
|
|
+ disableAutoAttach: boolean;
|
|
|
|
+ /**
|
|
* Attach the feature to the session
|
|
* Attach the feature to the session
|
|
* Will usually be called by the features manager
|
|
* Will usually be called by the features manager
|
|
*
|
|
*
|
|
|
|
+ * @param force should attachment be forced (even when already attached)
|
|
* @returns true if successful.
|
|
* @returns true if successful.
|
|
*/
|
|
*/
|
|
- attach(): boolean;
|
|
|
|
|
|
+ attach(force?: boolean): boolean;
|
|
/**
|
|
/**
|
|
* Detach the feature from the session
|
|
* Detach the feature from the session
|
|
* Will usually be called by the features manager
|
|
* Will usually be called by the features manager
|
|
@@ -44162,6 +44163,35 @@ declare module "babylonjs/Cameras/XR/webXRFeaturesManager" {
|
|
detach(): boolean;
|
|
detach(): boolean;
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
|
|
+ * A list of the currently available features without referencing them
|
|
|
|
+ */
|
|
|
|
+ export class WebXRFeatureName {
|
|
|
|
+ /**
|
|
|
|
+ * The name of the hit test feature
|
|
|
|
+ */
|
|
|
|
+ static HIT_TEST: string;
|
|
|
|
+ /**
|
|
|
|
+ * The name of the anchor system feature
|
|
|
|
+ */
|
|
|
|
+ static ANCHOR_SYSTEM: string;
|
|
|
|
+ /**
|
|
|
|
+ * The name of the background remover feature
|
|
|
|
+ */
|
|
|
|
+ static BACKGROUND_REMOVER: string;
|
|
|
|
+ /**
|
|
|
|
+ * The name of the pointer selection feature
|
|
|
|
+ */
|
|
|
|
+ static POINTER_SELECTION: string;
|
|
|
|
+ /**
|
|
|
|
+ * The name of the teleportation feature
|
|
|
|
+ */
|
|
|
|
+ static TELEPORTATION: string;
|
|
|
|
+ /**
|
|
|
|
+ * The name of the plane detection feature
|
|
|
|
+ */
|
|
|
|
+ static PLANE_DETECTION: string;
|
|
|
|
+ }
|
|
|
|
+ /**
|
|
* Defining the constructor of a feature. Used to register the modules.
|
|
* Defining the constructor of a feature. Used to register the modules.
|
|
*/
|
|
*/
|
|
export type WebXRFeatureConstructor = (xrSessionManager: WebXRSessionManager, options?: any) => (() => IWebXRFeature);
|
|
export type WebXRFeatureConstructor = (xrSessionManager: WebXRSessionManager, options?: any) => (() => IWebXRFeature);
|
|
@@ -45494,11 +45524,16 @@ declare module "babylonjs/Cameras/XR/features/WebXRAbstractFeature" {
|
|
*/
|
|
*/
|
|
get attached(): boolean;
|
|
get attached(): boolean;
|
|
/**
|
|
/**
|
|
|
|
+ * Should auto-attach be disabled?
|
|
|
|
+ */
|
|
|
|
+ disableAutoAttach: boolean;
|
|
|
|
+ /**
|
|
* attach this feature
|
|
* attach this feature
|
|
*
|
|
*
|
|
|
|
+ * @param force should attachment be forced (even when already attached)
|
|
* @returns true if successful, false is failed or already attached
|
|
* @returns true if successful, false is failed or already attached
|
|
*/
|
|
*/
|
|
- attach(): boolean;
|
|
|
|
|
|
+ attach(force?: boolean): boolean;
|
|
/**
|
|
/**
|
|
* detach this feature.
|
|
* detach this feature.
|
|
*
|
|
*
|
|
@@ -45514,7 +45549,7 @@ declare module "babylonjs/Cameras/XR/features/WebXRAbstractFeature" {
|
|
* This function will not execute after the feature is detached.
|
|
* This function will not execute after the feature is detached.
|
|
* @param _xrFrame the current frame
|
|
* @param _xrFrame the current frame
|
|
*/
|
|
*/
|
|
- protected _onXRFrame(_xrFrame: XRFrame): void;
|
|
|
|
|
|
+ protected abstract _onXRFrame(_xrFrame: XRFrame): void;
|
|
/**
|
|
/**
|
|
* This is used to register callbacks that will automatically be removed when detach is called.
|
|
* This is used to register callbacks that will automatically be removed when detach is called.
|
|
* @param observable the observable to which the observer will be attached
|
|
* @param observable the observable to which the observer will be attached
|
|
@@ -45524,7 +45559,6 @@ declare module "babylonjs/Cameras/XR/features/WebXRAbstractFeature" {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module "babylonjs/Cameras/XR/features/WebXRControllerPointerSelection" {
|
|
declare module "babylonjs/Cameras/XR/features/WebXRControllerPointerSelection" {
|
|
- import { IWebXRFeature } from "babylonjs/Cameras/XR/webXRFeaturesManager";
|
|
|
|
import { WebXRSessionManager } from "babylonjs/Cameras/XR/webXRSessionManager";
|
|
import { WebXRSessionManager } from "babylonjs/Cameras/XR/webXRSessionManager";
|
|
import { WebXRInput } from "babylonjs/Cameras/XR/webXRInput";
|
|
import { WebXRInput } from "babylonjs/Cameras/XR/webXRInput";
|
|
import { WebXRController } from "babylonjs/Cameras/XR/webXRController";
|
|
import { WebXRController } from "babylonjs/Cameras/XR/webXRController";
|
|
@@ -45570,12 +45604,12 @@ declare module "babylonjs/Cameras/XR/features/WebXRControllerPointerSelection" {
|
|
/**
|
|
/**
|
|
* A module that will enable pointer selection for motion controllers of XR Input Sources
|
|
* A module that will enable pointer selection for motion controllers of XR Input Sources
|
|
*/
|
|
*/
|
|
- export class WebXRControllerPointerSelection extends WebXRAbstractFeature implements IWebXRFeature {
|
|
|
|
|
|
+ export class WebXRControllerPointerSelection extends WebXRAbstractFeature {
|
|
private readonly _options;
|
|
private readonly _options;
|
|
/**
|
|
/**
|
|
* The module's name
|
|
* The module's name
|
|
*/
|
|
*/
|
|
- static readonly Name: string;
|
|
|
|
|
|
+ static readonly Name: string;
|
|
/**
|
|
/**
|
|
* The (Babylon) version of this module.
|
|
* The (Babylon) version of this module.
|
|
* This is an integer representing the implementation version.
|
|
* This is an integer representing the implementation version.
|
|
@@ -45906,12 +45940,12 @@ declare module "babylonjs/Cameras/XR/features/WebXRControllerTeleportation" {
|
|
* When enabled and attached, the feature will allow a user to move aroundand rotate in the scene using
|
|
* When enabled and attached, the feature will allow a user to move aroundand rotate in the scene using
|
|
* the input of the attached controllers.
|
|
* the input of the attached controllers.
|
|
*/
|
|
*/
|
|
- export class WebXRMotionControllerTeleportation extends WebXRAbstractFeature implements IWebXRFeature {
|
|
|
|
|
|
+ export class WebXRMotionControllerTeleportation extends WebXRAbstractFeature {
|
|
private _options;
|
|
private _options;
|
|
/**
|
|
/**
|
|
* The module's name
|
|
* The module's name
|
|
*/
|
|
*/
|
|
- static readonly Name: string;
|
|
|
|
|
|
+ static readonly Name: string;
|
|
/**
|
|
/**
|
|
* The (Babylon) version of this module.
|
|
* The (Babylon) version of this module.
|
|
* This is an integer representing the implementation version.
|
|
* This is an integer representing the implementation version.
|
|
@@ -46527,7 +46561,6 @@ declare module "babylonjs/Cameras/VR/index" {
|
|
export * from "babylonjs/Cameras/VR/webVRCamera";
|
|
export * from "babylonjs/Cameras/VR/webVRCamera";
|
|
}
|
|
}
|
|
declare module "babylonjs/Cameras/XR/features/WebXRHitTestLegacy" {
|
|
declare module "babylonjs/Cameras/XR/features/WebXRHitTestLegacy" {
|
|
- import { IWebXRFeature } from "babylonjs/Cameras/XR/webXRFeaturesManager";
|
|
|
|
import { WebXRSessionManager } from "babylonjs/Cameras/XR/webXRSessionManager";
|
|
import { WebXRSessionManager } from "babylonjs/Cameras/XR/webXRSessionManager";
|
|
import { Observable } from "babylonjs/Misc/observable";
|
|
import { Observable } from "babylonjs/Misc/observable";
|
|
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
@@ -46564,7 +46597,7 @@ declare module "babylonjs/Cameras/XR/features/WebXRHitTestLegacy" {
|
|
* Hit test (or raycasting) is used to interact with the real world.
|
|
* Hit test (or raycasting) is used to interact with the real world.
|
|
* For further information read here - https://github.com/immersive-web/hit-test
|
|
* For further information read here - https://github.com/immersive-web/hit-test
|
|
*/
|
|
*/
|
|
- export class WebXRHitTestLegacy extends WebXRAbstractFeature implements IWebXRFeature {
|
|
|
|
|
|
+ export class WebXRHitTestLegacy extends WebXRAbstractFeature {
|
|
/**
|
|
/**
|
|
* options to use when constructing this feature
|
|
* options to use when constructing this feature
|
|
*/
|
|
*/
|
|
@@ -46572,7 +46605,7 @@ declare module "babylonjs/Cameras/XR/features/WebXRHitTestLegacy" {
|
|
/**
|
|
/**
|
|
* The module's name
|
|
* The module's name
|
|
*/
|
|
*/
|
|
- static readonly Name: string;
|
|
|
|
|
|
+ static readonly Name: string;
|
|
/**
|
|
/**
|
|
* The (Babylon) version of this module.
|
|
* The (Babylon) version of this module.
|
|
* This is an integer representing the implementation version.
|
|
* This is an integer representing the implementation version.
|
|
@@ -46642,7 +46675,6 @@ declare module "babylonjs/Cameras/XR/features/WebXRHitTestLegacy" {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module "babylonjs/Cameras/XR/features/WebXRPlaneDetector" {
|
|
declare module "babylonjs/Cameras/XR/features/WebXRPlaneDetector" {
|
|
- import { IWebXRFeature } from "babylonjs/Cameras/XR/webXRFeaturesManager";
|
|
|
|
import { TransformNode } from "babylonjs/Meshes/transformNode";
|
|
import { TransformNode } from "babylonjs/Meshes/transformNode";
|
|
import { WebXRSessionManager } from "babylonjs/Cameras/XR/webXRSessionManager";
|
|
import { WebXRSessionManager } from "babylonjs/Cameras/XR/webXRSessionManager";
|
|
import { Observable } from "babylonjs/Misc/observable";
|
|
import { Observable } from "babylonjs/Misc/observable";
|
|
@@ -46684,12 +46716,12 @@ declare module "babylonjs/Cameras/XR/features/WebXRPlaneDetector" {
|
|
* The plane detector is used to detect planes in the real world when in AR
|
|
* The plane detector is used to detect planes in the real world when in AR
|
|
* For more information see https://github.com/immersive-web/real-world-geometry/
|
|
* For more information see https://github.com/immersive-web/real-world-geometry/
|
|
*/
|
|
*/
|
|
- export class WebXRPlaneDetector extends WebXRAbstractFeature implements IWebXRFeature {
|
|
|
|
|
|
+ export class WebXRPlaneDetector extends WebXRAbstractFeature {
|
|
private _options;
|
|
private _options;
|
|
/**
|
|
/**
|
|
* The module's name
|
|
* The module's name
|
|
*/
|
|
*/
|
|
- static readonly Name: string;
|
|
|
|
|
|
+ static readonly Name: string;
|
|
/**
|
|
/**
|
|
* The (Babylon) version of this module.
|
|
* The (Babylon) version of this module.
|
|
* This is an integer representing the implementation version.
|
|
* This is an integer representing the implementation version.
|
|
@@ -46732,7 +46764,6 @@ declare module "babylonjs/Cameras/XR/features/WebXRPlaneDetector" {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module "babylonjs/Cameras/XR/features/WebXRAnchorSystem" {
|
|
declare module "babylonjs/Cameras/XR/features/WebXRAnchorSystem" {
|
|
- import { IWebXRFeature } from "babylonjs/Cameras/XR/webXRFeaturesManager";
|
|
|
|
import { WebXRSessionManager } from "babylonjs/Cameras/XR/webXRSessionManager";
|
|
import { WebXRSessionManager } from "babylonjs/Cameras/XR/webXRSessionManager";
|
|
import { Observable } from "babylonjs/Misc/observable";
|
|
import { Observable } from "babylonjs/Misc/observable";
|
|
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
@@ -46781,12 +46812,12 @@ declare module "babylonjs/Cameras/XR/features/WebXRAnchorSystem" {
|
|
* will use the frame to create an anchor and not the session or a detected plane
|
|
* will use the frame to create an anchor and not the session or a detected plane
|
|
* For further information see https://github.com/immersive-web/anchors/
|
|
* For further information see https://github.com/immersive-web/anchors/
|
|
*/
|
|
*/
|
|
- export class WebXRAnchorSystem extends WebXRAbstractFeature implements IWebXRFeature {
|
|
|
|
|
|
+ export class WebXRAnchorSystem extends WebXRAbstractFeature {
|
|
private _options;
|
|
private _options;
|
|
/**
|
|
/**
|
|
* The module's name
|
|
* The module's name
|
|
*/
|
|
*/
|
|
- static readonly Name: string;
|
|
|
|
|
|
+ static readonly Name: string;
|
|
/**
|
|
/**
|
|
* The (Babylon) version of this module.
|
|
* The (Babylon) version of this module.
|
|
* This is an integer representing the implementation version.
|
|
* This is an integer representing the implementation version.
|
|
@@ -46865,7 +46896,6 @@ declare module "babylonjs/Cameras/XR/features/WebXRAnchorSystem" {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module "babylonjs/Cameras/XR/features/WebXRBackgroundRemover" {
|
|
declare module "babylonjs/Cameras/XR/features/WebXRBackgroundRemover" {
|
|
- import { IWebXRFeature } from "babylonjs/Cameras/XR/webXRFeaturesManager";
|
|
|
|
import { WebXRSessionManager } from "babylonjs/Cameras/XR/webXRSessionManager";
|
|
import { WebXRSessionManager } from "babylonjs/Cameras/XR/webXRSessionManager";
|
|
import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
import { Observable } from "babylonjs/Misc/observable";
|
|
import { Observable } from "babylonjs/Misc/observable";
|
|
@@ -46900,7 +46930,7 @@ declare module "babylonjs/Cameras/XR/features/WebXRBackgroundRemover" {
|
|
/**
|
|
/**
|
|
* A module that will automatically disable background meshes when entering AR and will enable them when leaving AR.
|
|
* A module that will automatically disable background meshes when entering AR and will enable them when leaving AR.
|
|
*/
|
|
*/
|
|
- export class WebXRBackgroundRemover extends WebXRAbstractFeature implements IWebXRFeature {
|
|
|
|
|
|
+ export class WebXRBackgroundRemover extends WebXRAbstractFeature {
|
|
/**
|
|
/**
|
|
* read-only options to be used in this module
|
|
* read-only options to be used in this module
|
|
*/
|
|
*/
|
|
@@ -46908,7 +46938,7 @@ declare module "babylonjs/Cameras/XR/features/WebXRBackgroundRemover" {
|
|
/**
|
|
/**
|
|
* The module's name
|
|
* The module's name
|
|
*/
|
|
*/
|
|
- static readonly Name: string;
|
|
|
|
|
|
+ static readonly Name: string;
|
|
/**
|
|
/**
|
|
* The (Babylon) version of this module.
|
|
* The (Babylon) version of this module.
|
|
* This is an integer representing the implementation version.
|
|
* This is an integer representing the implementation version.
|
|
@@ -46948,6 +46978,7 @@ declare module "babylonjs/Cameras/XR/features/WebXRBackgroundRemover" {
|
|
* Dispose this feature and all of the resources attached
|
|
* Dispose this feature and all of the resources attached
|
|
*/
|
|
*/
|
|
dispose(): void;
|
|
dispose(): void;
|
|
|
|
+ protected _onXRFrame(_xrFrame: XRFrame): void;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module "babylonjs/Cameras/XR/features/index" {
|
|
declare module "babylonjs/Cameras/XR/features/index" {
|
|
@@ -115018,10 +115049,10 @@ declare module BABYLON {
|
|
initializeSessionAsync(xrSessionMode?: XRSessionMode, xrSessionInit?: XRSessionInit): Promise<XRSession>;
|
|
initializeSessionAsync(xrSessionMode?: XRSessionMode, xrSessionInit?: XRSessionInit): Promise<XRSession>;
|
|
/**
|
|
/**
|
|
* Sets the reference space on the xr session
|
|
* Sets the reference space on the xr session
|
|
- * @param referenceSpace space to set
|
|
|
|
|
|
+ * @param referenceSpaceType space to set
|
|
* @returns a promise that will resolve once the reference space has been set
|
|
* @returns a promise that will resolve once the reference space has been set
|
|
*/
|
|
*/
|
|
- setReferenceSpaceAsync(referenceSpace?: XRReferenceSpaceType): Promise<XRReferenceSpace>;
|
|
|
|
|
|
+ setReferenceSpaceTypeAsync(referenceSpaceType?: XRReferenceSpaceType): Promise<XRReferenceSpace>;
|
|
/**
|
|
/**
|
|
* Resets the reference space to the one started the session
|
|
* Resets the reference space to the one started the session
|
|
*/
|
|
*/
|
|
@@ -115087,10 +115118,6 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
export class WebXRCamera extends FreeCamera {
|
|
export class WebXRCamera extends FreeCamera {
|
|
private _xrSessionManager;
|
|
private _xrSessionManager;
|
|
- /**
|
|
|
|
- * Is the camera in debug mode. Used when using an emulator
|
|
|
|
- */
|
|
|
|
- debugMode: boolean;
|
|
|
|
private _firstFrame;
|
|
private _firstFrame;
|
|
private _referencedPosition;
|
|
private _referencedPosition;
|
|
private _referenceQuaternion;
|
|
private _referenceQuaternion;
|
|
@@ -115108,7 +115135,7 @@ declare module BABYLON {
|
|
* @param otherCamera the non-vr camera to copy the transformation from
|
|
* @param otherCamera the non-vr camera to copy the transformation from
|
|
* @param resetToBaseReferenceSpace should XR reset to the base reference space
|
|
* @param resetToBaseReferenceSpace should XR reset to the base reference space
|
|
*/
|
|
*/
|
|
- setTransformationFromNonVRCamera(otherCamera: Camera, resetToBaseReferenceSpace?: boolean): void;
|
|
|
|
|
|
+ setTransformationFromNonVRCamera(otherCamera?: Camera, resetToBaseReferenceSpace?: boolean): void;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_updateForDualEyeDebugging(): void;
|
|
_updateForDualEyeDebugging(): void;
|
|
private _updateReferenceSpace;
|
|
private _updateReferenceSpace;
|
|
@@ -115126,12 +115153,17 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
attached: boolean;
|
|
attached: boolean;
|
|
/**
|
|
/**
|
|
|
|
+ * Should auto-attach be disabled?
|
|
|
|
+ */
|
|
|
|
+ disableAutoAttach: boolean;
|
|
|
|
+ /**
|
|
* Attach the feature to the session
|
|
* Attach the feature to the session
|
|
* Will usually be called by the features manager
|
|
* Will usually be called by the features manager
|
|
*
|
|
*
|
|
|
|
+ * @param force should attachment be forced (even when already attached)
|
|
* @returns true if successful.
|
|
* @returns true if successful.
|
|
*/
|
|
*/
|
|
- attach(): boolean;
|
|
|
|
|
|
+ attach(force?: boolean): boolean;
|
|
/**
|
|
/**
|
|
* Detach the feature from the session
|
|
* Detach the feature from the session
|
|
* Will usually be called by the features manager
|
|
* Will usually be called by the features manager
|
|
@@ -115141,6 +115173,35 @@ declare module BABYLON {
|
|
detach(): boolean;
|
|
detach(): boolean;
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
|
|
+ * A list of the currently available features without referencing them
|
|
|
|
+ */
|
|
|
|
+ export class WebXRFeatureName {
|
|
|
|
+ /**
|
|
|
|
+ * The name of the hit test feature
|
|
|
|
+ */
|
|
|
|
+ static HIT_TEST: string;
|
|
|
|
+ /**
|
|
|
|
+ * The name of the anchor system feature
|
|
|
|
+ */
|
|
|
|
+ static ANCHOR_SYSTEM: string;
|
|
|
|
+ /**
|
|
|
|
+ * The name of the background remover feature
|
|
|
|
+ */
|
|
|
|
+ static BACKGROUND_REMOVER: string;
|
|
|
|
+ /**
|
|
|
|
+ * The name of the pointer selection feature
|
|
|
|
+ */
|
|
|
|
+ static POINTER_SELECTION: string;
|
|
|
|
+ /**
|
|
|
|
+ * The name of the teleportation feature
|
|
|
|
+ */
|
|
|
|
+ static TELEPORTATION: string;
|
|
|
|
+ /**
|
|
|
|
+ * The name of the plane detection feature
|
|
|
|
+ */
|
|
|
|
+ static PLANE_DETECTION: string;
|
|
|
|
+ }
|
|
|
|
+ /**
|
|
* Defining the constructor of a feature. Used to register the modules.
|
|
* Defining the constructor of a feature. Used to register the modules.
|
|
*/
|
|
*/
|
|
export type WebXRFeatureConstructor = (xrSessionManager: WebXRSessionManager, options?: any) => (() => IWebXRFeature);
|
|
export type WebXRFeatureConstructor = (xrSessionManager: WebXRSessionManager, options?: any) => (() => IWebXRFeature);
|
|
@@ -116430,11 +116491,16 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
get attached(): boolean;
|
|
get attached(): boolean;
|
|
/**
|
|
/**
|
|
|
|
+ * Should auto-attach be disabled?
|
|
|
|
+ */
|
|
|
|
+ disableAutoAttach: boolean;
|
|
|
|
+ /**
|
|
* attach this feature
|
|
* attach this feature
|
|
*
|
|
*
|
|
|
|
+ * @param force should attachment be forced (even when already attached)
|
|
* @returns true if successful, false is failed or already attached
|
|
* @returns true if successful, false is failed or already attached
|
|
*/
|
|
*/
|
|
- attach(): boolean;
|
|
|
|
|
|
+ attach(force?: boolean): boolean;
|
|
/**
|
|
/**
|
|
* detach this feature.
|
|
* detach this feature.
|
|
*
|
|
*
|
|
@@ -116450,7 +116516,7 @@ declare module BABYLON {
|
|
* This function will not execute after the feature is detached.
|
|
* This function will not execute after the feature is detached.
|
|
* @param _xrFrame the current frame
|
|
* @param _xrFrame the current frame
|
|
*/
|
|
*/
|
|
- protected _onXRFrame(_xrFrame: XRFrame): void;
|
|
|
|
|
|
+ protected abstract _onXRFrame(_xrFrame: XRFrame): void;
|
|
/**
|
|
/**
|
|
* This is used to register callbacks that will automatically be removed when detach is called.
|
|
* This is used to register callbacks that will automatically be removed when detach is called.
|
|
* @param observable the observable to which the observer will be attached
|
|
* @param observable the observable to which the observer will be attached
|
|
@@ -116499,12 +116565,12 @@ declare module BABYLON {
|
|
/**
|
|
/**
|
|
* A module that will enable pointer selection for motion controllers of XR Input Sources
|
|
* A module that will enable pointer selection for motion controllers of XR Input Sources
|
|
*/
|
|
*/
|
|
- export class WebXRControllerPointerSelection extends WebXRAbstractFeature implements IWebXRFeature {
|
|
|
|
|
|
+ export class WebXRControllerPointerSelection extends WebXRAbstractFeature {
|
|
private readonly _options;
|
|
private readonly _options;
|
|
/**
|
|
/**
|
|
* The module's name
|
|
* The module's name
|
|
*/
|
|
*/
|
|
- static readonly Name: string;
|
|
|
|
|
|
+ static readonly Name: string;
|
|
/**
|
|
/**
|
|
* The (Babylon) version of this module.
|
|
* The (Babylon) version of this module.
|
|
* This is an integer representing the implementation version.
|
|
* This is an integer representing the implementation version.
|
|
@@ -116819,12 +116885,12 @@ declare module BABYLON {
|
|
* When enabled and attached, the feature will allow a user to move aroundand rotate in the scene using
|
|
* When enabled and attached, the feature will allow a user to move aroundand rotate in the scene using
|
|
* the input of the attached controllers.
|
|
* the input of the attached controllers.
|
|
*/
|
|
*/
|
|
- export class WebXRMotionControllerTeleportation extends WebXRAbstractFeature implements IWebXRFeature {
|
|
|
|
|
|
+ export class WebXRMotionControllerTeleportation extends WebXRAbstractFeature {
|
|
private _options;
|
|
private _options;
|
|
/**
|
|
/**
|
|
* The module's name
|
|
* The module's name
|
|
*/
|
|
*/
|
|
- static readonly Name: string;
|
|
|
|
|
|
+ static readonly Name: string;
|
|
/**
|
|
/**
|
|
* The (Babylon) version of this module.
|
|
* The (Babylon) version of this module.
|
|
* This is an integer representing the implementation version.
|
|
* This is an integer representing the implementation version.
|
|
@@ -117433,7 +117499,7 @@ declare module BABYLON {
|
|
* Hit test (or raycasting) is used to interact with the real world.
|
|
* Hit test (or raycasting) is used to interact with the real world.
|
|
* For further information read here - https://github.com/immersive-web/hit-test
|
|
* For further information read here - https://github.com/immersive-web/hit-test
|
|
*/
|
|
*/
|
|
- export class WebXRHitTestLegacy extends WebXRAbstractFeature implements IWebXRFeature {
|
|
|
|
|
|
+ export class WebXRHitTestLegacy extends WebXRAbstractFeature {
|
|
/**
|
|
/**
|
|
* options to use when constructing this feature
|
|
* options to use when constructing this feature
|
|
*/
|
|
*/
|
|
@@ -117441,7 +117507,7 @@ declare module BABYLON {
|
|
/**
|
|
/**
|
|
* The module's name
|
|
* The module's name
|
|
*/
|
|
*/
|
|
- static readonly Name: string;
|
|
|
|
|
|
+ static readonly Name: string;
|
|
/**
|
|
/**
|
|
* The (Babylon) version of this module.
|
|
* The (Babylon) version of this module.
|
|
* This is an integer representing the implementation version.
|
|
* This is an integer representing the implementation version.
|
|
@@ -117547,12 +117613,12 @@ declare module BABYLON {
|
|
* The plane detector is used to detect planes in the real world when in AR
|
|
* The plane detector is used to detect planes in the real world when in AR
|
|
* For more information see https://github.com/immersive-web/real-world-geometry/
|
|
* For more information see https://github.com/immersive-web/real-world-geometry/
|
|
*/
|
|
*/
|
|
- export class WebXRPlaneDetector extends WebXRAbstractFeature implements IWebXRFeature {
|
|
|
|
|
|
+ export class WebXRPlaneDetector extends WebXRAbstractFeature {
|
|
private _options;
|
|
private _options;
|
|
/**
|
|
/**
|
|
* The module's name
|
|
* The module's name
|
|
*/
|
|
*/
|
|
- static readonly Name: string;
|
|
|
|
|
|
+ static readonly Name: string;
|
|
/**
|
|
/**
|
|
* The (Babylon) version of this module.
|
|
* The (Babylon) version of this module.
|
|
* This is an integer representing the implementation version.
|
|
* This is an integer representing the implementation version.
|
|
@@ -117636,12 +117702,12 @@ declare module BABYLON {
|
|
* will use the frame to create an anchor and not the session or a detected plane
|
|
* will use the frame to create an anchor and not the session or a detected plane
|
|
* For further information see https://github.com/immersive-web/anchors/
|
|
* For further information see https://github.com/immersive-web/anchors/
|
|
*/
|
|
*/
|
|
- export class WebXRAnchorSystem extends WebXRAbstractFeature implements IWebXRFeature {
|
|
|
|
|
|
+ export class WebXRAnchorSystem extends WebXRAbstractFeature {
|
|
private _options;
|
|
private _options;
|
|
/**
|
|
/**
|
|
* The module's name
|
|
* The module's name
|
|
*/
|
|
*/
|
|
- static readonly Name: string;
|
|
|
|
|
|
+ static readonly Name: string;
|
|
/**
|
|
/**
|
|
* The (Babylon) version of this module.
|
|
* The (Babylon) version of this module.
|
|
* This is an integer representing the implementation version.
|
|
* This is an integer representing the implementation version.
|
|
@@ -117750,7 +117816,7 @@ declare module BABYLON {
|
|
/**
|
|
/**
|
|
* A module that will automatically disable background meshes when entering AR and will enable them when leaving AR.
|
|
* A module that will automatically disable background meshes when entering AR and will enable them when leaving AR.
|
|
*/
|
|
*/
|
|
- export class WebXRBackgroundRemover extends WebXRAbstractFeature implements IWebXRFeature {
|
|
|
|
|
|
+ export class WebXRBackgroundRemover extends WebXRAbstractFeature {
|
|
/**
|
|
/**
|
|
* read-only options to be used in this module
|
|
* read-only options to be used in this module
|
|
*/
|
|
*/
|
|
@@ -117758,7 +117824,7 @@ declare module BABYLON {
|
|
/**
|
|
/**
|
|
* The module's name
|
|
* The module's name
|
|
*/
|
|
*/
|
|
- static readonly Name: string;
|
|
|
|
|
|
+ static readonly Name: string;
|
|
/**
|
|
/**
|
|
* The (Babylon) version of this module.
|
|
* The (Babylon) version of this module.
|
|
* This is an integer representing the implementation version.
|
|
* This is an integer representing the implementation version.
|
|
@@ -117798,6 +117864,7 @@ declare module BABYLON {
|
|
* Dispose this feature and all of the resources attached
|
|
* Dispose this feature and all of the resources attached
|
|
*/
|
|
*/
|
|
dispose(): void;
|
|
dispose(): void;
|
|
|
|
+ protected _onXRFrame(_xrFrame: XRFrame): void;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|