1 |
- {"ast":null,"code":"import { FreeCamera } from \"./freeCamera.js\";\nimport { Vector3 } from \"../Maths/math.vector.js\";\nimport { Node } from \"../node.js\";\nimport \"./Inputs/freeCameraVirtualJoystickInput.js\";\nNode.AddNodeConstructor(\"VirtualJoysticksCamera\", (name, scene) => {\n return () => new VirtualJoysticksCamera(name, Vector3.Zero(), scene);\n});\n/**\n * This represents a free type of camera. It can be useful in First Person Shooter game for instance.\n * It is identical to the Free Camera and simply adds by default a virtual joystick.\n * Virtual Joysticks are on-screen 2D graphics that are used to control the camera or other scene items.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#virtual-joysticks-camera\n */\nexport class VirtualJoysticksCamera extends FreeCamera {\n /**\n * Instantiates a VirtualJoysticksCamera. It can be useful in First Person Shooter game for instance.\n * It is identical to the Free Camera and simply adds by default a virtual joystick.\n * Virtual Joysticks are on-screen 2D graphics that are used to control the camera or other scene items.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#virtual-joysticks-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 this.inputs.addVirtualJoystick();\n }\n /**\n * Gets the current object class name.\n * @returns the class name\n */\n getClassName() {\n return \"VirtualJoysticksCamera\";\n }\n}","map":{"version":3,"names":["FreeCamera","Vector3","Node","AddNodeConstructor","name","scene","VirtualJoysticksCamera","Zero","constructor","position","inputs","addVirtualJoystick","getClassName"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Cameras/virtualJoysticksCamera.js"],"sourcesContent":["import { FreeCamera } from \"./freeCamera.js\";\nimport { Vector3 } from \"../Maths/math.vector.js\";\nimport { Node } from \"../node.js\";\nimport \"./Inputs/freeCameraVirtualJoystickInput.js\";\nNode.AddNodeConstructor(\"VirtualJoysticksCamera\", (name, scene) => {\n return () => new VirtualJoysticksCamera(name, Vector3.Zero(), scene);\n});\n/**\n * This represents a free type of camera. It can be useful in First Person Shooter game for instance.\n * It is identical to the Free Camera and simply adds by default a virtual joystick.\n * Virtual Joysticks are on-screen 2D graphics that are used to control the camera or other scene items.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#virtual-joysticks-camera\n */\nexport class VirtualJoysticksCamera extends FreeCamera {\n /**\n * Instantiates a VirtualJoysticksCamera. It can be useful in First Person Shooter game for instance.\n * It is identical to the Free Camera and simply adds by default a virtual joystick.\n * Virtual Joysticks are on-screen 2D graphics that are used to control the camera or other scene items.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#virtual-joysticks-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 this.inputs.addVirtualJoystick();\n }\n /**\n * Gets the current object class name.\n * @returns the class name\n */\n getClassName() {\n return \"VirtualJoysticksCamera\";\n }\n}\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,iBAAiB;AAC5C,SAASC,OAAO,QAAQ,yBAAyB;AACjD,SAASC,IAAI,QAAQ,YAAY;AACjC,OAAO,4CAA4C;AACnDA,IAAI,CAACC,kBAAkB,CAAC,wBAAwB,EAAE,CAACC,IAAI,EAAEC,KAAK,KAAK;EAC/D,OAAO,MAAM,IAAIC,sBAAsB,CAACF,IAAI,EAAEH,OAAO,CAACM,IAAI,CAAC,CAAC,EAAEF,KAAK,CAAC;AACxE,CAAC,CAAC;AACF;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,sBAAsB,SAASN,UAAU,CAAC;EACnD;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;IAC5B,IAAI,CAACK,MAAM,CAACC,kBAAkB,CAAC,CAAC;EACpC;EACA;AACJ;AACA;AACA;EACIC,YAAYA,CAAA,EAAG;IACX,OAAO,wBAAwB;EACnC;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|