|
@@ -12258,6 +12258,7 @@ declare module "babylonjs/Events/pointerEvents" {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module "babylonjs/Cameras/Inputs/freeCameraMouseInput" {
|
|
declare module "babylonjs/Cameras/Inputs/freeCameraMouseInput" {
|
|
|
|
+ import { Observable } from "babylonjs/Misc/observable";
|
|
import { Nullable } from "babylonjs/types";
|
|
import { Nullable } from "babylonjs/types";
|
|
import { ICameraInput } from "babylonjs/Cameras/cameraInputsManager";
|
|
import { ICameraInput } from "babylonjs/Cameras/cameraInputsManager";
|
|
import { FreeCamera } from "babylonjs/Cameras/freeCamera";
|
|
import { FreeCamera } from "babylonjs/Cameras/freeCamera";
|
|
@@ -12287,6 +12288,18 @@ declare module "babylonjs/Cameras/Inputs/freeCameraMouseInput" {
|
|
private _observer;
|
|
private _observer;
|
|
private previousPosition;
|
|
private previousPosition;
|
|
/**
|
|
/**
|
|
|
|
+ * Observable for when a pointer move event occurs containing the move offset
|
|
|
|
+ */
|
|
|
|
+ onPointerMovedObservable: Observable<{
|
|
|
|
+ offsetX: number;
|
|
|
|
+ offsetY: number;
|
|
|
|
+ }>;
|
|
|
|
+ /**
|
|
|
|
+ * @hidden
|
|
|
|
+ * If the camera should be rotated automatically based on pointer movement
|
|
|
|
+ */
|
|
|
|
+ _allowCameraRotation: boolean;
|
|
|
|
+ /**
|
|
* Manage the mouse inputs to control the movement of a free camera.
|
|
* Manage the mouse inputs to control the movement of a free camera.
|
|
* @see http://doc.babylonjs.com/how_to/customizing_camera_inputs
|
|
* @see http://doc.babylonjs.com/how_to/customizing_camera_inputs
|
|
* @param touchEnabled Defines if touch is enabled or not
|
|
* @param touchEnabled Defines if touch is enabled or not
|
|
@@ -38271,6 +38284,7 @@ declare module "babylonjs/Cameras/deviceOrientationCamera" {
|
|
export class DeviceOrientationCamera extends FreeCamera {
|
|
export class DeviceOrientationCamera extends FreeCamera {
|
|
private _initialQuaternion;
|
|
private _initialQuaternion;
|
|
private _quaternionCache;
|
|
private _quaternionCache;
|
|
|
|
+ private _tmpDragQuaternion;
|
|
/**
|
|
/**
|
|
* Creates a new device orientation camera
|
|
* Creates a new device orientation camera
|
|
* @param name The name of the camera
|
|
* @param name The name of the camera
|
|
@@ -38279,6 +38293,16 @@ declare module "babylonjs/Cameras/deviceOrientationCamera" {
|
|
*/
|
|
*/
|
|
constructor(name: string, position: Vector3, scene: Scene);
|
|
constructor(name: string, position: Vector3, scene: Scene);
|
|
/**
|
|
/**
|
|
|
|
+ * Disabled pointer input on first orientation sensor update (Default: true)
|
|
|
|
+ */
|
|
|
|
+ disablePointerInputWhenUsingDeviceOrientation: boolean;
|
|
|
|
+ private _dragFactor;
|
|
|
|
+ /**
|
|
|
|
+ * Enabled turning on the y axis when the orientation sensor is active
|
|
|
|
+ * @param dragFactor the factor that controls the turn speed (default: 1/300)
|
|
|
|
+ */
|
|
|
|
+ enableHorizontalDragging(dragFactor?: number): void;
|
|
|
|
+ /**
|
|
* Gets the current instance class name ("DeviceOrientationCamera").
|
|
* Gets the current instance class name ("DeviceOrientationCamera").
|
|
* This helps avoiding instanceof at run time.
|
|
* This helps avoiding instanceof at run time.
|
|
* @returns the class name
|
|
* @returns the class name
|
|
@@ -57321,7 +57345,7 @@ declare module "babylonjs/Misc/assetsManager" {
|
|
* @param onSuccess is a callback called when the task is successfully executed
|
|
* @param onSuccess is a callback called when the task is successfully executed
|
|
* @param onError is a callback called if an error occurs
|
|
* @param onError is a callback called if an error occurs
|
|
*/
|
|
*/
|
|
- run(scene: Scene, onSuccess: () => void, onError: (message?: string, exception?: any) => void): void;
|
|
|
|
|
|
+ runTask(scene: Scene, onSuccess: () => void, onError: (message?: string, exception?: any) => void): void;
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* This class can be used to easily import assets into a scene
|
|
* This class can be used to easily import assets into a scene
|
|
@@ -71032,6 +71056,18 @@ declare module BABYLON {
|
|
private _observer;
|
|
private _observer;
|
|
private previousPosition;
|
|
private previousPosition;
|
|
/**
|
|
/**
|
|
|
|
+ * Observable for when a pointer move event occurs containing the move offset
|
|
|
|
+ */
|
|
|
|
+ onPointerMovedObservable: Observable<{
|
|
|
|
+ offsetX: number;
|
|
|
|
+ offsetY: number;
|
|
|
|
+ }>;
|
|
|
|
+ /**
|
|
|
|
+ * @hidden
|
|
|
|
+ * If the camera should be rotated automatically based on pointer movement
|
|
|
|
+ */
|
|
|
|
+ _allowCameraRotation: boolean;
|
|
|
|
+ /**
|
|
* Manage the mouse inputs to control the movement of a free camera.
|
|
* Manage the mouse inputs to control the movement of a free camera.
|
|
* @see http://doc.babylonjs.com/how_to/customizing_camera_inputs
|
|
* @see http://doc.babylonjs.com/how_to/customizing_camera_inputs
|
|
* @param touchEnabled Defines if touch is enabled or not
|
|
* @param touchEnabled Defines if touch is enabled or not
|
|
@@ -96168,6 +96204,7 @@ declare module BABYLON {
|
|
export class DeviceOrientationCamera extends FreeCamera {
|
|
export class DeviceOrientationCamera extends FreeCamera {
|
|
private _initialQuaternion;
|
|
private _initialQuaternion;
|
|
private _quaternionCache;
|
|
private _quaternionCache;
|
|
|
|
+ private _tmpDragQuaternion;
|
|
/**
|
|
/**
|
|
* Creates a new device orientation camera
|
|
* Creates a new device orientation camera
|
|
* @param name The name of the camera
|
|
* @param name The name of the camera
|
|
@@ -96176,6 +96213,16 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
constructor(name: string, position: Vector3, scene: Scene);
|
|
constructor(name: string, position: Vector3, scene: Scene);
|
|
/**
|
|
/**
|
|
|
|
+ * Disabled pointer input on first orientation sensor update (Default: true)
|
|
|
|
+ */
|
|
|
|
+ disablePointerInputWhenUsingDeviceOrientation: boolean;
|
|
|
|
+ private _dragFactor;
|
|
|
|
+ /**
|
|
|
|
+ * Enabled turning on the y axis when the orientation sensor is active
|
|
|
|
+ * @param dragFactor the factor that controls the turn speed (default: 1/300)
|
|
|
|
+ */
|
|
|
|
+ enableHorizontalDragging(dragFactor?: number): void;
|
|
|
|
+ /**
|
|
* Gets the current instance class name ("DeviceOrientationCamera").
|
|
* Gets the current instance class name ("DeviceOrientationCamera").
|
|
* This helps avoiding instanceof at run time.
|
|
* This helps avoiding instanceof at run time.
|
|
* @returns the class name
|
|
* @returns the class name
|
|
@@ -113646,7 +113693,7 @@ declare module BABYLON {
|
|
* @param onSuccess is a callback called when the task is successfully executed
|
|
* @param onSuccess is a callback called when the task is successfully executed
|
|
* @param onError is a callback called if an error occurs
|
|
* @param onError is a callback called if an error occurs
|
|
*/
|
|
*/
|
|
- run(scene: Scene, onSuccess: () => void, onError: (message?: string, exception?: any) => void): void;
|
|
|
|
|
|
+ runTask(scene: Scene, onSuccess: () => void, onError: (message?: string, exception?: any) => void): void;
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* This class can be used to easily import assets into a scene
|
|
* This class can be used to easily import assets into a scene
|