babylon.gamepadCamera.ts 566 B

1234567891011121314151617
  1. module BABYLON {
  2. // We're mainly based on the logic defined into the FreeCamera code
  3. export class GamepadCamera extends UniversalCamera {
  4. constructor(name: string, position: Vector3, scene: Scene) {
  5. Tools.Warn("Deprecated. Please use Universal Camera instead.");
  6. super(name, position, scene);
  7. }
  8. public serialize(): any {
  9. var serializationObject = super.serialize();
  10. serializationObject.type = "GamepadCamera";
  11. return serializationObject;
  12. }
  13. }
  14. }