touchCamera.d.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { FreeCamera } from "./freeCamera";
  2. import type { Scene } from "../scene";
  3. import { Vector3 } from "../Maths/math.vector";
  4. /**
  5. * This represents a FPS type of camera controlled by touch.
  6. * This is like a universal camera minus the Gamepad controls.
  7. * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#universal-camera
  8. */
  9. export declare class TouchCamera extends FreeCamera {
  10. /**
  11. * Defines the touch sensibility for rotation.
  12. * The higher the faster.
  13. */
  14. get touchAngularSensibility(): number;
  15. set touchAngularSensibility(value: number);
  16. /**
  17. * Defines the touch sensibility for move.
  18. * The higher the faster.
  19. */
  20. get touchMoveSensibility(): number;
  21. set touchMoveSensibility(value: number);
  22. /**
  23. * Instantiates a new touch camera.
  24. * This represents a FPS type of camera controlled by touch.
  25. * This is like a universal camera minus the Gamepad controls.
  26. * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#universal-camera
  27. * @param name Define the name of the camera in the scene
  28. * @param position Define the start position of the camera in the scene
  29. * @param scene Define the scene the camera belongs to
  30. */
  31. constructor(name: string, position: Vector3, scene?: Scene);
  32. /**
  33. * Gets the current object class name.
  34. * @returns the class name
  35. */
  36. getClassName(): string;
  37. /** @internal */
  38. _setupInputs(): void;
  39. }