3990b302a0991d247d3cf3588f9b256f2ca7ee07d4b1cf1e4717322a72ea64e0.json 2.2 KB

1
  1. {"ast":null,"code":"import { CastingResult } from \"./castingResult.js\";\n/**\n * Class representing a contact point produced in a proximity cast\n */\nexport class ProximityCastResult extends CastingResult {\n constructor() {\n super(...arguments);\n this._hitDistance = 0;\n }\n /**\n * Gets the distance from the hit\n */\n get hitDistance() {\n return this._hitDistance;\n }\n /**\n * Sets the distance from the start point to the hit point\n * @param distance\n */\n setHitDistance(distance) {\n this._hitDistance = distance;\n }\n /**\n * Resets all the values to default\n */\n reset() {\n super.reset();\n this._hitDistance = 0;\n }\n}","map":{"version":3,"names":["CastingResult","ProximityCastResult","constructor","arguments","_hitDistance","hitDistance","setHitDistance","distance","reset"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Physics/proximityCastResult.js"],"sourcesContent":["import { CastingResult } from \"./castingResult.js\";\n/**\n * Class representing a contact point produced in a proximity cast\n */\nexport class ProximityCastResult extends CastingResult {\n constructor() {\n super(...arguments);\n this._hitDistance = 0;\n }\n /**\n * Gets the distance from the hit\n */\n get hitDistance() {\n return this._hitDistance;\n }\n /**\n * Sets the distance from the start point to the hit point\n * @param distance\n */\n setHitDistance(distance) {\n this._hitDistance = distance;\n }\n /**\n * Resets all the values to default\n */\n reset() {\n super.reset();\n this._hitDistance = 0;\n }\n}\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,oBAAoB;AAClD;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,SAASD,aAAa,CAAC;EACnDE,WAAWA,CAAA,EAAG;IACV,KAAK,CAAC,GAAGC,SAAS,CAAC;IACnB,IAAI,CAACC,YAAY,GAAG,CAAC;EACzB;EACA;AACJ;AACA;EACI,IAAIC,WAAWA,CAAA,EAAG;IACd,OAAO,IAAI,CAACD,YAAY;EAC5B;EACA;AACJ;AACA;AACA;EACIE,cAAcA,CAACC,QAAQ,EAAE;IACrB,IAAI,CAACH,YAAY,GAAGG,QAAQ;EAChC;EACA;AACJ;AACA;EACIC,KAAKA,CAAA,EAAG;IACJ,KAAK,CAACA,KAAK,CAAC,CAAC;IACb,IAAI,CAACJ,YAAY,GAAG,CAAC;EACzB;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}