rogue-editor-user-scripts.js 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. "use strict";
  2. (function webpackUniversalModuleDefinition(root, factory) {
  3. if(typeof exports === 'object' && typeof module === 'object')
  4. module.exports = factory();
  5. else if(typeof define === 'function' && define.amd)
  6. define([], factory);
  7. else if(typeof exports === 'object')
  8. exports["rogue-editor-user-scripts"] = factory();
  9. else
  10. root["rogue-editor-user-scripts"] = factory();
  11. })(self, () => {
  12. return (self["webpackChunkroguetemplateproject"] = self["webpackChunkroguetemplateproject"] || []).push([["rogue-editor-user-scripts"],{
  13. /***/ "./Assets/rogue_packages/BeardScript/rogue-cannon/Components/_Editor/CannonBodyWireframe.ts":
  14. /*!**************************************************************************************************!*\
  15. !*** ./Assets/rogue_packages/BeardScript/rogue-cannon/Components/_Editor/CannonBodyWireframe.ts ***!
  16. \**************************************************************************************************/
  17. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  18. __webpack_require__.r(__webpack_exports__);
  19. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  20. /* harmony export */ "default": () => (/* binding */ CannonBodyWireframe)
  21. /* harmony export */ });
  22. /* harmony import */ var rogue_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rogue-engine */ "rogue-engine");
  23. /* harmony import */ var rogue_engine__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rogue_engine__WEBPACK_IMPORTED_MODULE_0__);
  24. /* harmony import */ var three__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! three */ "three");
  25. /* harmony import */ var three__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(three__WEBPACK_IMPORTED_MODULE_1__);
  26. /* harmony import */ var _Shapes_CannonBox_re__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Shapes/CannonBox.re */ "./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Shapes/CannonBox.re.ts");
  27. /* harmony import */ var _Shapes_CannonSphere_re__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Shapes/CannonSphere.re */ "./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Shapes/CannonSphere.re.ts");
  28. /* harmony import */ var _Shapes_CannonShape__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Shapes/CannonShape */ "./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Shapes/CannonShape.ts");
  29. /* harmony import */ var _Shapes_CannonCylinder_re__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Shapes/CannonCylinder.re */ "./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Shapes/CannonCylinder.re.ts");
  30. /* harmony import */ var _Shapes_CannonTrimesh_re__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Shapes/CannonTrimesh.re */ "./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Shapes/CannonTrimesh.re.ts");
  31. var __defProp = Object.defineProperty;
  32. var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
  33. class CannonBodyWireframe extends rogue_engine__WEBPACK_IMPORTED_MODULE_0__.Component {
  34. constructor() {
  35. super(...arguments);
  36. this.selectedObjects = [];
  37. this.colliders = [];
  38. this.wireframeMaterial = new three__WEBPACK_IMPORTED_MODULE_1__.MeshStandardMaterial({ wireframe: true, emissive: new three__WEBPACK_IMPORTED_MODULE_1__.Color("#00FF00"), color: new three__WEBPACK_IMPORTED_MODULE_1__.Color("#000000") });
  39. this.handleOnComponentAdded = { stop: () => {
  40. } };
  41. this.handleOnComponentRemoved = { stop: () => {
  42. } };
  43. this.handleOnPlay = { stop: () => {
  44. } };
  45. this.resetHandler = /* @__PURE__ */ __name((component) => {
  46. component instanceof _Shapes_CannonShape__WEBPACK_IMPORTED_MODULE_4__["default"] && this.setupImpostors();
  47. }, "resetHandler");
  48. }
  49. start() {
  50. this.handleOnComponentAdded.stop();
  51. this.handleOnComponentRemoved.stop();
  52. this.handleOnPlay.stop();
  53. this.handleOnComponentAdded = rogue_engine__WEBPACK_IMPORTED_MODULE_0__.onComponentAdded(this.resetHandler);
  54. this.handleOnComponentRemoved = rogue_engine__WEBPACK_IMPORTED_MODULE_0__.onComponentRemoved(this.resetHandler);
  55. this.handleOnPlay = rogue_engine__WEBPACK_IMPORTED_MODULE_0__.Runtime.onPlay(() => {
  56. this.handleOnComponentAdded.stop();
  57. this.handleOnComponentRemoved.stop();
  58. this.cleanupImpostors();
  59. });
  60. }
  61. afterUpdate() {
  62. const selectedObjects = window["rogue-editor"].Project.selectedObjects;
  63. if (!this.arraysAreEqual(selectedObjects, this.selectedObjects)) {
  64. this.selectedObjects = selectedObjects.slice(0);
  65. this.setupImpostors();
  66. }
  67. if (this.selectedObjects.length === 0)
  68. return;
  69. this.updateImpostors();
  70. }
  71. updateImpostors() {
  72. this.colliders.forEach((impostor) => {
  73. this.updateColliderMesh(impostor.userData.cannonShape, impostor);
  74. });
  75. }
  76. cleanupImpostors() {
  77. this.colliders.forEach((impostor) => {
  78. impostor.userData.cannonShape = null;
  79. rogue_engine__WEBPACK_IMPORTED_MODULE_0__.App.currentScene.remove(impostor);
  80. rogue_engine__WEBPACK_IMPORTED_MODULE_0__.dispose(impostor);
  81. });
  82. this.colliders = [];
  83. }
  84. setupImpostors() {
  85. this.cleanupImpostors();
  86. this.selectedObjects.forEach((selected) => {
  87. selected.traverse((object) => {
  88. const objComponents = rogue_engine__WEBPACK_IMPORTED_MODULE_0__.components[object.uuid];
  89. if (!objComponents)
  90. return;
  91. objComponents.forEach((component) => {
  92. if (!(component instanceof _Shapes_CannonShape__WEBPACK_IMPORTED_MODULE_4__["default"]))
  93. return;
  94. let impostor = rogue_engine__WEBPACK_IMPORTED_MODULE_0__.App.currentScene.getObjectByName("EDITOR_OBJECT_BB_" + object.uuid);
  95. if (impostor)
  96. return;
  97. impostor = this.getColliderMesh(component);
  98. if (impostor) {
  99. impostor.name = "EDITOR_OBJECT_BB_" + object.uuid;
  100. impostor.userData.isEditorObject = true;
  101. rogue_engine__WEBPACK_IMPORTED_MODULE_0__.App.currentScene.add(impostor);
  102. } else {
  103. return;
  104. }
  105. impostor.userData.cannonShape = component;
  106. this.colliders.push(impostor);
  107. });
  108. });
  109. });
  110. }
  111. arraysAreEqual(array1, array2) {
  112. if (array1.length !== array2.length)
  113. return false;
  114. return array1.every((element, i) => {
  115. return array2[i] === element;
  116. });
  117. }
  118. getColliderMesh(component) {
  119. if (component instanceof _Shapes_CannonBox_re__WEBPACK_IMPORTED_MODULE_2__["default"]) {
  120. return new three__WEBPACK_IMPORTED_MODULE_1__.Mesh(new three__WEBPACK_IMPORTED_MODULE_1__.BoxBufferGeometry(), this.wireframeMaterial);
  121. }
  122. if (component instanceof _Shapes_CannonCylinder_re__WEBPACK_IMPORTED_MODULE_5__["default"]) {
  123. const radiusTop = component.radiusTopOffset;
  124. const radiusBottom = component.radiusBottomOffset;
  125. const height = component.heightOffset;
  126. const mesh = new three__WEBPACK_IMPORTED_MODULE_1__.Mesh(new three__WEBPACK_IMPORTED_MODULE_1__.CylinderBufferGeometry(radiusTop, radiusBottom, height, component.segments), this.wireframeMaterial);
  127. return mesh;
  128. }
  129. if (component instanceof _Shapes_CannonSphere_re__WEBPACK_IMPORTED_MODULE_3__["default"]) {
  130. const scale = component.object3d.scale;
  131. const maxSide = Math.max(scale.x, scale.y, scale.z);
  132. const radius = component.radiusOffset * maxSide;
  133. const compensatedRadius = radius + radius * 0.01;
  134. const segments = 15;
  135. return new three__WEBPACK_IMPORTED_MODULE_1__.Mesh(new three__WEBPACK_IMPORTED_MODULE_1__.SphereBufferGeometry(compensatedRadius, segments, segments), this.wireframeMaterial);
  136. }
  137. if (component instanceof _Shapes_CannonTrimesh_re__WEBPACK_IMPORTED_MODULE_6__["default"]) {
  138. if (!component.shape)
  139. component.createShape();
  140. if (component.shape) {
  141. const geometry = new three__WEBPACK_IMPORTED_MODULE_1__.BufferGeometry();
  142. const mesh = new three__WEBPACK_IMPORTED_MODULE_1__.Mesh(geometry, this.wireframeMaterial);
  143. const points = [];
  144. for (let i = 0; i < component.shape.vertices.length; i += 3) {
  145. const point = new three__WEBPACK_IMPORTED_MODULE_1__.Vector3(component.shape.vertices[i], component.shape.vertices[i + 1], component.shape.vertices[i + 2]);
  146. points.push(point);
  147. }
  148. geometry.setFromPoints(points);
  149. return mesh;
  150. }
  151. }
  152. return;
  153. }
  154. updateColliderMesh(component, mesh) {
  155. if (component instanceof _Shapes_CannonBox_re__WEBPACK_IMPORTED_MODULE_2__["default"]) {
  156. component.object3d.getWorldScale(mesh.scale);
  157. mesh.scale.set(component.sizeOffset.x * mesh.scale.x, component.sizeOffset.y * mesh.scale.y, component.sizeOffset.z * mesh.scale.z);
  158. }
  159. if (component instanceof _Shapes_CannonCylinder_re__WEBPACK_IMPORTED_MODULE_5__["default"]) {
  160. const radiusTop = component.radiusTopOffset;
  161. const radiusBottom = component.radiusBottomOffset;
  162. const height = component.heightOffset;
  163. if (mesh.geometry instanceof three__WEBPACK_IMPORTED_MODULE_1__.CylinderBufferGeometry) {
  164. if (mesh.geometry.parameters.radiusTop !== radiusTop || mesh.geometry.parameters.radiusBottom !== radiusBottom || mesh.geometry.parameters.height !== height || mesh.geometry.parameters.radialSegments !== component.segments) {
  165. mesh.geometry.dispose();
  166. mesh.geometry = new three__WEBPACK_IMPORTED_MODULE_1__.CylinderBufferGeometry(radiusTop, radiusBottom, height, component.segments);
  167. }
  168. }
  169. component.object3d.getWorldScale(mesh.scale);
  170. }
  171. if (component instanceof _Shapes_CannonSphere_re__WEBPACK_IMPORTED_MODULE_3__["default"]) {
  172. const scale = component.object3d.scale;
  173. const maxSide = Math.max(scale.x, scale.y, scale.z);
  174. const radius = component.radiusOffset * maxSide;
  175. if (mesh.geometry instanceof three__WEBPACK_IMPORTED_MODULE_1__.SphereBufferGeometry) {
  176. if (mesh.geometry.parameters.radius !== radius) {
  177. let segments = 10 * radius;
  178. if (segments < 15)
  179. segments = 15;
  180. if (segments > 50)
  181. segments = 50;
  182. mesh.geometry.dispose();
  183. mesh.geometry = new three__WEBPACK_IMPORTED_MODULE_1__.SphereBufferGeometry(radius, segments, segments);
  184. }
  185. }
  186. }
  187. component.object3d.getWorldPosition(mesh.position);
  188. component.object3d.getWorldQuaternion(mesh.quaternion);
  189. }
  190. onBeforeRemoved() {
  191. this.handleOnComponentAdded.stop();
  192. this.handleOnComponentRemoved.stop();
  193. this.handleOnPlay.stop();
  194. this.cleanupImpostors();
  195. }
  196. }
  197. __name(CannonBodyWireframe, "CannonBodyWireframe");
  198. CannonBodyWireframe.isEditorComponent = true;
  199. rogue_engine__WEBPACK_IMPORTED_MODULE_0__.registerComponent(CannonBodyWireframe);
  200. /***/ }),
  201. /***/ "./Assets/rogue_packages/RogueEngine/rogue-rapier/Components/_Editor/RapierBodyWireframe.re.ts":
  202. /*!*****************************************************************************************************!*\
  203. !*** ./Assets/rogue_packages/RogueEngine/rogue-rapier/Components/_Editor/RapierBodyWireframe.re.ts ***!
  204. \*****************************************************************************************************/
  205. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  206. __webpack_require__.r(__webpack_exports__);
  207. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  208. /* harmony export */ "default": () => (/* binding */ RapierBodyWireframe)
  209. /* harmony export */ });
  210. /* harmony import */ var rogue_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rogue-engine */ "rogue-engine");
  211. /* harmony import */ var rogue_engine__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rogue_engine__WEBPACK_IMPORTED_MODULE_0__);
  212. /* harmony import */ var three__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! three */ "three");
  213. /* harmony import */ var three__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(three__WEBPACK_IMPORTED_MODULE_1__);
  214. /* harmony import */ var _Colliders_RapierCollider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Colliders/RapierCollider */ "./Assets/rogue_packages/RogueEngine/rogue-rapier/Components/Colliders/RapierCollider.ts");
  215. /* harmony import */ var _dimforge_rapier3d_compat__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @dimforge/rapier3d-compat */ "./node_modules/@dimforge/rapier3d-compat/rapier.es.js");
  216. /* harmony import */ var _RapierBody_re__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../RapierBody.re */ "./Assets/rogue_packages/RogueEngine/rogue-rapier/Components/RapierBody.re.ts");
  217. /* harmony import */ var _RE_RogueEngine_rogue_rapier_Lib_RogueRapier__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @RE/RogueEngine/rogue-rapier/Lib/RogueRapier */ "./Assets/rogue_packages/RogueEngine/rogue-rapier/Lib/RogueRapier.ts");
  218. var __defProp = Object.defineProperty;
  219. var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
  220. class RapierBodyWireframe extends rogue_engine__WEBPACK_IMPORTED_MODULE_0__.Component {
  221. constructor() {
  222. super(...arguments);
  223. this.selectedObjects = [];
  224. this.colliders = [];
  225. this.lines = new three__WEBPACK_IMPORTED_MODULE_1__.LineSegments(new three__WEBPACK_IMPORTED_MODULE_1__.BufferGeometry(), new three__WEBPACK_IMPORTED_MODULE_1__.LineBasicMaterial({ color: new three__WEBPACK_IMPORTED_MODULE_1__.Color("#00FF00") }));
  226. this.initializedPhysics = false;
  227. this.handleOnComponentAdded = { stop: () => {
  228. } };
  229. this.handleOnComponentRemoved = { stop: () => {
  230. } };
  231. this.handleOnPlay = { stop: () => {
  232. } };
  233. this.resetHandler = /* @__PURE__ */ __name((component) => {
  234. component instanceof _Colliders_RapierCollider__WEBPACK_IMPORTED_MODULE_2__["default"] && this.setupImpostors();
  235. }, "resetHandler");
  236. }
  237. async initPhysics() {
  238. await _dimforge_rapier3d_compat__WEBPACK_IMPORTED_MODULE_5__["default"].init();
  239. }
  240. start() {
  241. this.initializedPhysics = false;
  242. this.lines.geometry.computeBoundingSphere();
  243. this.lines.frustumCulled = false;
  244. this.initPhysics().then(() => {
  245. this.world = new _dimforge_rapier3d_compat__WEBPACK_IMPORTED_MODULE_5__["default"].World({ x: 0, y: 0, z: 0 });
  246. _RE_RogueEngine_rogue_rapier_Lib_RogueRapier__WEBPACK_IMPORTED_MODULE_4__["default"].world = this.world;
  247. this.initializedPhysics = true;
  248. });
  249. rogue_engine__WEBPACK_IMPORTED_MODULE_0__.App.currentScene.remove(this.lines);
  250. this.lines.userData.isEditorObject = true;
  251. rogue_engine__WEBPACK_IMPORTED_MODULE_0__.App.currentScene.add(this.lines);
  252. this.handleOnComponentAdded.stop();
  253. this.handleOnComponentRemoved.stop();
  254. this.handleOnPlay.stop();
  255. this.handleOnComponentAdded = rogue_engine__WEBPACK_IMPORTED_MODULE_0__.onComponentAdded(this.resetHandler);
  256. this.handleOnComponentRemoved = rogue_engine__WEBPACK_IMPORTED_MODULE_0__.onComponentRemoved(this.resetHandler);
  257. this.handleOnPlay = rogue_engine__WEBPACK_IMPORTED_MODULE_0__.Runtime.onPlay(() => {
  258. this.handleOnComponentAdded.stop();
  259. this.handleOnComponentRemoved.stop();
  260. });
  261. }
  262. resetComponents() {
  263. this.selectedObjects.forEach((selected) => {
  264. if (!selected)
  265. return;
  266. selected.traverse((object) => {
  267. const objComponents = rogue_engine__WEBPACK_IMPORTED_MODULE_0__.components[object.uuid];
  268. if (!objComponents)
  269. return;
  270. objComponents.forEach((component) => {
  271. if (component instanceof _RapierBody_re__WEBPACK_IMPORTED_MODULE_3__["default"] || component instanceof _Colliders_RapierCollider__WEBPACK_IMPORTED_MODULE_2__["default"]) {
  272. component.initialized = false;
  273. }
  274. });
  275. });
  276. });
  277. }
  278. afterUpdate() {
  279. this.lines.visible = false;
  280. if (!this.initializedPhysics)
  281. return;
  282. const selectedObjects = window["rogue-editor"].Project.selectedObjects;
  283. if (!this.arraysAreEqual(selectedObjects, this.selectedObjects)) {
  284. this.selectedObjects = selectedObjects.slice(0);
  285. this.resetComponents();
  286. this.setupImpostors();
  287. }
  288. if (!this.world || this.world && this.world.bodies.len() === 0) {
  289. return;
  290. }
  291. this.updateImpostors();
  292. }
  293. updateImpostors() {
  294. this.lines.visible = true;
  295. this.world.step();
  296. const flagForRemoval = [];
  297. this.colliders.forEach((component) => {
  298. if (component instanceof _Colliders_RapierCollider__WEBPACK_IMPORTED_MODULE_2__["default"] && component.object3d && component.bodyComponent) {
  299. if (!component.enabled) {
  300. component.initialized = false;
  301. flagForRemoval.push(component);
  302. return;
  303. }
  304. const pos = component.bodyComponent.object3d.position;
  305. const rot = component.bodyComponent.object3d.quaternion;
  306. component.body.setTranslation(new _dimforge_rapier3d_compat__WEBPACK_IMPORTED_MODULE_5__["default"].Vector3(pos.x, pos.y, pos.z), false);
  307. component.body.setRotation(new _dimforge_rapier3d_compat__WEBPACK_IMPORTED_MODULE_5__["default"].Quaternion(rot.x, rot.y, rot.z, rot.w), false);
  308. component.setColliderRot();
  309. component.setColliderPos();
  310. }
  311. });
  312. flagForRemoval.forEach((component) => this.colliders.splice(this.colliders.indexOf(component), 1));
  313. let buffers = this.world.debugRender();
  314. this.lines.geometry.setAttribute("position", new three__WEBPACK_IMPORTED_MODULE_1__.BufferAttribute(buffers.vertices, 3));
  315. this.lines.geometry.setAttribute("color", new three__WEBPACK_IMPORTED_MODULE_1__.BufferAttribute(buffers.colors, 4));
  316. }
  317. async cleanupImpostors() {
  318. _RE_RogueEngine_rogue_rapier_Lib_RogueRapier__WEBPACK_IMPORTED_MODULE_4__["default"].world && _RE_RogueEngine_rogue_rapier_Lib_RogueRapier__WEBPACK_IMPORTED_MODULE_4__["default"].world.bodies.forEach((body) => _RE_RogueEngine_rogue_rapier_Lib_RogueRapier__WEBPACK_IMPORTED_MODULE_4__["default"].world.removeRigidBody(body));
  319. this.lines.visible = false;
  320. rogue_engine__WEBPACK_IMPORTED_MODULE_0__.App.currentScene.remove(this.lines);
  321. this.colliders = [];
  322. }
  323. async setupImpostors() {
  324. await this.cleanupImpostors();
  325. this.selectedObjects.forEach((selected) => {
  326. selected.traverse((object) => {
  327. const objComponents = rogue_engine__WEBPACK_IMPORTED_MODULE_0__.components[object.uuid];
  328. if (!objComponents)
  329. return;
  330. objComponents.forEach((component) => {
  331. if (component instanceof _RapierBody_re__WEBPACK_IMPORTED_MODULE_3__["default"]) {
  332. component.init();
  333. this.colliders.push(component);
  334. }
  335. if (component instanceof _Colliders_RapierCollider__WEBPACK_IMPORTED_MODULE_2__["default"]) {
  336. const bodyComponent = component.getBodyComponent(component.object3d);
  337. if (bodyComponent) {
  338. bodyComponent.init();
  339. }
  340. component.init();
  341. this.colliders.push(component);
  342. }
  343. });
  344. });
  345. });
  346. rogue_engine__WEBPACK_IMPORTED_MODULE_0__.App.currentScene.add(this.lines);
  347. }
  348. arraysAreEqual(array1, array2) {
  349. if (array1.length !== array2.length)
  350. return false;
  351. return array1.every((element, i) => {
  352. return array2[i] === element;
  353. });
  354. }
  355. onBeforeRemoved() {
  356. rogue_engine__WEBPACK_IMPORTED_MODULE_0__.App.currentScene.remove(this.lines);
  357. this.handleOnComponentAdded.stop();
  358. this.handleOnComponentRemoved.stop();
  359. this.handleOnPlay.stop();
  360. this.cleanupImpostors();
  361. }
  362. }
  363. __name(RapierBodyWireframe, "RapierBodyWireframe");
  364. RapierBodyWireframe.isEditorComponent = true;
  365. rogue_engine__WEBPACK_IMPORTED_MODULE_0__.registerComponent(RapierBodyWireframe);
  366. /***/ })
  367. },
  368. /******/ __webpack_require__ => { // webpackRuntimeModules
  369. /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
  370. /******/ var __webpack_exports__ = (__webpack_exec__("./Assets/Components/Animator.re.ts"), __webpack_exec__("./Assets/Components/BallRaycastReceiver.re.ts"), __webpack_exec__("./Assets/Components/CannonMovementController.re.ts"), __webpack_exec__("./Assets/Components/FaceDirectionOfVelocityComponent.re.ts"), __webpack_exec__("./Assets/Components/FloorCheckComponent.re.ts"), __webpack_exec__("./Assets/Components/FloorRaycastReceiver.re.ts"), __webpack_exec__("./Assets/Components/GameLogic.re.ts"), __webpack_exec__("./Assets/Components/MovementController.re.ts"), __webpack_exec__("./Assets/Components/RapierMovementController.re.ts"), __webpack_exec__("./Assets/Components/RaycastReceiver.re.ts"), __webpack_exec__("./Assets/Components/RaycastReporter.re.ts"), __webpack_exec__("./Assets/Library/GetForwardVector.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/_Editor/CannonBodyWireframe.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/CannonBody.re.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/CannonConfig.re.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Constraints/CannonConstraint.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Constraints/CannonDistanceConstraint.re.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Constraints/CannonHingeConstraint.re.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Constraints/CannonLockConstraint.re.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Constraints/CannonPointToPointConstraint.re.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Controllers/CannonSimpleCharacterController.re.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Controllers/CannonVehicleController.re.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Material/CannonContactMaterial.re.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Material/CannonMaterial.re.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Material/SetCannonMaterial.re.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Objects/CannonRaycastVehicle.re.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Objects/CannonSpring.re.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Objects/CannonWheel.re.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Shapes/CannonBox.re.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Shapes/CannonCylinder.re.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Shapes/CannonShape.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Shapes/CannonSphere.re.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Components/Shapes/CannonTrimesh.re.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/index.ts"), __webpack_exec__("./Assets/rogue_packages/BeardScript/rogue-cannon/Lib/RogueCannon.ts"), __webpack_exec__("./Assets/rogue_packages/EyeOfMidas/targeted-orbit-camera/TargetedOrbitCamera.re.ts"), __webpack_exec__("./Assets/rogue_packages/RogueEngine/rogue-rapier/Components/_Editor/RapierBodyWireframe.re.ts"), __webpack_exec__("./Assets/rogue_packages/RogueEngine/rogue-rapier/Components/Colliders/RapierBall.re.ts"), __webpack_exec__("./Assets/rogue_packages/RogueEngine/rogue-rapier/Components/Colliders/RapierCapsule.re.ts"), __webpack_exec__("./Assets/rogue_packages/RogueEngine/rogue-rapier/Components/Colliders/RapierCollider.ts"), __webpack_exec__("./Assets/rogue_packages/RogueEngine/rogue-rapier/Components/Colliders/RapierCone.re.ts"), __webpack_exec__("./Assets/rogue_packages/RogueEngine/rogue-rapier/Components/Colliders/RapierCuboid.re.ts"), __webpack_exec__("./Assets/rogue_packages/RogueEngine/rogue-rapier/Components/Colliders/RapierCylinder.re.ts"), __webpack_exec__("./Assets/rogue_packages/RogueEngine/rogue-rapier/Components/Colliders/RapierTrimesh.re.ts"), __webpack_exec__("./Assets/rogue_packages/RogueEngine/rogue-rapier/Components/RapierBody.re.ts"), __webpack_exec__("./Assets/rogue_packages/RogueEngine/rogue-rapier/Components/RapierConfig.re.ts"), __webpack_exec__("./Assets/rogue_packages/RogueEngine/rogue-rapier/Lib/RogueRapier.ts"));
  371. /******/ return __webpack_exports__;
  372. /******/ }
  373. ]);
  374. });
  375. //# sourceMappingURL=rogue-editor-user-scripts.js.map