123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- import type { Nullable } from "../../types";
- import type { FollowCamera } from "../../Cameras/followCamera";
- import { BaseCameraPointersInput } from "../../Cameras/Inputs/BaseCameraPointersInput";
- import type { PointerTouch } from "../../Events/pointerEvents";
- /**
- * Manage the pointers inputs to control an follow camera.
- * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/customizingCameraInputs
- */
- export declare class FollowCameraPointersInput extends BaseCameraPointersInput {
- /**
- * Defines the camera the input is attached to.
- */
- camera: FollowCamera;
- /**
- * Gets the class name of the current input.
- * @returns the class name
- */
- getClassName(): string;
- /**
- * Defines the pointer angular sensibility along the X axis or how fast is
- * the camera rotating.
- * A negative number will reverse the axis direction.
- */
- angularSensibilityX: number;
- /**
- * Defines the pointer angular sensibility along the Y axis or how fast is
- * the camera rotating.
- * A negative number will reverse the axis direction.
- */
- angularSensibilityY: number;
- /**
- * Defines the pointer pinch precision or how fast is the camera zooming.
- * A negative number will reverse the axis direction.
- */
- pinchPrecision: number;
- /**
- * pinchDeltaPercentage will be used instead of pinchPrecision if different
- * from 0.
- * It defines the percentage of current camera.radius to use as delta when
- * pinch zoom is used.
- */
- pinchDeltaPercentage: number;
- /**
- * Pointer X axis controls zoom. (X axis modifies camera.radius value.)
- */
- axisXControlRadius: boolean;
- /**
- * Pointer X axis controls height. (X axis modifies camera.heightOffset value.)
- */
- axisXControlHeight: boolean;
- /**
- * Pointer X axis controls angle. (X axis modifies camera.rotationOffset value.)
- */
- axisXControlRotation: boolean;
- /**
- * Pointer Y axis controls zoom. (Y axis modifies camera.radius value.)
- */
- axisYControlRadius: boolean;
- /**
- * Pointer Y axis controls height. (Y axis modifies camera.heightOffset value.)
- */
- axisYControlHeight: boolean;
- /**
- * Pointer Y axis controls angle. (Y axis modifies camera.rotationOffset value.)
- */
- axisYControlRotation: boolean;
- /**
- * Pinch controls zoom. (Pinch modifies camera.radius value.)
- */
- axisPinchControlRadius: boolean;
- /**
- * Pinch controls height. (Pinch modifies camera.heightOffset value.)
- */
- axisPinchControlHeight: boolean;
- /**
- * Pinch controls angle. (Pinch modifies camera.rotationOffset value.)
- */
- axisPinchControlRotation: boolean;
- /**
- * Log error messages if basic misconfiguration has occurred.
- */
- warningEnable: boolean;
- onTouch(pointA: Nullable<PointerTouch>, offsetX: number, offsetY: number): void;
- onMultiTouch(pointA: Nullable<PointerTouch>, pointB: Nullable<PointerTouch>, previousPinchSquaredDistance: number, pinchSquaredDistance: number, previousMultiTouchPanPosition: Nullable<PointerTouch>, multiTouchPanPosition: Nullable<PointerTouch>): void;
- private _warningCounter;
- private _warning;
- }
|