universalCamera.d.ts 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { TouchCamera } from "./touchCamera";
  2. import type { Scene } from "../scene";
  3. import { Vector3 } from "../Maths/math.vector";
  4. import "../Gamepads/gamepadSceneComponent";
  5. /**
  6. * The Universal Camera is the one to choose for first person shooter type games, and works with all the keyboard, mouse, touch and gamepads. This replaces the earlier Free Camera,
  7. * which still works and will still be found in many Playgrounds.
  8. * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#universal-camera
  9. */
  10. export declare class UniversalCamera extends TouchCamera {
  11. /**
  12. * Defines the gamepad rotation sensibility.
  13. * This is the threshold from when rotation starts to be accounted for to prevent jittering.
  14. */
  15. get gamepadAngularSensibility(): number;
  16. set gamepadAngularSensibility(value: number);
  17. /**
  18. * Defines the gamepad move sensibility.
  19. * This is the threshold from when moving starts to be accounted for to prevent jittering.
  20. */
  21. get gamepadMoveSensibility(): number;
  22. set gamepadMoveSensibility(value: number);
  23. /**
  24. * The Universal Camera is the one to choose for first person shooter type games, and works with all the keyboard, mouse, touch and gamepads. This replaces the earlier Free Camera,
  25. * which still works and will still be found in many Playgrounds.
  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. }