@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
33 lines • 1.38 kB
JavaScript
import { UniversalCamera } from "./universalCamera.js";
import { Vector3 } from "../Maths/math.vector.js";
import { Node } from "../node.js";
Node.AddNodeConstructor("GamepadCamera", (name, scene) => {
return () => new GamepadCamera(name, Vector3.Zero(), scene);
});
/**
* This represents a FPS type of camera. This is only here for back compat purpose.
* Please use the UniversalCamera instead as both are identical.
* @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#universal-camera
*/
export class GamepadCamera extends UniversalCamera {
/**
* Instantiates a new Gamepad Camera
* This represents a FPS type of camera. This is only here for back compat purpose.
* Please use the UniversalCamera instead as both are identical.
* @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#universal-camera
* @param name Define the name of the camera in the scene
* @param position Define the start position of the camera in the scene
* @param scene Define the scene the camera belongs to
*/
constructor(name, position, scene) {
super(name, position, scene);
}
/**
* Gets the current object class name.
* @returns the class name
*/
getClassName() {
return "GamepadCamera";
}
}
//# sourceMappingURL=gamepadCamera.js.map