|
@@ -36186,6 +36186,8 @@ declare module "babylonjs/scene" {
|
|
cameraToUseForPointers: Nullable<Camera>;
|
|
cameraToUseForPointers: Nullable<Camera>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
readonly _isScene: boolean;
|
|
readonly _isScene: boolean;
|
|
|
|
+ /** @hidden */
|
|
|
|
+ _blockEntityCollection: boolean;
|
|
/**
|
|
/**
|
|
* Gets or sets a boolean that indicates if the scene must clear the render buffer before rendering a frame
|
|
* Gets or sets a boolean that indicates if the scene must clear the render buffer before rendering a frame
|
|
*/
|
|
*/
|
|
@@ -72770,8 +72772,10 @@ declare module "babylonjs/XR/features/WebXRBackgroundRemover" {
|
|
declare module "babylonjs/XR/features/WebXRControllerPhysics" {
|
|
declare module "babylonjs/XR/features/WebXRControllerPhysics" {
|
|
import { WebXRAbstractFeature } from "babylonjs/XR/features/WebXRAbstractFeature";
|
|
import { WebXRAbstractFeature } from "babylonjs/XR/features/WebXRAbstractFeature";
|
|
import { WebXRInputSource } from "babylonjs/XR/webXRInputSource";
|
|
import { WebXRInputSource } from "babylonjs/XR/webXRInputSource";
|
|
|
|
+ import { PhysicsImpostor } from "babylonjs/Physics/physicsImpostor";
|
|
import { WebXRInput } from "babylonjs/XR/webXRInput";
|
|
import { WebXRInput } from "babylonjs/XR/webXRInput";
|
|
import { WebXRSessionManager } from "babylonjs/XR/webXRSessionManager";
|
|
import { WebXRSessionManager } from "babylonjs/XR/webXRSessionManager";
|
|
|
|
+ import { Nullable } from "babylonjs/types";
|
|
/**
|
|
/**
|
|
* Options for the controller physics feature
|
|
* Options for the controller physics feature
|
|
*/
|
|
*/
|
|
@@ -72810,6 +72814,35 @@ declare module "babylonjs/XR/features/WebXRControllerPhysics" {
|
|
*/
|
|
*/
|
|
restitution?: number;
|
|
restitution?: number;
|
|
};
|
|
};
|
|
|
|
+ /**
|
|
|
|
+ * Should the headset get its own impostor
|
|
|
|
+ */
|
|
|
|
+ enableHeadsetImpostor?: boolean;
|
|
|
|
+ /**
|
|
|
|
+ * Optional parameters for the headset impostor
|
|
|
|
+ */
|
|
|
|
+ headsetImpostorParams?: {
|
|
|
|
+ /**
|
|
|
|
+ * The type of impostor to create. Default is sphere
|
|
|
|
+ */
|
|
|
|
+ impostorType: number;
|
|
|
|
+ /**
|
|
|
|
+ * the size of the impostor. Defaults to 10cm
|
|
|
|
+ */
|
|
|
|
+ impostorSize?: number | {
|
|
|
|
+ width: number;
|
|
|
|
+ height: number;
|
|
|
|
+ depth: number;
|
|
|
|
+ };
|
|
|
|
+ /**
|
|
|
|
+ * Friction definitions
|
|
|
|
+ */
|
|
|
|
+ friction?: number;
|
|
|
|
+ /**
|
|
|
|
+ * Restitution
|
|
|
|
+ */
|
|
|
|
+ restitution?: number;
|
|
|
|
+ };
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* Add physics impostor to your webxr controllers,
|
|
* Add physics impostor to your webxr controllers,
|
|
@@ -72830,6 +72863,8 @@ declare module "babylonjs/XR/features/WebXRControllerPhysics" {
|
|
private _lastTimestamp;
|
|
private _lastTimestamp;
|
|
private _delta;
|
|
private _delta;
|
|
private _controllers;
|
|
private _controllers;
|
|
|
|
+ private _headsetImpostor?;
|
|
|
|
+ private _headsetMesh?;
|
|
private _tmpVector;
|
|
private _tmpVector;
|
|
private _tmpQuaternion;
|
|
private _tmpQuaternion;
|
|
/**
|
|
/**
|
|
@@ -72853,6 +72888,18 @@ declare module "babylonjs/XR/features/WebXRControllerPhysics" {
|
|
restitution?: number;
|
|
restitution?: number;
|
|
}): void;
|
|
}): void;
|
|
/**
|
|
/**
|
|
|
|
+ * Get the physics impostor of a specific controller.
|
|
|
|
+ * The impostor is not attached to a mesh because a mesh for each controller is not obligatory
|
|
|
|
+ * @param controller the controller or the controller id of which to get the impostor
|
|
|
|
+ * @returns the impostor or null
|
|
|
|
+ */
|
|
|
|
+ getImpostorForController(controller: WebXRInputSource | string): Nullable<PhysicsImpostor>;
|
|
|
|
+ /**
|
|
|
|
+ * Get the headset impostor, if enabled
|
|
|
|
+ * @returns the impostor
|
|
|
|
+ */
|
|
|
|
+ getHeadsetImpostor(): PhysicsImpostor | undefined;
|
|
|
|
+ /**
|
|
* attach this feature
|
|
* attach this feature
|
|
* Will usually be called by the features manager
|
|
* Will usually be called by the features manager
|
|
*
|
|
*
|
|
@@ -108328,6 +108375,8 @@ declare module BABYLON {
|
|
cameraToUseForPointers: Nullable<Camera>;
|
|
cameraToUseForPointers: Nullable<Camera>;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
readonly _isScene: boolean;
|
|
readonly _isScene: boolean;
|
|
|
|
+ /** @hidden */
|
|
|
|
+ _blockEntityCollection: boolean;
|
|
/**
|
|
/**
|
|
* Gets or sets a boolean that indicates if the scene must clear the render buffer before rendering a frame
|
|
* Gets or sets a boolean that indicates if the scene must clear the render buffer before rendering a frame
|
|
*/
|
|
*/
|
|
@@ -142296,6 +142345,35 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
restitution?: number;
|
|
restitution?: number;
|
|
};
|
|
};
|
|
|
|
+ /**
|
|
|
|
+ * Should the headset get its own impostor
|
|
|
|
+ */
|
|
|
|
+ enableHeadsetImpostor?: boolean;
|
|
|
|
+ /**
|
|
|
|
+ * Optional parameters for the headset impostor
|
|
|
|
+ */
|
|
|
|
+ headsetImpostorParams?: {
|
|
|
|
+ /**
|
|
|
|
+ * The type of impostor to create. Default is sphere
|
|
|
|
+ */
|
|
|
|
+ impostorType: number;
|
|
|
|
+ /**
|
|
|
|
+ * the size of the impostor. Defaults to 10cm
|
|
|
|
+ */
|
|
|
|
+ impostorSize?: number | {
|
|
|
|
+ width: number;
|
|
|
|
+ height: number;
|
|
|
|
+ depth: number;
|
|
|
|
+ };
|
|
|
|
+ /**
|
|
|
|
+ * Friction definitions
|
|
|
|
+ */
|
|
|
|
+ friction?: number;
|
|
|
|
+ /**
|
|
|
|
+ * Restitution
|
|
|
|
+ */
|
|
|
|
+ restitution?: number;
|
|
|
|
+ };
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* Add physics impostor to your webxr controllers,
|
|
* Add physics impostor to your webxr controllers,
|
|
@@ -142316,6 +142394,8 @@ declare module BABYLON {
|
|
private _lastTimestamp;
|
|
private _lastTimestamp;
|
|
private _delta;
|
|
private _delta;
|
|
private _controllers;
|
|
private _controllers;
|
|
|
|
+ private _headsetImpostor?;
|
|
|
|
+ private _headsetMesh?;
|
|
private _tmpVector;
|
|
private _tmpVector;
|
|
private _tmpQuaternion;
|
|
private _tmpQuaternion;
|
|
/**
|
|
/**
|
|
@@ -142339,6 +142419,18 @@ declare module BABYLON {
|
|
restitution?: number;
|
|
restitution?: number;
|
|
}): void;
|
|
}): void;
|
|
/**
|
|
/**
|
|
|
|
+ * Get the physics impostor of a specific controller.
|
|
|
|
+ * The impostor is not attached to a mesh because a mesh for each controller is not obligatory
|
|
|
|
+ * @param controller the controller or the controller id of which to get the impostor
|
|
|
|
+ * @returns the impostor or null
|
|
|
|
+ */
|
|
|
|
+ getImpostorForController(controller: WebXRInputSource | string): Nullable<PhysicsImpostor>;
|
|
|
|
+ /**
|
|
|
|
+ * Get the headset impostor, if enabled
|
|
|
|
+ * @returns the impostor
|
|
|
|
+ */
|
|
|
|
+ getHeadsetImpostor(): PhysicsImpostor | undefined;
|
|
|
|
+ /**
|
|
* attach this feature
|
|
* attach this feature
|
|
* Will usually be called by the features manager
|
|
* Will usually be called by the features manager
|
|
*
|
|
*
|