8b3e3cd2521b4484340cc2ac48a88b4eb88746b4050eccd04021f00702c08a52.json 3.6 KB

1
  1. {"ast":null,"code":"import { UniversalCamera } from \"./universalCamera.js\";\nimport { Vector3 } from \"../Maths/math.vector.js\";\nimport { Node } from \"../node.js\";\nNode.AddNodeConstructor(\"GamepadCamera\", (name, scene) => {\n return () => new GamepadCamera(name, Vector3.Zero(), scene);\n});\n/**\n * This represents a FPS type of camera. This is only here for back compat purpose.\n * Please use the UniversalCamera instead as both are identical.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#universal-camera\n */\nexport class GamepadCamera extends UniversalCamera {\n /**\n * Instantiates a new Gamepad Camera\n * This represents a FPS type of camera. This is only here for back compat purpose.\n * Please use the UniversalCamera instead as both are identical.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#universal-camera\n * @param name Define the name of the camera in the scene\n * @param position Define the start position of the camera in the scene\n * @param scene Define the scene the camera belongs to\n */\n constructor(name, position, scene) {\n super(name, position, scene);\n }\n /**\n * Gets the current object class name.\n * @returns the class name\n */\n getClassName() {\n return \"GamepadCamera\";\n }\n}","map":{"version":3,"names":["UniversalCamera","Vector3","Node","AddNodeConstructor","name","scene","GamepadCamera","Zero","constructor","position","getClassName"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Cameras/gamepadCamera.js"],"sourcesContent":["import { UniversalCamera } from \"./universalCamera.js\";\nimport { Vector3 } from \"../Maths/math.vector.js\";\nimport { Node } from \"../node.js\";\nNode.AddNodeConstructor(\"GamepadCamera\", (name, scene) => {\n return () => new GamepadCamera(name, Vector3.Zero(), scene);\n});\n/**\n * This represents a FPS type of camera. This is only here for back compat purpose.\n * Please use the UniversalCamera instead as both are identical.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#universal-camera\n */\nexport class GamepadCamera extends UniversalCamera {\n /**\n * Instantiates a new Gamepad Camera\n * This represents a FPS type of camera. This is only here for back compat purpose.\n * Please use the UniversalCamera instead as both are identical.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#universal-camera\n * @param name Define the name of the camera in the scene\n * @param position Define the start position of the camera in the scene\n * @param scene Define the scene the camera belongs to\n */\n constructor(name, position, scene) {\n super(name, position, scene);\n }\n /**\n * Gets the current object class name.\n * @returns the class name\n */\n getClassName() {\n return \"GamepadCamera\";\n }\n}\n"],"mappings":"AAAA,SAASA,eAAe,QAAQ,sBAAsB;AACtD,SAASC,OAAO,QAAQ,yBAAyB;AACjD,SAASC,IAAI,QAAQ,YAAY;AACjCA,IAAI,CAACC,kBAAkB,CAAC,eAAe,EAAE,CAACC,IAAI,EAAEC,KAAK,KAAK;EACtD,OAAO,MAAM,IAAIC,aAAa,CAACF,IAAI,EAAEH,OAAO,CAACM,IAAI,CAAC,CAAC,EAAEF,KAAK,CAAC;AAC/D,CAAC,CAAC;AACF;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,SAASN,eAAe,CAAC;EAC/C;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIQ,WAAWA,CAACJ,IAAI,EAAEK,QAAQ,EAAEJ,KAAK,EAAE;IAC/B,KAAK,CAACD,IAAI,EAAEK,QAAQ,EAAEJ,KAAK,CAAC;EAChC;EACA;AACJ;AACA;AACA;EACIK,YAAYA,CAAA,EAAG;IACX,OAAO,eAAe;EAC1B;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}