virtualJoysticksCamera.d.ts 1.4 KB

123456789101112131415161718192021222324252627
  1. import { FreeCamera } from "./freeCamera";
  2. import type { Scene } from "../scene";
  3. import { Vector3 } from "../Maths/math.vector";
  4. import "./Inputs/freeCameraVirtualJoystickInput";
  5. /**
  6. * This represents a free type of camera. It can be useful in First Person Shooter game for instance.
  7. * It is identical to the Free Camera and simply adds by default a virtual joystick.
  8. * Virtual Joysticks are on-screen 2D graphics that are used to control the camera or other scene items.
  9. * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#virtual-joysticks-camera
  10. */
  11. export declare class VirtualJoysticksCamera extends FreeCamera {
  12. /**
  13. * Instantiates a VirtualJoysticksCamera. It can be useful in First Person Shooter game for instance.
  14. * It is identical to the Free Camera and simply adds by default a virtual joystick.
  15. * Virtual Joysticks are on-screen 2D graphics that are used to control the camera or other scene items.
  16. * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#virtual-joysticks-camera
  17. * @param name Define the name of the camera in the scene
  18. * @param position Define the start position of the camera in the scene
  19. * @param scene Define the scene the camera belongs to
  20. */
  21. constructor(name: string, position: Vector3, scene?: Scene);
  22. /**
  23. * Gets the current object class name.
  24. * @returns the class name
  25. */
  26. getClassName(): string;
  27. }