x_ite 8.7.8 → 8.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (646) hide show
  1. package/Makefile +3 -0
  2. package/build/bin/version.pl +1 -1
  3. package/dist/assets/components/Annotation.js +248 -169
  4. package/dist/assets/components/Annotation.min.js +1 -1
  5. package/dist/assets/components/CADGeometry.js +296 -233
  6. package/dist/assets/components/CADGeometry.min.js +1 -1
  7. package/dist/assets/components/CubeMapTexturing.js +217 -172
  8. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  9. package/dist/assets/components/DIS.js +451 -387
  10. package/dist/assets/components/DIS.min.js +1 -1
  11. package/dist/assets/components/EventUtilities.js +309 -208
  12. package/dist/assets/components/EventUtilities.min.js +1 -1
  13. package/dist/assets/components/Geometry2D.js +397 -333
  14. package/dist/assets/components/Geometry2D.min.js +1 -1
  15. package/dist/assets/components/Geospatial.js +705 -575
  16. package/dist/assets/components/Geospatial.min.js +1 -1
  17. package/dist/assets/components/HAnim.js +319 -259
  18. package/dist/assets/components/HAnim.min.js +1 -1
  19. package/dist/assets/components/KeyDeviceSensor.js +134 -99
  20. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  21. package/dist/assets/components/Layout.js +305 -240
  22. package/dist/assets/components/Layout.min.js +1 -1
  23. package/dist/assets/components/NURBS.js +781 -626
  24. package/dist/assets/components/NURBS.min.js +1 -1
  25. package/dist/assets/components/ParticleSystems.js +632 -460
  26. package/dist/assets/components/ParticleSystems.min.js +1 -1
  27. package/dist/assets/components/Picking.js +376 -295
  28. package/dist/assets/components/Picking.min.js +1 -1
  29. package/dist/assets/components/RigidBodyPhysics.js +936 -749
  30. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  31. package/dist/assets/components/Scripting.js +173 -103
  32. package/dist/assets/components/Scripting.min.js +1 -1
  33. package/dist/assets/components/Text.js +241 -207
  34. package/dist/assets/components/Text.min.js +1 -1
  35. package/dist/assets/components/TextureProjector.js +162 -129
  36. package/dist/assets/components/TextureProjector.min.js +1 -1
  37. package/dist/assets/components/Texturing3D.js +485 -384
  38. package/dist/assets/components/Texturing3D.min.js +1 -1
  39. package/dist/assets/components/VolumeRendering.js +741 -547
  40. package/dist/assets/components/VolumeRendering.min.js +1 -1
  41. package/dist/assets/components/X_ITE.js +66 -54
  42. package/dist/assets/components/X_ITE.min.js +1 -1
  43. package/dist/x_ite.css +1 -1
  44. package/dist/x_ite.js +61554 -59658
  45. package/dist/x_ite.min.js +1 -1
  46. package/dist/x_ite.zip +0 -0
  47. package/docs/_config.yml +2 -2
  48. package/package.json +4 -4
  49. package/src/assets/components/Annotation.js +14 -14
  50. package/src/assets/components/CADGeometry.js +14 -14
  51. package/src/assets/components/CubeMapTexturing.js +11 -11
  52. package/src/assets/components/DIS.js +13 -13
  53. package/src/assets/components/EventUtilities.js +16 -16
  54. package/src/assets/components/Geometry2D.js +15 -15
  55. package/src/assets/components/Geospatial.js +19 -19
  56. package/src/assets/components/HAnim.js +13 -13
  57. package/src/assets/components/KeyDeviceSensor.js +10 -10
  58. package/src/assets/components/Layout.js +13 -13
  59. package/src/assets/components/NURBS.js +24 -24
  60. package/src/assets/components/ParticleSystems.js +19 -19
  61. package/src/assets/components/Picking.js +14 -14
  62. package/src/assets/components/RigidBodyPhysics.js +24 -24
  63. package/src/assets/components/Scripting.js +9 -9
  64. package/src/assets/components/Text.js +10 -10
  65. package/src/assets/components/TextureProjector.js +10 -10
  66. package/src/assets/components/Texturing3D.js +16 -16
  67. package/src/assets/components/VolumeRendering.js +23 -23
  68. package/src/assets/components/X_ITE.js +8 -7
  69. package/src/assets/shaders/webgl1/include/Shadow.glsl.js +21 -25
  70. package/src/assets/shaders/webgl2/include/Shadow.glsl.js +23 -27
  71. package/src/bookmarks.js +2 -2
  72. package/src/lib/jquery.js +42 -30
  73. package/src/standard/Geospatial/Geodetic.js +8 -9
  74. package/src/standard/Geospatial/UniversalTransverseMercator.js +4 -5
  75. package/src/standard/Math/Algorithm.js +41 -56
  76. package/src/standard/Math/Algorithms/Bezier.js +2 -2
  77. package/src/standard/Math/Algorithms/MergeSort.js +6 -6
  78. package/src/standard/Math/Algorithms/PartialSort.js +5 -5
  79. package/src/standard/Math/Algorithms/QuickSort.js +5 -5
  80. package/src/standard/Math/Geometry/Box2.js +16 -17
  81. package/src/standard/Math/Geometry/Box3.js +18 -19
  82. package/src/standard/Math/Geometry/Camera.js +6 -5
  83. package/src/standard/Math/Geometry/Cylinder3.js +6 -7
  84. package/src/standard/Math/Geometry/Line2.js +20 -18
  85. package/src/standard/Math/Geometry/Line3.js +20 -18
  86. package/src/standard/Math/Geometry/Plane3.js +11 -12
  87. package/src/standard/Math/Geometry/Sphere3.js +6 -7
  88. package/src/standard/Math/Geometry/Spheroid3.js +6 -7
  89. package/src/standard/Math/Geometry/Triangle2.js +4 -3
  90. package/src/standard/Math/Geometry/Triangle3.js +5 -4
  91. package/src/standard/Math/Geometry/ViewVolume.js +6 -7
  92. package/src/standard/Math/Numbers/Color3.js +18 -19
  93. package/src/standard/Math/Numbers/Color4.js +20 -21
  94. package/src/standard/Math/Numbers/Complex.js +28 -29
  95. package/src/standard/Math/Numbers/Matrix2.js +22 -23
  96. package/src/standard/Math/Numbers/Matrix3.js +28 -29
  97. package/src/standard/Math/Numbers/Matrix4.js +29 -30
  98. package/src/standard/Math/Numbers/Quaternion.js +40 -41
  99. package/src/standard/Math/Numbers/Rotation4.js +34 -35
  100. package/src/standard/Math/Numbers/Vector2.js +29 -30
  101. package/src/standard/Math/Numbers/Vector3.js +32 -33
  102. package/src/standard/Math/Numbers/Vector4.js +34 -35
  103. package/src/standard/Math/Utility/BVH.js +14 -15
  104. package/src/standard/Math/Utility/MatrixStack.js +12 -12
  105. package/src/standard/Time/MicroTime.js +4 -3
  106. package/src/standard/Utility/BitSet.js +10 -11
  107. package/src/standard/Utility/DataStorage.js +10 -10
  108. package/src/standard/Utility/MapUtilities.js +2 -1
  109. package/src/standard/Utility/ObjectCache.js +3 -3
  110. package/src/tests.js +10 -0
  111. package/src/x_ite/Base/Events.js +3 -3
  112. package/src/x_ite/Base/FieldArray.js +11 -9
  113. package/src/x_ite/Base/FieldDefinitionArray.js +11 -9
  114. package/src/x_ite/Base/X3DArrayField.js +13 -14
  115. package/src/x_ite/Base/X3DBaseNode.js +219 -181
  116. package/src/x_ite/Base/X3DCast.js +1 -1
  117. package/src/x_ite/Base/X3DChildObject.js +162 -53
  118. package/src/x_ite/Base/X3DConstants.js +74 -60
  119. package/src/x_ite/Base/X3DEventObject.js +6 -12
  120. package/src/x_ite/Base/X3DField.js +45 -42
  121. package/src/x_ite/Base/X3DFieldDefinition.js +9 -7
  122. package/src/x_ite/Base/X3DInfoArray.js +75 -65
  123. package/src/x_ite/Base/X3DObject.js +59 -29
  124. package/src/x_ite/Base/X3DObjectArrayField.js +51 -117
  125. package/src/x_ite/Base/X3DTypedArrayField.js +48 -42
  126. package/src/x_ite/Browser/Core/BrowserOptions.js +55 -57
  127. package/src/x_ite/Browser/Core/BrowserProperties.js +18 -20
  128. package/src/x_ite/Browser/Core/BrowserTimings.js +29 -33
  129. package/src/x_ite/Browser/Core/Context.js +7 -7
  130. package/src/x_ite/Browser/Core/ContextMenu.js +61 -83
  131. package/src/x_ite/Browser/Core/Notification.js +12 -12
  132. package/src/x_ite/Browser/Core/RenderingProperties.js +28 -28
  133. package/src/x_ite/Browser/Core/X3DCoreContext.js +45 -37
  134. package/src/x_ite/Browser/DOMIntegration.js +4 -1
  135. package/src/x_ite/Browser/EnvironmentalEffects/X3DEnvironmentalEffectsContext.js +3 -3
  136. package/src/x_ite/Browser/Followers/X3DArrayChaserTemplate.js +1 -1
  137. package/src/x_ite/Browser/Followers/X3DArrayFollowerTemplate.js +12 -12
  138. package/src/x_ite/Browser/Geometry2D/Arc2DOptions.js +8 -14
  139. package/src/x_ite/Browser/Geometry2D/ArcClose2DOptions.js +8 -14
  140. package/src/x_ite/Browser/Geometry2D/Circle2DOptions.js +13 -17
  141. package/src/x_ite/Browser/Geometry2D/Disk2DOptions.js +15 -19
  142. package/src/x_ite/Browser/Geometry2D/Rectangle2DOptions.js +12 -16
  143. package/src/x_ite/Browser/Geometry2D/X3DGeometry2DContext.js +9 -9
  144. package/src/x_ite/Browser/Geometry3D/BoxOptions.js +12 -16
  145. package/src/x_ite/Browser/Geometry3D/ConeOptions.js +6 -12
  146. package/src/x_ite/Browser/Geometry3D/CylinderOptions.js +6 -12
  147. package/src/x_ite/Browser/Geometry3D/IcoSphereOptions.js +13 -17
  148. package/src/x_ite/Browser/Geometry3D/QuadSphereOptions.js +17 -21
  149. package/src/x_ite/Browser/Geometry3D/X3DGeometry3DContext.js +8 -8
  150. package/src/x_ite/Browser/Geospatial/Geocentric.js +5 -6
  151. package/src/x_ite/Browser/Geospatial/Geospatial.js +10 -10
  152. package/src/x_ite/Browser/Grouping/X3DGroupingContext.js +3 -3
  153. package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator.js +2 -3
  154. package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator1.js +8 -9
  155. package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolatorTemplate.js +7 -8
  156. package/src/x_ite/Browser/Interpolation/SquatInterpolator.js +3 -4
  157. package/src/x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext.js +8 -8
  158. package/src/x_ite/Browser/Layering/X3DLayeringContext.js +4 -4
  159. package/src/x_ite/Browser/Layout/ScreenText.js +7 -8
  160. package/src/x_ite/Browser/Layout/X3DLayoutContext.js +3 -3
  161. package/src/x_ite/Browser/Legacy.js +32 -12
  162. package/src/x_ite/Browser/Lighting/X3DLightingContext.js +5 -5
  163. package/src/x_ite/Browser/NURBS/NURBS.js +10 -10
  164. package/src/x_ite/Browser/Navigation/ExamineViewer.js +32 -20
  165. package/src/x_ite/Browser/Navigation/FlyViewer.js +22 -10
  166. package/src/x_ite/Browser/Navigation/LookAtViewer.js +29 -17
  167. package/src/x_ite/Browser/Navigation/NoneViewer.js +15 -5
  168. package/src/x_ite/Browser/Navigation/PlaneViewer.js +24 -12
  169. package/src/x_ite/Browser/Navigation/WalkViewer.js +22 -10
  170. package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +17 -18
  171. package/src/x_ite/Browser/Navigation/X3DNavigationContext.js +19 -19
  172. package/src/x_ite/Browser/Navigation/X3DViewer.js +13 -19
  173. package/src/x_ite/Browser/Networking/URLs.js +5 -5
  174. package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +16 -16
  175. package/src/x_ite/Browser/ParticleSystems/X3DParticleSystemsContext.js +3 -3
  176. package/src/x_ite/Browser/Picking/VolumePicker.js +8 -8
  177. package/src/x_ite/Browser/Picking/X3DPickingContext.js +12 -12
  178. package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +24 -20
  179. package/src/x_ite/Browser/PointingDeviceSensor/PointingDeviceSensorContainer.js +6 -6
  180. package/src/x_ite/Browser/PointingDeviceSensor/X3DPointingDeviceSensorContext.js +21 -21
  181. package/src/x_ite/Browser/Rendering/GeometryContext.js +4 -5
  182. package/src/x_ite/Browser/Rendering/X3DRenderingContext.js +18 -18
  183. package/src/x_ite/Browser/Scripting/X3DScriptingContext.js +4 -4
  184. package/src/x_ite/Browser/Shaders/ShaderCompiler.js +4 -4
  185. package/src/x_ite/Browser/Shaders/ShaderSource.js +1 -1
  186. package/src/x_ite/Browser/Shaders/X3DShadersContext.js +13 -13
  187. package/src/x_ite/Browser/Shape/X3DShapeContext.js +12 -12
  188. package/src/x_ite/Browser/Sound/X3DSoundContext.js +0 -2
  189. package/src/x_ite/Browser/Text/PolygonText.js +10 -11
  190. package/src/x_ite/Browser/Text/X3DTextContext.js +6 -6
  191. package/src/x_ite/Browser/Text/X3DTextGeometry.js +18 -19
  192. package/src/x_ite/Browser/Texturing/GifMedia.js +7 -7
  193. package/src/x_ite/Browser/Texturing/X3DTexturingContext.js +24 -24
  194. package/src/x_ite/Browser/Texturing3D/DICOMParser.js +38 -38
  195. package/src/x_ite/Browser/Texturing3D/NRRDParser.js +14 -14
  196. package/src/x_ite/Browser/Time/X3DTimeContext.js +5 -5
  197. package/src/x_ite/Browser/VERSION.js +1 -1
  198. package/src/x_ite/Browser/VolumeRendering/VolumeMaterial.js +39 -22
  199. package/src/x_ite/Browser/VolumeRendering/X3DVolumeRenderingContext.js +6 -6
  200. package/src/x_ite/Browser/X3DBrowser.js +170 -136
  201. package/src/x_ite/Browser/X3DBrowserContext.js +23 -24
  202. package/src/x_ite/Components/Annotation/AnnotationLayer.js +30 -19
  203. package/src/x_ite/Components/Annotation/AnnotationTarget.js +30 -19
  204. package/src/x_ite/Components/Annotation/GroupAnnotation.js +40 -29
  205. package/src/x_ite/Components/Annotation/IconAnnotation.js +38 -27
  206. package/src/x_ite/Components/Annotation/TextAnnotation.js +31 -20
  207. package/src/x_ite/Components/Annotation/URLAnnotation.js +30 -19
  208. package/src/x_ite/Components/Annotation/X3DAnnotationNode.js +16 -3
  209. package/src/x_ite/Components/CADGeometry/CADAssembly.js +32 -21
  210. package/src/x_ite/Components/CADGeometry/CADFace.js +48 -37
  211. package/src/x_ite/Components/CADGeometry/CADLayer.js +30 -21
  212. package/src/x_ite/Components/CADGeometry/CADPart.js +37 -26
  213. package/src/x_ite/Components/CADGeometry/IndexedQuadSet.js +51 -46
  214. package/src/x_ite/Components/CADGeometry/QuadSet.js +48 -43
  215. package/src/x_ite/Components/CADGeometry/X3DProductStructureChildNode.js +13 -2
  216. package/src/x_ite/Components/Core/MetadataBoolean.js +33 -22
  217. package/src/x_ite/Components/Core/MetadataDouble.js +33 -22
  218. package/src/x_ite/Components/Core/MetadataFloat.js +33 -22
  219. package/src/x_ite/Components/Core/MetadataInteger.js +33 -22
  220. package/src/x_ite/Components/Core/MetadataSet.js +33 -22
  221. package/src/x_ite/Components/Core/MetadataString.js +33 -22
  222. package/src/x_ite/Components/Core/WorldInfo.js +34 -23
  223. package/src/x_ite/Components/Core/X3DBindableNode.js +17 -4
  224. package/src/x_ite/Components/Core/X3DChildNode.js +19 -6
  225. package/src/x_ite/Components/Core/X3DInfoNode.js +13 -2
  226. package/src/x_ite/Components/Core/X3DMetadataObject.js +18 -5
  227. package/src/x_ite/Components/Core/X3DNode.js +66 -34
  228. package/src/x_ite/Components/Core/X3DPrototypeInstance.js +68 -77
  229. package/src/x_ite/Components/Core/X3DSensorNode.js +13 -2
  230. package/src/x_ite/Components/Core.js +22 -29
  231. package/src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js +46 -35
  232. package/src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js +39 -28
  233. package/src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js +47 -36
  234. package/src/x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode.js +21 -8
  235. package/src/x_ite/Components/DIS/DISEntityManager.js +29 -20
  236. package/src/x_ite/Components/DIS/DISEntityTypeMapping.js +41 -30
  237. package/src/x_ite/Components/DIS/EspduTransform.js +117 -106
  238. package/src/x_ite/Components/DIS/ReceiverPdu.js +60 -49
  239. package/src/x_ite/Components/DIS/SignalPdu.js +60 -49
  240. package/src/x_ite/Components/DIS/TransmitterPdu.js +76 -65
  241. package/src/x_ite/Components/EnvironmentalEffects/Background.js +47 -36
  242. package/src/x_ite/Components/EnvironmentalEffects/Fog.js +42 -31
  243. package/src/x_ite/Components/EnvironmentalEffects/FogCoordinate.js +39 -28
  244. package/src/x_ite/Components/EnvironmentalEffects/LocalFog.js +40 -29
  245. package/src/x_ite/Components/EnvironmentalEffects/TextureBackground.js +48 -37
  246. package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +28 -15
  247. package/src/x_ite/Components/EnvironmentalEffects/X3DFogObject.js +30 -18
  248. package/src/x_ite/Components/EnvironmentalEffects.js +15 -22
  249. package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +45 -34
  250. package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +50 -39
  251. package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +41 -30
  252. package/src/x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode.js +22 -9
  253. package/src/x_ite/Components/EnvironmentalSensor.js +12 -19
  254. package/src/x_ite/Components/EventUtilities/BooleanFilter.js +38 -27
  255. package/src/x_ite/Components/EventUtilities/BooleanSequencer.js +38 -27
  256. package/src/x_ite/Components/EventUtilities/BooleanToggle.js +33 -22
  257. package/src/x_ite/Components/EventUtilities/BooleanTrigger.js +32 -21
  258. package/src/x_ite/Components/EventUtilities/IntegerSequencer.js +38 -27
  259. package/src/x_ite/Components/EventUtilities/IntegerTrigger.js +33 -22
  260. package/src/x_ite/Components/EventUtilities/TimeTrigger.js +32 -21
  261. package/src/x_ite/Components/EventUtilities/X3DSequencerNode.js +20 -7
  262. package/src/x_ite/Components/EventUtilities/X3DTriggerNode.js +13 -2
  263. package/src/x_ite/Components/Followers/ColorChaser.js +47 -36
  264. package/src/x_ite/Components/Followers/ColorDamper.js +49 -38
  265. package/src/x_ite/Components/Followers/CoordinateChaser.js +33 -22
  266. package/src/x_ite/Components/Followers/CoordinateDamper.js +35 -24
  267. package/src/x_ite/Components/Followers/OrientationChaser.js +43 -32
  268. package/src/x_ite/Components/Followers/OrientationDamper.js +41 -30
  269. package/src/x_ite/Components/Followers/PositionChaser.js +33 -22
  270. package/src/x_ite/Components/Followers/PositionChaser2D.js +33 -22
  271. package/src/x_ite/Components/Followers/PositionDamper.js +35 -24
  272. package/src/x_ite/Components/Followers/PositionDamper2D.js +35 -24
  273. package/src/x_ite/Components/Followers/ScalarChaser.js +47 -36
  274. package/src/x_ite/Components/Followers/ScalarDamper.js +43 -32
  275. package/src/x_ite/Components/Followers/TexCoordChaser2D.js +33 -22
  276. package/src/x_ite/Components/Followers/TexCoordDamper2D.js +35 -24
  277. package/src/x_ite/Components/Followers/X3DChaserNode.js +27 -14
  278. package/src/x_ite/Components/Followers/X3DDamperNode.js +22 -9
  279. package/src/x_ite/Components/Followers/X3DFollowerNode.js +29 -16
  280. package/src/x_ite/Components/Followers.js +25 -32
  281. package/src/x_ite/Components/Geometry2D/Arc2D.js +38 -27
  282. package/src/x_ite/Components/Geometry2D/ArcClose2D.js +39 -28
  283. package/src/x_ite/Components/Geometry2D/Circle2D.js +35 -24
  284. package/src/x_ite/Components/Geometry2D/Disk2D.js +40 -29
  285. package/src/x_ite/Components/Geometry2D/Polyline2D.js +34 -23
  286. package/src/x_ite/Components/Geometry2D/Polypoint2D.js +34 -23
  287. package/src/x_ite/Components/Geometry2D/Rectangle2D.js +34 -23
  288. package/src/x_ite/Components/Geometry2D/TriangleSet2D.js +36 -25
  289. package/src/x_ite/Components/Geometry3D/Box.js +34 -23
  290. package/src/x_ite/Components/Geometry3D/Cone.js +40 -29
  291. package/src/x_ite/Components/Geometry3D/Cylinder.js +41 -30
  292. package/src/x_ite/Components/Geometry3D/ElevationGrid.js +63 -52
  293. package/src/x_ite/Components/Geometry3D/Extrusion.js +49 -38
  294. package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +98 -95
  295. package/src/x_ite/Components/Geometry3D/Sphere.js +36 -25
  296. package/src/x_ite/Components/Geometry3D.js +15 -22
  297. package/src/x_ite/Components/Geospatial/GeoCoordinate.js +37 -26
  298. package/src/x_ite/Components/Geospatial/GeoElevationGrid.js +63 -52
  299. package/src/x_ite/Components/Geospatial/GeoLOD.js +59 -48
  300. package/src/x_ite/Components/Geospatial/GeoLocation.js +45 -34
  301. package/src/x_ite/Components/Geospatial/GeoMetadata.js +38 -27
  302. package/src/x_ite/Components/Geospatial/GeoOrigin.js +37 -26
  303. package/src/x_ite/Components/Geospatial/GeoPositionInterpolator.js +43 -32
  304. package/src/x_ite/Components/Geospatial/GeoProximitySensor.js +48 -37
  305. package/src/x_ite/Components/Geospatial/GeoTouchSensor.js +45 -34
  306. package/src/x_ite/Components/Geospatial/GeoTransform.js +49 -38
  307. package/src/x_ite/Components/Geospatial/GeoViewpoint.js +56 -45
  308. package/src/x_ite/Components/Geospatial/X3DGeospatialObject.js +30 -17
  309. package/src/x_ite/Components/Grouping/Group.js +29 -20
  310. package/src/x_ite/Components/Grouping/StaticGroup.js +40 -48
  311. package/src/x_ite/Components/Grouping/Switch.js +51 -40
  312. package/src/x_ite/Components/Grouping/Transform.js +34 -25
  313. package/src/x_ite/Components/Grouping/X3DBoundedObject.js +22 -9
  314. package/src/x_ite/Components/Grouping/X3DGroupingNode.js +224 -221
  315. package/src/x_ite/Components/Grouping/X3DTransformMatrix3DNode.js +20 -7
  316. package/src/x_ite/Components/Grouping/X3DTransformNode.js +17 -4
  317. package/src/x_ite/Components/Grouping.js +16 -23
  318. package/src/x_ite/Components/HAnim/HAnimDisplacer.js +27 -18
  319. package/src/x_ite/Components/HAnim/HAnimHumanoid.js +73 -62
  320. package/src/x_ite/Components/HAnim/HAnimJoint.js +61 -50
  321. package/src/x_ite/Components/HAnim/HAnimMotion.js +44 -33
  322. package/src/x_ite/Components/HAnim/HAnimSegment.js +36 -27
  323. package/src/x_ite/Components/HAnim/HAnimSite.js +36 -27
  324. package/src/x_ite/Components/Interpolation/ColorInterpolator.js +38 -27
  325. package/src/x_ite/Components/Interpolation/CoordinateInterpolator.js +38 -27
  326. package/src/x_ite/Components/Interpolation/CoordinateInterpolator2D.js +38 -27
  327. package/src/x_ite/Components/Interpolation/EaseInEaseOut.js +39 -28
  328. package/src/x_ite/Components/Interpolation/NormalInterpolator.js +38 -27
  329. package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +38 -27
  330. package/src/x_ite/Components/Interpolation/PositionInterpolator.js +38 -27
  331. package/src/x_ite/Components/Interpolation/PositionInterpolator2D.js +38 -27
  332. package/src/x_ite/Components/Interpolation/ScalarInterpolator.js +39 -28
  333. package/src/x_ite/Components/Interpolation/SplinePositionInterpolator.js +44 -33
  334. package/src/x_ite/Components/Interpolation/SplinePositionInterpolator2D.js +44 -33
  335. package/src/x_ite/Components/Interpolation/SplineScalarInterpolator.js +44 -33
  336. package/src/x_ite/Components/Interpolation/SquadOrientationInterpolator.js +40 -29
  337. package/src/x_ite/Components/Interpolation/X3DInterpolatorNode.js +21 -8
  338. package/src/x_ite/Components/Interpolation.js +22 -29
  339. package/src/x_ite/Components/KeyDeviceSensor/KeySensor.js +44 -33
  340. package/src/x_ite/Components/KeyDeviceSensor/StringSensor.js +38 -27
  341. package/src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js +23 -10
  342. package/src/x_ite/Components/Layering/Layer.js +40 -29
  343. package/src/x_ite/Components/Layering/LayerSet.js +44 -33
  344. package/src/x_ite/Components/Layering/Viewport.js +48 -37
  345. package/src/x_ite/Components/Layering/X3DLayerNode.js +45 -32
  346. package/src/x_ite/Components/Layering/X3DViewportNode.js +13 -2
  347. package/src/x_ite/Components/Layering.js +13 -20
  348. package/src/x_ite/Components/Layout/Layout.js +60 -49
  349. package/src/x_ite/Components/Layout/LayoutGroup.js +48 -37
  350. package/src/x_ite/Components/Layout/LayoutLayer.js +41 -30
  351. package/src/x_ite/Components/Layout/ScreenFontStyle.js +41 -30
  352. package/src/x_ite/Components/Layout/ScreenGroup.js +42 -31
  353. package/src/x_ite/Components/Layout/X3DLayoutNode.js +13 -2
  354. package/src/x_ite/Components/Lighting/DirectionalLight.js +45 -35
  355. package/src/x_ite/Components/Lighting/EnvironmentLight.js +51 -41
  356. package/src/x_ite/Components/Lighting/PointLight.js +53 -43
  357. package/src/x_ite/Components/Lighting/SpotLight.js +62 -52
  358. package/src/x_ite/Components/Lighting/X3DLightNode.js +29 -16
  359. package/src/x_ite/Components/Lighting.js +13 -20
  360. package/src/x_ite/Components/NURBS/Contour2D.js +45 -45
  361. package/src/x_ite/Components/NURBS/ContourPolyline2D.js +34 -23
  362. package/src/x_ite/Components/NURBS/CoordinateDouble.js +23 -14
  363. package/src/x_ite/Components/NURBS/NurbsCurve.js +47 -36
  364. package/src/x_ite/Components/NURBS/NurbsCurve2D.js +44 -33
  365. package/src/x_ite/Components/NURBS/NurbsOrientationInterpolator.js +46 -35
  366. package/src/x_ite/Components/NURBS/NurbsPatchSurface.js +36 -27
  367. package/src/x_ite/Components/NURBS/NurbsPositionInterpolator.js +46 -35
  368. package/src/x_ite/Components/NURBS/NurbsSet.js +52 -52
  369. package/src/x_ite/Components/NURBS/NurbsSurfaceInterpolator.js +44 -33
  370. package/src/x_ite/Components/NURBS/NurbsSweptSurface.js +40 -29
  371. package/src/x_ite/Components/NURBS/NurbsSwungSurface.js +40 -29
  372. package/src/x_ite/Components/NURBS/NurbsTextureCoordinate.js +43 -32
  373. package/src/x_ite/Components/NURBS/NurbsTrimmedSurface.js +59 -59
  374. package/src/x_ite/Components/NURBS/X3DNurbsControlCurveNode.js +13 -2
  375. package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +30 -17
  376. package/src/x_ite/Components/NURBS/X3DParametricGeometryNode.js +16 -3
  377. package/src/x_ite/Components/Navigation/Billboard.js +43 -32
  378. package/src/x_ite/Components/Navigation/Collision.js +49 -38
  379. package/src/x_ite/Components/Navigation/LOD.js +54 -43
  380. package/src/x_ite/Components/Navigation/NavigationInfo.js +58 -47
  381. package/src/x_ite/Components/Navigation/OrthoViewpoint.js +69 -58
  382. package/src/x_ite/Components/Navigation/Viewpoint.js +53 -42
  383. package/src/x_ite/Components/Navigation/ViewpointGroup.js +44 -33
  384. package/src/x_ite/Components/Navigation/X3DViewpointNode.js +48 -35
  385. package/src/x_ite/Components/Navigation.js +16 -23
  386. package/src/x_ite/Components/Networking/Anchor.js +51 -40
  387. package/src/x_ite/Components/Networking/Inline.js +54 -43
  388. package/src/x_ite/Components/Networking/LoadSensor.js +49 -38
  389. package/src/x_ite/Components/Networking/X3DNetworkSensorNode.js +13 -2
  390. package/src/x_ite/Components/Networking/X3DUrlObject.js +35 -22
  391. package/src/x_ite/Components/Networking.js +13 -20
  392. package/src/x_ite/Components/ParticleSystems/BoundedPhysicsModel.js +37 -26
  393. package/src/x_ite/Components/ParticleSystems/ConeEmitter.js +44 -33
  394. package/src/x_ite/Components/ParticleSystems/ExplosionEmitter.js +41 -30
  395. package/src/x_ite/Components/ParticleSystems/ForcePhysicsModel.js +34 -23
  396. package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +83 -72
  397. package/src/x_ite/Components/ParticleSystems/PointEmitter.js +41 -30
  398. package/src/x_ite/Components/ParticleSystems/PolylineEmitter.js +42 -31
  399. package/src/x_ite/Components/ParticleSystems/SurfaceEmitter.js +42 -31
  400. package/src/x_ite/Components/ParticleSystems/VolumeEmitter.js +43 -32
  401. package/src/x_ite/Components/ParticleSystems/WindPhysicsModel.js +38 -27
  402. package/src/x_ite/Components/ParticleSystems/X3DParticleEmitterNode.js +33 -20
  403. package/src/x_ite/Components/ParticleSystems/X3DParticlePhysicsModelNode.js +16 -3
  404. package/src/x_ite/Components/Picking/LinePickSensor.js +49 -38
  405. package/src/x_ite/Components/Picking/PickableGroup.js +45 -34
  406. package/src/x_ite/Components/Picking/PointPickSensor.js +46 -35
  407. package/src/x_ite/Components/Picking/PrimitivePickSensor.js +46 -35
  408. package/src/x_ite/Components/Picking/VolumePickSensor.js +45 -34
  409. package/src/x_ite/Components/Picking/X3DPickSensorNode.js +31 -18
  410. package/src/x_ite/Components/Picking/X3DPickableObject.js +20 -7
  411. package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +50 -39
  412. package/src/x_ite/Components/PointingDeviceSensor/PlaneSensor.js +52 -45
  413. package/src/x_ite/Components/PointingDeviceSensor/SphereSensor.js +44 -33
  414. package/src/x_ite/Components/PointingDeviceSensor/TouchSensor.js +30 -21
  415. package/src/x_ite/Components/PointingDeviceSensor/X3DDragSensorNode.js +13 -2
  416. package/src/x_ite/Components/PointingDeviceSensor/X3DPointingDeviceSensorNode.js +22 -11
  417. package/src/x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode.js +16 -3
  418. package/src/x_ite/Components/PointingDeviceSensor.js +15 -22
  419. package/src/x_ite/Components/Rendering/ClipPlane.js +44 -34
  420. package/src/x_ite/Components/Rendering/Color.js +37 -26
  421. package/src/x_ite/Components/Rendering/ColorRGBA.js +37 -26
  422. package/src/x_ite/Components/Rendering/Coordinate.js +23 -14
  423. package/src/x_ite/Components/Rendering/IndexedLineSet.js +52 -41
  424. package/src/x_ite/Components/Rendering/IndexedTriangleFanSet.js +48 -37
  425. package/src/x_ite/Components/Rendering/IndexedTriangleSet.js +44 -33
  426. package/src/x_ite/Components/Rendering/IndexedTriangleStripSet.js +48 -37
  427. package/src/x_ite/Components/Rendering/LineSet.js +45 -34
  428. package/src/x_ite/Components/Rendering/Normal.js +39 -28
  429. package/src/x_ite/Components/Rendering/PointSet.js +45 -34
  430. package/src/x_ite/Components/Rendering/TriangleFanSet.js +47 -36
  431. package/src/x_ite/Components/Rendering/TriangleSet.js +41 -30
  432. package/src/x_ite/Components/Rendering/TriangleStripSet.js +47 -36
  433. package/src/x_ite/Components/Rendering/X3DColorNode.js +17 -4
  434. package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +33 -20
  435. package/src/x_ite/Components/Rendering/X3DCoordinateNode.js +23 -10
  436. package/src/x_ite/Components/Rendering/X3DGeometricPropertyNode.js +13 -2
  437. package/src/x_ite/Components/Rendering/X3DGeometryNode.js +96 -80
  438. package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +21 -8
  439. package/src/x_ite/Components/Rendering/X3DNormalNode.js +13 -2
  440. package/src/x_ite/Components/Rendering/X3DPointGeometryNode.js +20 -7
  441. package/src/x_ite/Components/Rendering.js +29 -36
  442. package/src/x_ite/Components/RigidBodyPhysics/BallJoint.js +43 -32
  443. package/src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js +48 -37
  444. package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +52 -41
  445. package/src/x_ite/Components/RigidBodyPhysics/CollisionCollection.js +47 -36
  446. package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +41 -30
  447. package/src/x_ite/Components/RigidBodyPhysics/CollisionSpace.js +44 -33
  448. package/src/x_ite/Components/RigidBodyPhysics/Contact.js +38 -29
  449. package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +60 -49
  450. package/src/x_ite/Components/RigidBodyPhysics/MotorJoint.js +48 -39
  451. package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +69 -58
  452. package/src/x_ite/Components/RigidBodyPhysics/RigidBodyCollection.js +61 -50
  453. package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +49 -38
  454. package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +47 -36
  455. package/src/x_ite/Components/RigidBodyPhysics/UniversalJoint.js +36 -27
  456. package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode.js +24 -11
  457. package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollisionSpaceNode.js +17 -4
  458. package/src/x_ite/Components/RigidBodyPhysics/X3DRigidJointNode.js +34 -21
  459. package/src/x_ite/Components/Scripting/Script.js +83 -53
  460. package/src/x_ite/Components/Scripting/X3DScriptNode.js +17 -4
  461. package/src/x_ite/Components/Shaders/ComposedShader.js +46 -35
  462. package/src/x_ite/Components/Shaders/FloatVertexAttribute.js +40 -29
  463. package/src/x_ite/Components/Shaders/Matrix3VertexAttribute.js +38 -27
  464. package/src/x_ite/Components/Shaders/Matrix4VertexAttribute.js +38 -27
  465. package/src/x_ite/Components/Shaders/PackagedShader.js +45 -34
  466. package/src/x_ite/Components/Shaders/ProgramShader.js +27 -18
  467. package/src/x_ite/Components/Shaders/ShaderPart.js +47 -36
  468. package/src/x_ite/Components/Shaders/ShaderProgram.js +42 -31
  469. package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +51 -38
  470. package/src/x_ite/Components/Shaders/X3DShaderNode.js +19 -6
  471. package/src/x_ite/Components/Shaders/X3DVertexAttributeNode.js +17 -4
  472. package/src/x_ite/Components/Shaders.js +19 -26
  473. package/src/x_ite/Components/Shape/AcousticProperties.js +28 -19
  474. package/src/x_ite/Components/Shape/Appearance.js +79 -68
  475. package/src/x_ite/Components/Shape/FillProperties.js +44 -33
  476. package/src/x_ite/Components/Shape/LineProperties.js +44 -33
  477. package/src/x_ite/Components/Shape/Material.js +75 -64
  478. package/src/x_ite/Components/Shape/PhysicalMaterial.js +65 -54
  479. package/src/x_ite/Components/Shape/PointProperties.js +43 -32
  480. package/src/x_ite/Components/Shape/Shape.js +48 -37
  481. package/src/x_ite/Components/Shape/TwoSidedMaterial.js +60 -49
  482. package/src/x_ite/Components/Shape/UnlitMaterial.js +44 -33
  483. package/src/x_ite/Components/Shape/X3DAppearanceChildNode.js +13 -2
  484. package/src/x_ite/Components/Shape/X3DAppearanceNode.js +17 -4
  485. package/src/x_ite/Components/Shape/X3DMaterialNode.js +41 -33
  486. package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +29 -16
  487. package/src/x_ite/Components/Shape/X3DShapeNode.js +28 -15
  488. package/src/x_ite/Components/Shape.js +23 -30
  489. package/src/x_ite/Components/Sound/Analyser.js +46 -37
  490. package/src/x_ite/Components/Sound/AudioClip.js +61 -50
  491. package/src/x_ite/Components/Sound/AudioDestination.js +35 -26
  492. package/src/x_ite/Components/Sound/BiquadFilter.js +45 -36
  493. package/src/x_ite/Components/Sound/BufferAudioSource.js +61 -50
  494. package/src/x_ite/Components/Sound/ChannelMerger.js +32 -23
  495. package/src/x_ite/Components/Sound/ChannelSelector.js +33 -24
  496. package/src/x_ite/Components/Sound/ChannelSplitter.js +33 -24
  497. package/src/x_ite/Components/Sound/Convolver.js +43 -34
  498. package/src/x_ite/Components/Sound/Delay.js +43 -34
  499. package/src/x_ite/Components/Sound/DynamicsCompressor.js +47 -38
  500. package/src/x_ite/Components/Sound/Gain.js +41 -32
  501. package/src/x_ite/Components/Sound/ListenerPointSource.js +39 -30
  502. package/src/x_ite/Components/Sound/MicrophoneSource.js +35 -26
  503. package/src/x_ite/Components/Sound/OscillatorSource.js +37 -28
  504. package/src/x_ite/Components/Sound/PeriodicWave.js +27 -18
  505. package/src/x_ite/Components/Sound/Sound.js +51 -40
  506. package/src/x_ite/Components/Sound/SpatialSound.js +42 -33
  507. package/src/x_ite/Components/Sound/StreamAudioDestination.js +35 -26
  508. package/src/x_ite/Components/Sound/StreamAudioSource.js +35 -26
  509. package/src/x_ite/Components/Sound/WaveShaper.js +43 -34
  510. package/src/x_ite/Components/Sound/X3DSoundChannelNode.js +13 -2
  511. package/src/x_ite/Components/Sound/X3DSoundDestinationNode.js +13 -2
  512. package/src/x_ite/Components/Sound/X3DSoundNode.js +13 -2
  513. package/src/x_ite/Components/Sound/X3DSoundProcessingNode.js +17 -4
  514. package/src/x_ite/Components/Sound/X3DSoundSourceNode.js +30 -17
  515. package/src/x_ite/Components/Sound.js +34 -41
  516. package/src/x_ite/Components/Text/FontStyle.js +37 -26
  517. package/src/x_ite/Components/Text/Text.js +50 -39
  518. package/src/x_ite/Components/Text/X3DFontStyleNode.js +32 -18
  519. package/src/x_ite/Components/TextureProjector/TextureProjector.js +49 -39
  520. package/src/x_ite/Components/TextureProjector/TextureProjectorParallel.js +58 -48
  521. package/src/x_ite/Components/TextureProjector/X3DTextureProjectorNode.js +27 -14
  522. package/src/x_ite/Components/Texturing/ImageTexture.js +50 -39
  523. package/src/x_ite/Components/Texturing/MovieTexture.js +67 -56
  524. package/src/x_ite/Components/Texturing/MultiTexture.js +52 -41
  525. package/src/x_ite/Components/Texturing/MultiTextureCoordinate.js +44 -33
  526. package/src/x_ite/Components/Texturing/MultiTextureTransform.js +39 -28
  527. package/src/x_ite/Components/Texturing/PixelTexture.js +42 -31
  528. package/src/x_ite/Components/Texturing/TextureCoordinate.js +41 -30
  529. package/src/x_ite/Components/Texturing/TextureCoordinateGenerator.js +41 -30
  530. package/src/x_ite/Components/Texturing/TextureProperties.js +47 -36
  531. package/src/x_ite/Components/Texturing/TextureTransform.js +39 -28
  532. package/src/x_ite/Components/Texturing/X3DSingleTextureCoordinateNode.js +20 -7
  533. package/src/x_ite/Components/Texturing/X3DSingleTextureNode.js +21 -8
  534. package/src/x_ite/Components/Texturing/X3DSingleTextureTransformNode.js +20 -7
  535. package/src/x_ite/Components/Texturing/X3DTexture2DNode.js +26 -13
  536. package/src/x_ite/Components/Texturing/X3DTextureCoordinateNode.js +13 -2
  537. package/src/x_ite/Components/Texturing/X3DTextureNode.js +17 -4
  538. package/src/x_ite/Components/Texturing/X3DTextureTransformNode.js +13 -2
  539. package/src/x_ite/Components/Texturing.js +25 -32
  540. package/src/x_ite/Components/Texturing3D/ComposedTexture3D.js +44 -33
  541. package/src/x_ite/Components/Texturing3D/ImageTexture3D.js +46 -35
  542. package/src/x_ite/Components/Texturing3D/ImageTextureAtlas.js +54 -43
  543. package/src/x_ite/Components/Texturing3D/PixelTexture3D.js +40 -29
  544. package/src/x_ite/Components/Texturing3D/TextureCoordinate3D.js +41 -30
  545. package/src/x_ite/Components/Texturing3D/TextureCoordinate4D.js +41 -30
  546. package/src/x_ite/Components/Texturing3D/TextureTransform3D.js +39 -28
  547. package/src/x_ite/Components/Texturing3D/TextureTransformMatrix3D.js +36 -25
  548. package/src/x_ite/Components/Texturing3D/X3DTexture3DNode.js +26 -13
  549. package/src/x_ite/Components/Time/TimeSensor.js +55 -44
  550. package/src/x_ite/Components/Time/X3DTimeDependentNode.js +38 -25
  551. package/src/x_ite/Components/Time.js +10 -17
  552. package/src/x_ite/Components/VolumeRendering/BlendedVolumeStyle.js +51 -41
  553. package/src/x_ite/Components/VolumeRendering/BoundaryEnhancementVolumeStyle.js +39 -28
  554. package/src/x_ite/Components/VolumeRendering/CartoonVolumeStyle.js +42 -31
  555. package/src/x_ite/Components/VolumeRendering/ComposedVolumeStyle.js +41 -30
  556. package/src/x_ite/Components/VolumeRendering/EdgeEnhancementVolumeStyle.js +41 -30
  557. package/src/x_ite/Components/VolumeRendering/IsoSurfaceVolumeData.js +50 -39
  558. package/src/x_ite/Components/VolumeRendering/OpacityMapVolumeStyle.js +39 -28
  559. package/src/x_ite/Components/VolumeRendering/ProjectionVolumeStyle.js +38 -27
  560. package/src/x_ite/Components/VolumeRendering/SegmentedVolumeData.js +49 -38
  561. package/src/x_ite/Components/VolumeRendering/ShadedVolumeStyle.js +44 -33
  562. package/src/x_ite/Components/VolumeRendering/SilhouetteEnhancementVolumeStyle.js +42 -31
  563. package/src/x_ite/Components/VolumeRendering/ToneMappedVolumeStyle.js +41 -30
  564. package/src/x_ite/Components/VolumeRendering/VolumeData.js +45 -34
  565. package/src/x_ite/Components/VolumeRendering/X3DComposableVolumeRenderStyleNode.js +13 -2
  566. package/src/x_ite/Components/VolumeRendering/X3DVolumeDataNode.js +25 -12
  567. package/src/x_ite/Components/VolumeRendering/X3DVolumeRenderStyleNode.js +22 -9
  568. package/src/x_ite/Components/X_ITE/BlendMode.js +48 -37
  569. package/src/x_ite/Components.js +38 -14
  570. package/src/x_ite/Configuration/AbstractNodes.js +50 -0
  571. package/src/x_ite/{Fallback.js → Configuration/AbstractNodesArray.js} +22 -29
  572. package/src/x_ite/Configuration/ComponentInfo.js +14 -10
  573. package/src/x_ite/Configuration/ComponentInfoArray.js +14 -10
  574. package/src/x_ite/Configuration/ConcreteNodes.js +50 -0
  575. package/src/x_ite/Configuration/{SupportedNodes.js → ConcreteNodesArray.js} +26 -40
  576. package/src/x_ite/Configuration/ProfileInfo.js +13 -9
  577. package/src/x_ite/Configuration/ProfileInfoArray.js +14 -13
  578. package/src/x_ite/Configuration/SupportedComponents.js +40 -78
  579. package/src/x_ite/Configuration/SupportedProfiles.js +16 -16
  580. package/src/x_ite/Configuration/UnitInfo.js +14 -10
  581. package/src/x_ite/Configuration/UnitInfoArray.js +10 -21
  582. package/src/x_ite/Execution/BindableList.js +14 -10
  583. package/src/x_ite/Execution/BindableStack.js +14 -10
  584. package/src/x_ite/Execution/ExportedNodesArray.js +11 -9
  585. package/src/x_ite/Execution/ImportedNodesArray.js +11 -9
  586. package/src/x_ite/Execution/NamedNodesArray.js +11 -22
  587. package/src/x_ite/Execution/X3DExecutionContext.js +181 -152
  588. package/src/x_ite/Execution/X3DExportedNode.js +18 -10
  589. package/src/x_ite/Execution/X3DImportedNode.js +35 -22
  590. package/src/x_ite/Execution/X3DScene.js +93 -64
  591. package/src/x_ite/Execution/X3DWorld.js +21 -17
  592. package/src/x_ite/Fields/ArrayFields.js +87 -153
  593. package/src/x_ite/Fields/SFBool.js +21 -25
  594. package/src/x_ite/Fields/SFColor.js +43 -39
  595. package/src/x_ite/Fields/SFColorRGBA.js +39 -35
  596. package/src/x_ite/Fields/SFDouble.js +20 -21
  597. package/src/x_ite/Fields/SFFloat.js +20 -21
  598. package/src/x_ite/Fields/SFImage.js +50 -48
  599. package/src/x_ite/Fields/SFInt32.js +20 -21
  600. package/src/x_ite/Fields/SFMatrix3.js +23 -16
  601. package/src/x_ite/Fields/SFMatrix4.js +24 -17
  602. package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +31 -31
  603. package/src/x_ite/Fields/SFNode.js +57 -88
  604. package/src/x_ite/Fields/SFNodeCache.js +7 -11
  605. package/src/x_ite/Fields/SFRotation.js +73 -62
  606. package/src/x_ite/Fields/SFString.js +35 -36
  607. package/src/x_ite/Fields/SFTime.js +20 -21
  608. package/src/x_ite/Fields/SFVec2.js +17 -14
  609. package/src/x_ite/Fields/SFVec3.js +20 -17
  610. package/src/x_ite/Fields/SFVec4.js +21 -18
  611. package/src/x_ite/Fields/SFVecPrototypeTemplate.js +36 -36
  612. package/src/x_ite/Fields.js +6 -13
  613. package/src/x_ite/InputOutput/FileLoader.js +36 -40
  614. package/src/x_ite/InputOutput/Generator.js +50 -51
  615. package/src/x_ite/Parser/GLB2Parser.js +12 -13
  616. package/src/x_ite/Parser/GLTF2Parser.js +111 -112
  617. package/src/x_ite/Parser/GoldenGate.js +11 -13
  618. package/src/x_ite/Parser/HTMLSupport.js +15 -5
  619. package/src/x_ite/Parser/JSONParser.js +21 -22
  620. package/src/x_ite/Parser/OBJParser.js +56 -57
  621. package/src/x_ite/Parser/STLAParser.js +22 -23
  622. package/src/x_ite/Parser/STLBParser.js +12 -13
  623. package/src/x_ite/Parser/SVGParser.js +85 -86
  624. package/src/x_ite/Parser/VRMLParser.js +495 -878
  625. package/src/x_ite/Parser/X3DOptimizer.js +7 -7
  626. package/src/x_ite/Parser/X3DParser.js +17 -17
  627. package/src/x_ite/Parser/XMLParser.js +215 -269
  628. package/src/x_ite/Prototype/ExternProtoDeclarationArray.js +11 -9
  629. package/src/x_ite/Prototype/ProtoDeclarationArray.js +11 -9
  630. package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +35 -27
  631. package/src/x_ite/Prototype/X3DProtoDeclaration.js +28 -20
  632. package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +18 -10
  633. package/src/x_ite/Rendering/DependentRenderer.js +11 -12
  634. package/src/x_ite/Rendering/MultiSampleFrameBuffer.js +9 -10
  635. package/src/x_ite/Rendering/PointingBuffer.js +6 -7
  636. package/src/x_ite/Rendering/TextureBuffer.js +11 -12
  637. package/src/x_ite/Rendering/VertexArray.js +5 -5
  638. package/src/x_ite/Rendering/X3DRenderObject.js +51 -52
  639. package/src/x_ite/Routing/RouteArray.js +11 -9
  640. package/src/x_ite/Routing/X3DRoute.js +35 -19
  641. package/src/x_ite/Routing/X3DRoutingContext.js +8 -9
  642. package/src/x_ite/X3D.js +27 -26
  643. package/src/x_ite/X3DCanvasElement.js +18 -7
  644. package/src/x_ite.css +2 -1
  645. package/webpack.config.js +2 -2
  646. /package/src/x_ite/{DEBUG.js → DEVELOPMENT.js} +0 -0
@@ -1,11 +1,11 @@
1
- /* X_ITE v8.7.8 */(() => { // webpackBootstrap
1
+ /* X_ITE v8.8.0 */(() => { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
4
  /***/ 355:
5
5
  /***/ ((module) => {
6
6
 
7
7
  "use strict";
8
- module.exports = window [Symbol .for ("X_ITE.X3D-8.7.8")] .require ("lib/jquery");
8
+ module.exports = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("lib/jquery");
9
9
 
10
10
  /***/ }),
11
11
 
@@ -88,31 +88,31 @@ var __webpack_exports__ = {};
88
88
  // UNUSED EXPORTS: default
89
89
 
90
90
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
91
- const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.8")] .require ("x_ite/Components");
91
+ const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components");
92
92
  var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
93
93
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
94
- const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.8")] .require ("x_ite/Fields");
94
+ const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Fields");
95
95
  var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
96
96
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
97
- const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.8")] .require ("x_ite/Base/X3DFieldDefinition");
97
+ const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Base/X3DFieldDefinition");
98
98
  var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
99
99
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
100
- const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.8")] .require ("x_ite/Base/FieldDefinitionArray");
100
+ const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Base/FieldDefinitionArray");
101
101
  var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
102
102
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DNode\")"
103
- const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.8")] .require ("x_ite/Components/Core/X3DNode");
103
+ const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components/Core/X3DNode");
104
104
  var X3DNode_default = /*#__PURE__*/__webpack_require__.n(X3DNode_namespaceObject);
105
105
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
106
- const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.8")] .require ("x_ite/Base/X3DConstants");
106
+ const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Base/X3DConstants");
107
107
  var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
108
108
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
109
- const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.8")] .require ("x_ite/Base/X3DCast");
109
+ const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Base/X3DCast");
110
110
  var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
111
111
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
112
- const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.8")] .require ("standard/Math/Numbers/Matrix4");
112
+ const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("standard/Math/Numbers/Matrix4");
113
113
  var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
114
114
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
115
- const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.8")] .require ("x_ite/Namespace");
115
+ const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Namespace");
116
116
  var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
117
117
  ;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/X3DRigidJointNode.js
118
118
  /*******************************************************************************
@@ -183,12 +183,11 @@ function X3DRigidJointNode (executionContext)
183
183
  this .output = false;
184
184
  }
185
185
 
186
- X3DRigidJointNode .prototype = Object .assign (Object .create ((X3DNode_default()).prototype),
186
+ Object .assign (Object .setPrototypeOf (X3DRigidJointNode .prototype, (X3DNode_default()).prototype),
187
187
  {
188
- constructor: X3DRigidJointNode,
189
- initialize: function ()
188
+ initialize ()
190
189
  {
191
- X3DNode_default().prototype.initialize.call (this);
190
+ X3DNode_default().prototype .initialize .call (this);
192
191
 
193
192
  this ._forceOutput .addInterest ("set_forceOutput__", this);
194
193
  this ._body1 .addInterest ("set_body1__", this);
@@ -198,7 +197,7 @@ X3DRigidJointNode .prototype = Object .assign (Object .create ((X3DNode_default(
198
197
  this .set_body1__ ();
199
198
  this .set_body2__ ();
200
199
  },
201
- setCollection: function (value)
200
+ setCollection (value)
202
201
  {
203
202
  this .removeJoint ();
204
203
 
@@ -206,27 +205,27 @@ X3DRigidJointNode .prototype = Object .assign (Object .create ((X3DNode_default(
206
205
 
207
206
  this .addJoint ();
208
207
  },
209
- getCollection: function ()
208
+ getCollection ()
210
209
  {
211
210
  return this ._collection .getValue ();
212
211
  },
213
- getBody1: function ()
212
+ getBody1 ()
214
213
  {
215
214
  return this .bodyNode1;
216
215
  },
217
- getBody2: function ()
216
+ getBody2 ()
218
217
  {
219
218
  return this .bodyNode2;
220
219
  },
221
- getInitialInverseMatrix1: function ()
220
+ getInitialInverseMatrix1 ()
222
221
  {
223
222
  return this .initialInverseMatrix1;
224
223
  },
225
- getInitialInverseMatrix2: function ()
224
+ getInitialInverseMatrix2 ()
226
225
  {
227
226
  return this .initialInverseMatrix2;
228
227
  },
229
- setOutput: function (value)
228
+ setOutput (value)
230
229
  {
231
230
  this .output = value;
232
231
 
@@ -247,18 +246,18 @@ X3DRigidJointNode .prototype = Object .assign (Object .create ((X3DNode_default(
247
246
  this .bodyNode2 .removeInterest ("update2", this);
248
247
  }
249
248
  },
250
- addJoint: function ()
249
+ addJoint ()
251
250
  { },
252
- removeJoint: function ()
251
+ removeJoint ()
253
252
  { },
254
- set_forceOutput__: function ()
253
+ set_forceOutput__ ()
255
254
  { },
256
- set_joint__: function ()
255
+ set_joint__ ()
257
256
  {
258
257
  this .removeJoint ();
259
258
  this .addJoint ();
260
259
  },
261
- set_body1__: function ()
260
+ set_body1__ ()
262
261
  {
263
262
  this .removeJoint ();
264
263
 
@@ -279,7 +278,7 @@ X3DRigidJointNode .prototype = Object .assign (Object .create ((X3DNode_default(
279
278
  this .setOutput (this .output);
280
279
  }
281
280
  },
282
- set_body2__: function ()
281
+ set_body2__ ()
283
282
  {
284
283
  this .removeJoint ();
285
284
 
@@ -300,25 +299,39 @@ X3DRigidJointNode .prototype = Object .assign (Object .create ((X3DNode_default(
300
299
  this .setOutput (this .output);
301
300
  }
302
301
  },
303
- initialize1: function ()
302
+ initialize1 ()
304
303
  {
305
304
  this .initialInverseMatrix1 .set (this .bodyNode1 ._position .getValue (), this .bodyNode1 ._orientation .getValue ());
306
305
  this .initialInverseMatrix1 .inverse ();
307
306
  },
308
- initialize2: function ()
307
+ initialize2 ()
309
308
  {
310
309
  this .initialInverseMatrix2 .set (this .bodyNode2 ._position .getValue (), this .bodyNode2 ._orientation .getValue ());
311
310
  this .initialInverseMatrix2 .inverse ();
312
311
  },
313
- update1: function ()
312
+ update1 ()
314
313
  { },
315
- update2: function ()
314
+ update2 ()
316
315
  { },
317
- dispose: function ()
316
+ dispose ()
318
317
  {
319
318
  this .removeJoint ();
320
319
 
321
- X3DNode_default().prototype.dispose.call (this);
320
+ X3DNode_default().prototype .dispose .call (this);
321
+ },
322
+ });
323
+
324
+ Object .defineProperties (X3DRigidJointNode,
325
+ {
326
+ typeName:
327
+ {
328
+ value: "X3DRigidJointNode",
329
+ enumerable: true,
330
+ },
331
+ componentName:
332
+ {
333
+ value: "RigidBodyPhysics",
334
+ enumerable: true,
322
335
  },
323
336
  });
324
337
 
@@ -328,7 +341,7 @@ const __default__ = X3DRigidJointNode;
328
341
  Namespace_default().set ("x_ite/Components/RigidBodyPhysics/X3DRigidJointNode", __default__);
329
342
  /* harmony default export */ const RigidBodyPhysics_X3DRigidJointNode = (__default__);
330
343
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
331
- const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.8")] .require ("standard/Math/Numbers/Vector3");
344
+ const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("standard/Math/Numbers/Vector3");
332
345
  var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
333
346
  ;// CONCATENATED MODULE: ./src/lib/ammojs/ammo.js
334
347
  var ammo_dirname = "/";
@@ -485,7 +498,7 @@ Namespace_default().set ("lib/ammojs/AmmoClass", AmmoClass_default_);
485
498
 
486
499
  function BallJoint (executionContext)
487
500
  {
488
- RigidBodyPhysics_X3DRigidJointNode.call (this, executionContext);
501
+ RigidBodyPhysics_X3DRigidJointNode .call (this, executionContext);
489
502
 
490
503
  this .addType ((X3DConstants_default()).BallJoint);
491
504
 
@@ -497,41 +510,15 @@ function BallJoint (executionContext)
497
510
  this .localAnchorPoint2 = new (Vector3_default()) (0, 0, 0);
498
511
  }
499
512
 
500
- BallJoint .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DRigidJointNode.prototype),
513
+ Object .assign (Object .setPrototypeOf (BallJoint .prototype, RigidBodyPhysics_X3DRigidJointNode .prototype),
501
514
  {
502
- constructor: BallJoint,
503
- [Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
504
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
505
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "forceOutput", new (Fields_default()).MFString ("NONE")),
506
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "anchorPoint", new (Fields_default()).SFVec3f ()),
507
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body1AnchorPoint", new (Fields_default()).SFVec3f ()),
508
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body2AnchorPoint", new (Fields_default()).SFVec3f ()),
509
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body1", new (Fields_default()).SFNode ()),
510
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body2", new (Fields_default()).SFNode ()),
511
- ]),
512
- getTypeName: function ()
513
- {
514
- return "BallJoint";
515
- },
516
- getComponentName: function ()
517
- {
518
- return "RigidBodyPhysics";
519
- },
520
- getContainerField: function ()
521
- {
522
- return "joints";
523
- },
524
- getSpecificationRange: function ()
525
- {
526
- return ["3.2", "Infinity"];
527
- },
528
- initialize: function ()
515
+ initialize ()
529
516
  {
530
- RigidBodyPhysics_X3DRigidJointNode.prototype.initialize.call (this);
517
+ RigidBodyPhysics_X3DRigidJointNode .prototype .initialize .call (this);
531
518
 
532
519
  this ._anchorPoint .addInterest ("set_anchorPoint__", this);
533
520
  },
534
- addJoint: function ()
521
+ addJoint ()
535
522
  {
536
523
  if (!this .getCollection ())
537
524
  return;
@@ -548,16 +535,16 @@ BallJoint .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DRigid
548
535
  if (this .getBody2 () .getCollection () !== this .getCollection ())
549
536
  return;
550
537
 
551
- this .joint = new AmmoClass.btPoint2PointConstraint (this .getBody1 () .getRigidBody (),
538
+ this .joint = new AmmoClass .btPoint2PointConstraint (this .getBody1 () .getRigidBody (),
552
539
  this .getBody2 () .getRigidBody (),
553
- new AmmoClass.btVector3 (),
554
- new AmmoClass.btVector3 ());
540
+ new AmmoClass .btVector3 (),
541
+ new AmmoClass .btVector3 ());
555
542
 
556
543
  this .set_anchorPoint__ ();
557
544
 
558
545
  this .getCollection () .getDynamicsWorld () .addConstraint (this .joint, true);
559
546
  },
560
- removeJoint: function ()
547
+ removeJoint ()
561
548
  {
562
549
  if (!this .joint)
563
550
  return;
@@ -565,10 +552,10 @@ BallJoint .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DRigid
565
552
  if (this .getCollection ())
566
553
  this .getCollection () .getDynamicsWorld () .removeConstraint (this .joint);
567
554
 
568
- AmmoClass.destroy (this .joint);
555
+ AmmoClass .destroy (this .joint);
569
556
  this .joint = null;
570
557
  },
571
- set_forceOutput__: function ()
558
+ set_forceOutput__ ()
572
559
  {
573
560
  for (var key in this .outputs)
574
561
  delete this .outputs [key];
@@ -590,7 +577,7 @@ BallJoint .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DRigid
590
577
 
591
578
  this .setOutput (!$.isEmptyObject (this .outputs));
592
579
  },
593
- set_anchorPoint__: function ()
580
+ set_anchorPoint__ ()
594
581
  {
595
582
  if (this .joint)
596
583
  {
@@ -601,8 +588,8 @@ BallJoint .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DRigid
601
588
  this .getInitialInverseMatrix1 () .multVecMatrix (localAnchorPoint1 .assign (this ._anchorPoint .getValue ()));
602
589
  this .getInitialInverseMatrix2 () .multVecMatrix (localAnchorPoint2 .assign (this ._anchorPoint .getValue ()));
603
590
 
604
- this .joint .setPivotA (new AmmoClass.btVector3 (localAnchorPoint1 .x, localAnchorPoint1 .y, localAnchorPoint1 .z));
605
- this .joint .setPivotB (new AmmoClass.btVector3 (localAnchorPoint2 .x, localAnchorPoint2 .y, localAnchorPoint2 .z));
591
+ this .joint .setPivotA (new AmmoClass .btVector3 (localAnchorPoint1 .x, localAnchorPoint1 .y, localAnchorPoint1 .z));
592
+ this .joint .setPivotB (new AmmoClass .btVector3 (localAnchorPoint2 .x, localAnchorPoint2 .y, localAnchorPoint2 .z));
606
593
  }
607
594
  },
608
595
  update1: (function ()
@@ -627,16 +614,53 @@ BallJoint .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DRigid
627
614
  })(),
628
615
  });
629
616
 
617
+ Object .defineProperties (BallJoint,
618
+ {
619
+ typeName:
620
+ {
621
+ value: "BallJoint",
622
+ enumerable: true,
623
+ },
624
+ componentName:
625
+ {
626
+ value: "RigidBodyPhysics",
627
+ enumerable: true,
628
+ },
629
+ containerField:
630
+ {
631
+ value: "joints",
632
+ enumerable: true,
633
+ },
634
+ specificationRange:
635
+ {
636
+ value: Object .freeze (["3.2", "Infinity"]),
637
+ enumerable: true,
638
+ },
639
+ fieldDefinitions:
640
+ {
641
+ value: new (FieldDefinitionArray_default()) ([
642
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
643
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "forceOutput", new (Fields_default()).MFString ("NONE")),
644
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "anchorPoint", new (Fields_default()).SFVec3f ()),
645
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body1AnchorPoint", new (Fields_default()).SFVec3f ()),
646
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body2AnchorPoint", new (Fields_default()).SFVec3f ()),
647
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body1", new (Fields_default()).SFNode ()),
648
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body2", new (Fields_default()).SFNode ()),
649
+ ]),
650
+ enumerable: true,
651
+ },
652
+ });
653
+
630
654
  const BallJoint_default_ = BallJoint;
631
655
  ;
632
656
 
633
657
  Namespace_default().set ("x_ite/Components/RigidBodyPhysics/BallJoint", BallJoint_default_);
634
658
  /* harmony default export */ const RigidBodyPhysics_BallJoint = (BallJoint_default_);
635
659
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
636
- const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.8")] .require ("x_ite/Components/Core/X3DChildNode");
660
+ const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components/Core/X3DChildNode");
637
661
  var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
638
662
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DBoundedObject\")"
639
- const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.8")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
663
+ const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
640
664
  var X3DBoundedObject_default = /*#__PURE__*/__webpack_require__.n(X3DBoundedObject_namespaceObject);
641
665
  ;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode.js
642
666
  /*******************************************************************************
@@ -710,19 +734,18 @@ function X3DNBodyCollidableNode (executionContext)
710
734
 
711
735
  // Members
712
736
 
713
- this .compoundShape = new AmmoClass.btCompoundShape ()
737
+ this .compoundShape = new AmmoClass .btCompoundShape ()
714
738
  this .offset = new (Vector3_default()) (0, 0, 0);
715
739
  this .matrix = new (Matrix4_default()) ();
716
740
  }
717
741
 
718
- X3DNBodyCollidableNode .prototype = Object .assign (Object .create ((X3DChildNode_default()).prototype),
742
+ Object .assign (Object .setPrototypeOf (X3DNBodyCollidableNode .prototype, (X3DChildNode_default()).prototype),
719
743
  (X3DBoundedObject_default()).prototype,
720
744
  {
721
- constructor: X3DNBodyCollidableNode,
722
- initialize: function ()
745
+ initialize ()
723
746
  {
724
- X3DChildNode_default().prototype.initialize.call (this);
725
- X3DBoundedObject_default().prototype.initialize.call (this);
747
+ X3DChildNode_default().prototype .initialize .call (this);
748
+ X3DBoundedObject_default().prototype .initialize .call (this);
726
749
 
727
750
  this .addInterest ("eventsProcessed", this);
728
751
 
@@ -732,8 +755,8 @@ X3DNBodyCollidableNode .prototype = Object .assign (Object .create ((X3DChildNod
732
755
  {
733
756
  var
734
757
  m = new (Matrix4_default()) (),
735
- o = new AmmoClass.btVector3 (0, 0, 0),
736
- l = new AmmoClass.btTransform ();
758
+ o = new AmmoClass .btVector3 (0, 0, 0),
759
+ l = new AmmoClass .btTransform ();
737
760
 
738
761
  return function ()
739
762
  {
@@ -753,31 +776,31 @@ X3DNBodyCollidableNode .prototype = Object .assign (Object .create ((X3DChildNod
753
776
  return l;
754
777
  };
755
778
  })(),
756
- setBody: function (value)
779
+ setBody (value)
757
780
  {
758
781
  this ._body = value;
759
782
  },
760
- getBody: function ()
783
+ getBody ()
761
784
  {
762
785
  return this ._body .getValue ();
763
786
  },
764
- getCompoundShape: function ()
787
+ getCompoundShape ()
765
788
  {
766
789
  return this .compoundShape;
767
790
  },
768
- setOffset: function (x, y, z)
791
+ setOffset (x, y, z)
769
792
  {
770
793
  this .offset .set (x, y, z);
771
794
  },
772
- getOffset: function ()
795
+ getOffset ()
773
796
  {
774
797
  return this .offset;
775
798
  },
776
- getMatrix: function ()
799
+ getMatrix ()
777
800
  {
778
801
  return this .matrix;
779
802
  },
780
- eventsProcessed: function ()
803
+ eventsProcessed ()
781
804
  {
782
805
  this .matrix .set (this ._translation .getValue (),
783
806
  this ._rotation .getValue ());
@@ -785,10 +808,24 @@ X3DNBodyCollidableNode .prototype = Object .assign (Object .create ((X3DChildNod
785
808
  if (this .compoundShape .getNumChildShapes ())
786
809
  this .compoundShape .updateChildTransform (0, this .getLocalTransform (), true);
787
810
  },
788
- dispose: function ()
811
+ dispose ()
789
812
  {
790
- X3DBoundedObject_default().prototype.dispose.call (this);
791
- X3DChildNode_default().prototype.dispose.call (this);
813
+ X3DBoundedObject_default().prototype .dispose .call (this);
814
+ X3DChildNode_default().prototype .dispose .call (this);
815
+ },
816
+ });
817
+
818
+ Object .defineProperties (X3DNBodyCollidableNode,
819
+ {
820
+ typeName:
821
+ {
822
+ value: "X3DNBodyCollidableNode",
823
+ enumerable: true,
824
+ },
825
+ componentName:
826
+ {
827
+ value: "RigidBodyPhysics",
828
+ enumerable: true,
792
829
  },
793
830
  });
794
831
 
@@ -798,7 +835,7 @@ const X3DNBodyCollidableNode_default_ = X3DNBodyCollidableNode;
798
835
  Namespace_default().set ("x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode", X3DNBodyCollidableNode_default_);
799
836
  /* harmony default export */ const RigidBodyPhysics_X3DNBodyCollidableNode = (X3DNBodyCollidableNode_default_);
800
837
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
801
- const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.8")] .require ("x_ite/Rendering/TraverseType");
838
+ const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Rendering/TraverseType");
802
839
  var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
803
840
  ;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js
804
841
  /*******************************************************************************
@@ -858,60 +895,32 @@ var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_names
858
895
 
859
896
  function CollidableOffset (executionContext)
860
897
  {
861
- RigidBodyPhysics_X3DNBodyCollidableNode.call (this, executionContext);
898
+ RigidBodyPhysics_X3DNBodyCollidableNode .call (this, executionContext);
862
899
 
863
900
  this .addType ((X3DConstants_default()).CollidableOffset);
864
901
 
865
902
  this .collidableNode = null;
866
903
  }
867
904
 
868
- CollidableOffset .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DNBodyCollidableNode.prototype),
905
+ Object .assign (Object .setPrototypeOf (CollidableOffset .prototype, RigidBodyPhysics_X3DNBodyCollidableNode .prototype),
869
906
  {
870
- constructor: CollidableOffset,
871
- [Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
872
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
873
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
874
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "translation", new (Fields_default()).SFVec3f ()),
875
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "rotation", new (Fields_default()).SFRotation ()),
876
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
877
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
878
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
879
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f ()),
880
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "collidable", new (Fields_default()).SFNode ()),
881
- ]),
882
- getTypeName: function ()
883
- {
884
- return "CollidableOffset";
885
- },
886
- getComponentName: function ()
907
+ initialize ()
887
908
  {
888
- return "RigidBodyPhysics";
889
- },
890
- getContainerField: function ()
891
- {
892
- return "children";
893
- },
894
- getSpecificationRange: function ()
895
- {
896
- return ["3.2", "Infinity"];
897
- },
898
- initialize: function ()
899
- {
900
- RigidBodyPhysics_X3DNBodyCollidableNode.prototype.initialize.call (this);
909
+ RigidBodyPhysics_X3DNBodyCollidableNode .prototype .initialize .call (this);
901
910
 
902
911
  this ._enabled .addInterest ("set_collidableGeometry__", this);
903
912
  this ._collidable .addInterest ("set_collidable__", this);
904
913
 
905
914
  this .set_collidable__ ();
906
915
  },
907
- getBBox: function (bbox, shadows)
916
+ getBBox (bbox, shadows)
908
917
  {
909
918
  if (this ._bboxSize .getValue () .equals (this .getDefaultBBoxSize ()))
910
919
  return this .visibleNode ?.getBBox (bbox, shadows) .multRight (this .getMatrix ()) ?? bbox .set ();
911
920
 
912
921
  return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
913
922
  },
914
- set_collidable__: function ()
923
+ set_collidable__ ()
915
924
  {
916
925
  if (this .collidableNode)
917
926
  {
@@ -955,11 +964,11 @@ CollidableOffset .prototype = Object .assign (Object .create (RigidBodyPhysics_X
955
964
  this .set_bboxDisplay__ ();
956
965
  this .set_collidableGeometry__ ();
957
966
  },
958
- set_cameraObject__: function ()
967
+ set_cameraObject__ ()
959
968
  {
960
969
  this .setCameraObject (!!this .visibleNode ?.isCameraObject ());
961
970
  },
962
- set_visible__: function ()
971
+ set_visible__ ()
963
972
  {
964
973
  if (this .collidableNode)
965
974
  this .visibleNode = this .collidableNode ._visible .getValue () ? this .collidableNode : null;
@@ -968,14 +977,14 @@ CollidableOffset .prototype = Object .assign (Object .create (RigidBodyPhysics_X
968
977
 
969
978
  this .set_cameraObject__ ();
970
979
  },
971
- set_bboxDisplay__: function ()
980
+ set_bboxDisplay__ ()
972
981
  {
973
982
  if (this .collidableNode)
974
983
  this .boundedObject = this .collidableNode ._bboxDisplay .getValue () ? this .collidableNode : null;
975
984
  else
976
985
  this .boundedObject = null;
977
986
  },
978
- set_collidableGeometry__: function ()
987
+ set_collidableGeometry__ ()
979
988
  {
980
989
  if (this .getCompoundShape () .getNumChildShapes ())
981
990
  this .getCompoundShape () .removeChildShapeByIndex (0);
@@ -985,7 +994,7 @@ CollidableOffset .prototype = Object .assign (Object .create (RigidBodyPhysics_X
985
994
 
986
995
  this ._compoundShape_changed = this .getBrowser () .getCurrentTime ();
987
996
  },
988
- traverse: function (type, renderObject)
997
+ traverse (type, renderObject)
989
998
  {
990
999
  switch (type)
991
1000
  {
@@ -1050,6 +1059,45 @@ CollidableOffset .prototype = Object .assign (Object .create (RigidBodyPhysics_X
1050
1059
  },
1051
1060
  });
1052
1061
 
1062
+ Object .defineProperties (CollidableOffset,
1063
+ {
1064
+ typeName:
1065
+ {
1066
+ value: "CollidableOffset",
1067
+ enumerable: true,
1068
+ },
1069
+ componentName:
1070
+ {
1071
+ value: "RigidBodyPhysics",
1072
+ enumerable: true,
1073
+ },
1074
+ containerField:
1075
+ {
1076
+ value: "children",
1077
+ enumerable: true,
1078
+ },
1079
+ specificationRange:
1080
+ {
1081
+ value: Object .freeze (["3.2", "Infinity"]),
1082
+ enumerable: true,
1083
+ },
1084
+ fieldDefinitions:
1085
+ {
1086
+ value: new (FieldDefinitionArray_default()) ([
1087
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
1088
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
1089
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "translation", new (Fields_default()).SFVec3f ()),
1090
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "rotation", new (Fields_default()).SFRotation ()),
1091
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
1092
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
1093
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
1094
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f ()),
1095
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "collidable", new (Fields_default()).SFNode ()),
1096
+ ]),
1097
+ enumerable: true,
1098
+ },
1099
+ });
1100
+
1053
1101
  const CollidableOffset_default_ = CollidableOffset;
1054
1102
  ;
1055
1103
 
@@ -1114,7 +1162,7 @@ Namespace_default().set ("x_ite/Components/RigidBodyPhysics/CollidableOffset", C
1114
1162
 
1115
1163
  function CollidableShape (executionContext)
1116
1164
  {
1117
- RigidBodyPhysics_X3DNBodyCollidableNode.call (this, executionContext);
1165
+ RigidBodyPhysics_X3DNBodyCollidableNode .call (this, executionContext);
1118
1166
 
1119
1167
  this .addType ((X3DConstants_default()).CollidableShape);
1120
1168
 
@@ -1127,63 +1175,35 @@ function CollidableShape (executionContext)
1127
1175
  this .triangleMesh = null;
1128
1176
  }
1129
1177
 
1130
- CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DNBodyCollidableNode.prototype),
1178
+ Object .assign (Object .setPrototypeOf (CollidableShape .prototype, RigidBodyPhysics_X3DNBodyCollidableNode .prototype),
1131
1179
  {
1132
- constructor: CollidableShape,
1133
- [Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
1134
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
1135
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
1136
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "translation", new (Fields_default()).SFVec3f ()),
1137
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "rotation", new (Fields_default()).SFRotation ()),
1138
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
1139
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
1140
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
1141
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f ()),
1142
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "shape", new (Fields_default()).SFNode ()),
1143
- ]),
1144
- getTypeName: function ()
1145
- {
1146
- return "CollidableShape";
1147
- },
1148
- getComponentName: function ()
1149
- {
1150
- return "RigidBodyPhysics";
1151
- },
1152
- getContainerField: function ()
1153
- {
1154
- return "children";
1155
- },
1156
- getSpecificationRange: function ()
1157
- {
1158
- return ["3.2", "Infinity"];
1159
- },
1160
- initialize: function ()
1180
+ initialize ()
1161
1181
  {
1162
- RigidBodyPhysics_X3DNBodyCollidableNode.prototype.initialize.call (this);
1182
+ RigidBodyPhysics_X3DNBodyCollidableNode .prototype .initialize .call (this);
1163
1183
 
1164
1184
  this ._enabled .addInterest ("set_collidableGeometry__", this);
1165
1185
  this ._shape .addInterest ("set_shape__", this);
1166
1186
 
1167
1187
  this .set_shape__ ();
1168
1188
  },
1169
- getBBox: function (bbox, shadows)
1189
+ getBBox (bbox, shadows)
1170
1190
  {
1171
1191
  if (this ._bboxSize .getValue () .equals (this .getDefaultBBoxSize ()))
1172
1192
  return this .visibleNode ?.getBBox (bbox, shadows) .multRight (this .getMatrix ()) ?? bbox .set ();
1173
1193
 
1174
1194
  return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
1175
1195
  },
1176
- setConvex: function (value)
1196
+ setConvex (value)
1177
1197
  {
1178
1198
  this .convex = value;
1179
1199
  },
1180
- getConvex: function ()
1200
+ getConvex ()
1181
1201
  {
1182
1202
  return this .convex;
1183
1203
  },
1184
1204
  createConvexGeometry: (function ()
1185
1205
  {
1186
- var p = new AmmoClass.btVector3 ();
1206
+ var p = new AmmoClass .btVector3 ();
1187
1207
 
1188
1208
  return function ()
1189
1209
  {
@@ -1192,7 +1212,7 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
1192
1212
  if (vertices .length === 0)
1193
1213
  return null;
1194
1214
 
1195
- var convexHull = new AmmoClass.btConvexHullShape ();
1215
+ var convexHull = new AmmoClass .btConvexHullShape ();
1196
1216
 
1197
1217
  for (var i = 0, length = vertices .length; i < length; i += 4)
1198
1218
  {
@@ -1208,9 +1228,9 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
1208
1228
  createConcaveGeometry: (function ()
1209
1229
  {
1210
1230
  var
1211
- p1 = new AmmoClass.btVector3 (),
1212
- p2 = new AmmoClass.btVector3 (),
1213
- p3 = new AmmoClass.btVector3 ();
1231
+ p1 = new AmmoClass .btVector3 (),
1232
+ p2 = new AmmoClass .btVector3 (),
1233
+ p3 = new AmmoClass .btVector3 ();
1214
1234
 
1215
1235
  return function ()
1216
1236
  {
@@ -1219,7 +1239,7 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
1219
1239
  if (vertices .length === 0)
1220
1240
  return null;
1221
1241
 
1222
- this .triangleMesh = new AmmoClass.btTriangleMesh ();
1242
+ this .triangleMesh = new AmmoClass .btTriangleMesh ();
1223
1243
 
1224
1244
  for (var i = 0, length = vertices .length; i < length; i += 12)
1225
1245
  {
@@ -1230,10 +1250,10 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
1230
1250
  this .triangleMesh .addTriangle (p1, p2, p3);
1231
1251
  }
1232
1252
 
1233
- return new AmmoClass.btBvhTriangleMeshShape (this .triangleMesh, false);
1253
+ return new AmmoClass .btBvhTriangleMeshShape (this .triangleMesh, false);
1234
1254
  };
1235
1255
  })(),
1236
- set_shape__: function ()
1256
+ set_shape__ ()
1237
1257
  {
1238
1258
  if (this .shapeNode)
1239
1259
  {
@@ -1275,11 +1295,11 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
1275
1295
  this .set_bboxDisplay__ ();
1276
1296
  this .set_geometry__ ();
1277
1297
  },
1278
- set_cameraObject__: function ()
1298
+ set_cameraObject__ ()
1279
1299
  {
1280
1300
  this .setCameraObject (!!this .visibleNode ?.isCameraObject ());
1281
1301
  },
1282
- set_visible__: function ()
1302
+ set_visible__ ()
1283
1303
  {
1284
1304
  if (this .shapeNode)
1285
1305
  this .visibleNode = this .shapeNode ._visible .getValue () ? this .shapeNode : null;
@@ -1288,14 +1308,14 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
1288
1308
 
1289
1309
  this .set_cameraObject__ ();
1290
1310
  },
1291
- set_bboxDisplay__: function ()
1311
+ set_bboxDisplay__ ()
1292
1312
  {
1293
1313
  if (this .shapeNode)
1294
1314
  this .boundedObject = this .shapeNode ._bboxDisplay .getValue () ? this .shapeNode : null;
1295
1315
  else
1296
1316
  this .boundedObject = null;
1297
1317
  },
1298
- set_geometry__: function ()
1318
+ set_geometry__ ()
1299
1319
  {
1300
1320
  if (this .geometryNode)
1301
1321
  this .geometryNode ._rebuild .removeInterest ("set_collidableGeometry__", this);
@@ -1313,8 +1333,8 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
1313
1333
  set_collidableGeometry__: (function ()
1314
1334
  {
1315
1335
  var
1316
- localScaling = new AmmoClass.btVector3 (),
1317
- defaultScaling = new AmmoClass.btVector3 (1, 1, 1);
1336
+ localScaling = new AmmoClass .btVector3 (),
1337
+ defaultScaling = new AmmoClass .btVector3 (1, 1, 1);
1318
1338
 
1319
1339
  return function ()
1320
1340
  {
@@ -1339,7 +1359,7 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
1339
1359
  box = this .geometryNode,
1340
1360
  size = box ._size .getValue ();
1341
1361
 
1342
- this .collisionShape = new AmmoClass.btBoxShape (new AmmoClass.btVector3 (size .x / 2, size .y / 2, size .z / 2));
1362
+ this .collisionShape = new AmmoClass .btBoxShape (new AmmoClass .btVector3 (size .x / 2, size .y / 2, size .z / 2));
1343
1363
  break;
1344
1364
  }
1345
1365
  case (X3DConstants_default()).Cone:
@@ -1347,7 +1367,7 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
1347
1367
  var cone = this .geometryNode;
1348
1368
 
1349
1369
  if (cone ._side .getValue () && cone ._bottom .getValue ())
1350
- this .collisionShape = new AmmoClass.btConeShape (cone ._bottomRadius .getValue (), cone ._height .getValue ());
1370
+ this .collisionShape = new AmmoClass .btConeShape (cone ._bottomRadius .getValue (), cone ._height .getValue ());
1351
1371
  else
1352
1372
  this .collisionShape = this .createConcaveGeometry ();
1353
1373
 
@@ -1361,7 +1381,7 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
1361
1381
  height1_2 = cylinder ._height .getValue () * 0.5;
1362
1382
 
1363
1383
  if (cylinder ._side .getValue () && cylinder ._top .getValue () && cylinder ._bottom .getValue ())
1364
- this .collisionShape = new AmmoClass.btCylinderShape (new AmmoClass.btVector3 (radius, height1_2, radius));
1384
+ this .collisionShape = new AmmoClass .btCylinderShape (new AmmoClass .btVector3 (radius, height1_2, radius));
1365
1385
  else
1366
1386
  this .collisionShape = this .createConcaveGeometry ();
1367
1387
 
@@ -1376,7 +1396,7 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
1376
1396
  var
1377
1397
  min = Number .POSITIVE_INFINITY,
1378
1398
  max = Number .NEGATIVE_INFINITY,
1379
- heightField = this .heightField = AmmoClass._malloc (4 * elevationGrid ._xDimension .getValue () * elevationGrid ._zDimension .getValue ()),
1399
+ heightField = this .heightField = AmmoClass ._malloc (4 * elevationGrid ._xDimension .getValue () * elevationGrid ._zDimension .getValue ()),
1380
1400
  i4 = 0;
1381
1401
 
1382
1402
  for (var i = 0, length = elevationGrid ._height .length; i < length; ++ i)
@@ -1386,12 +1406,12 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
1386
1406
  min = Math .min (min, value);
1387
1407
  max = Math .max (max, value);
1388
1408
 
1389
- AmmoClass.HEAPF32 [heightField + i4 >>> 2] = elevationGrid ._height [i];
1409
+ AmmoClass .HEAPF32 [heightField + i4 >>> 2] = elevationGrid ._height [i];
1390
1410
 
1391
1411
  i4 += 4;
1392
1412
  }
1393
1413
 
1394
- this .collisionShape = new AmmoClass.btHeightfieldTerrainShape (elevationGrid ._xDimension .getValue (),
1414
+ this .collisionShape = new AmmoClass .btHeightfieldTerrainShape (elevationGrid ._xDimension .getValue (),
1395
1415
  elevationGrid ._zDimension .getValue (),
1396
1416
  heightField,
1397
1417
  1,
@@ -1401,7 +1421,7 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
1401
1421
  "PHY_FLOAT",
1402
1422
  true);
1403
1423
 
1404
- this .collisionShape .setLocalScaling (new AmmoClass.btVector3 (elevationGrid ._xSpacing .getValue (), 1, elevationGrid ._zSpacing .getValue ()));
1424
+ this .collisionShape .setLocalScaling (new AmmoClass .btVector3 (elevationGrid ._xSpacing .getValue (), 1, elevationGrid ._zSpacing .getValue ()));
1405
1425
 
1406
1426
  this .setOffset (elevationGrid ._xSpacing .getValue () * (elevationGrid ._xDimension .getValue () - 1) * 0.5,
1407
1427
  (min + max) * 0.5,
@@ -1414,7 +1434,7 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
1414
1434
  {
1415
1435
  var sphere = this .geometryNode;
1416
1436
 
1417
- this .collisionShape = new AmmoClass.btSphereShape (sphere ._radius .getValue ());
1437
+ this .collisionShape = new AmmoClass .btSphereShape (sphere ._radius .getValue ());
1418
1438
  break;
1419
1439
  }
1420
1440
  case (X3DConstants_default()).X3DGeometryNode:
@@ -1449,28 +1469,28 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
1449
1469
  this ._compoundShape_changed = this .getBrowser () .getCurrentTime ();
1450
1470
  };
1451
1471
  })(),
1452
- removeCollidableGeometry: function ()
1472
+ removeCollidableGeometry ()
1453
1473
  {
1454
1474
  if (this .collisionShape)
1455
1475
  {
1456
1476
  this .getCompoundShape () .removeChildShapeByIndex (0);
1457
- AmmoClass.destroy (this .collisionShape);
1477
+ AmmoClass .destroy (this .collisionShape);
1458
1478
  this .collisionShape = null;
1459
1479
  }
1460
1480
 
1461
1481
  if (this .heightField)
1462
1482
  {
1463
- AmmoClass._free (this .heightField);
1483
+ AmmoClass ._free (this .heightField);
1464
1484
  this .heightField = null;
1465
1485
  }
1466
1486
 
1467
1487
  if (this .triangleMesh)
1468
1488
  {
1469
- AmmoClass.destroy (this .triangleMesh);
1489
+ AmmoClass .destroy (this .triangleMesh);
1470
1490
  this .triangleMesh = null;
1471
1491
  }
1472
1492
  },
1473
- traverse: function (type, renderObject)
1493
+ traverse (type, renderObject)
1474
1494
  {
1475
1495
  switch (type)
1476
1496
  {
@@ -1533,11 +1553,50 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
1533
1553
  }
1534
1554
  }
1535
1555
  },
1536
- dispose: function ()
1556
+ dispose ()
1537
1557
  {
1538
1558
  this .removeCollidableGeometry ();
1539
1559
 
1540
- RigidBodyPhysics_X3DNBodyCollidableNode.prototype.dispose.call (this);
1560
+ RigidBodyPhysics_X3DNBodyCollidableNode .prototype .dispose .call (this);
1561
+ },
1562
+ });
1563
+
1564
+ Object .defineProperties (CollidableShape,
1565
+ {
1566
+ typeName:
1567
+ {
1568
+ value: "CollidableShape",
1569
+ enumerable: true,
1570
+ },
1571
+ componentName:
1572
+ {
1573
+ value: "RigidBodyPhysics",
1574
+ enumerable: true,
1575
+ },
1576
+ containerField:
1577
+ {
1578
+ value: "children",
1579
+ enumerable: true,
1580
+ },
1581
+ specificationRange:
1582
+ {
1583
+ value: Object .freeze (["3.2", "Infinity"]),
1584
+ enumerable: true,
1585
+ },
1586
+ fieldDefinitions:
1587
+ {
1588
+ value: new (FieldDefinitionArray_default()) ([
1589
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
1590
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
1591
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "translation", new (Fields_default()).SFVec3f ()),
1592
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "rotation", new (Fields_default()).SFRotation ()),
1593
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
1594
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
1595
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
1596
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f ()),
1597
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "shape", new (Fields_default()).SFNode ()),
1598
+ ]),
1599
+ enumerable: true,
1541
1600
  },
1542
1601
  });
1543
1602
 
@@ -1685,41 +1744,11 @@ function CollisionCollection (executionContext)
1685
1744
  this .collisionSpaceNodes = [ ];
1686
1745
  }
1687
1746
 
1688
- CollisionCollection .prototype = Object .assign (Object .create ((X3DChildNode_default()).prototype),
1747
+ Object .assign (Object .setPrototypeOf (CollisionCollection .prototype, (X3DChildNode_default()).prototype),
1689
1748
  {
1690
- constructor: CollisionCollection,
1691
- [Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
1692
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
1693
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
1694
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "appliedParameters", new (Fields_default()).MFString ("BOUNCE")),
1695
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bounce", new (Fields_default()).SFFloat ()),
1696
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "minBounceSpeed", new (Fields_default()).SFFloat (0.1)),
1697
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "frictionCoefficients", new (Fields_default()).SFVec2f ()),
1698
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceSpeed", new (Fields_default()).SFVec2f ()),
1699
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "slipFactors", new (Fields_default()).SFVec2f ()),
1700
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "softnessConstantForceMix", new (Fields_default()).SFFloat (0.0001)),
1701
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "softnessErrorCorrection", new (Fields_default()).SFFloat (0.8)),
1702
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "collidables", new (Fields_default()).MFNode ()),
1703
- ]),
1704
- getTypeName: function ()
1705
- {
1706
- return "CollisionCollection";
1707
- },
1708
- getComponentName: function ()
1709
- {
1710
- return "RigidBodyPhysics";
1711
- },
1712
- getContainerField: function ()
1749
+ initialize ()
1713
1750
  {
1714
- return "collider";
1715
- },
1716
- getSpecificationRange: function ()
1717
- {
1718
- return ["3.2", "Infinity"];
1719
- },
1720
- initialize: function ()
1721
- {
1722
- X3DChildNode_default().prototype.initialize.call (this);
1751
+ X3DChildNode_default().prototype .initialize .call (this);
1723
1752
 
1724
1753
  this ._appliedParameters .addInterest ("set_appliedParameters__", this);
1725
1754
  this ._collidables .addInterest ("set_collidables__", this);
@@ -1727,26 +1756,26 @@ CollisionCollection .prototype = Object .assign (Object .create ((X3DChildNode_d
1727
1756
  this .set_appliedParameters__ ();
1728
1757
  this .set_collidables__ ();
1729
1758
  },
1730
- getAppliedParameters: function ()
1759
+ getAppliedParameters ()
1731
1760
  {
1732
1761
  return this .appliedParameters;
1733
1762
  },
1734
- getCollidables: function ()
1763
+ getCollidables ()
1735
1764
  {
1736
1765
  return this .collidableNodes;
1737
1766
  },
1738
1767
  set_appliedParameters__: (function ()
1739
1768
  {
1740
1769
  var appliedParametersIndex = new Map ([
1741
- ["BOUNCE", RigidBodyPhysics_AppliedParametersType.BOUNCE],
1742
- ["USER_FRICTION", RigidBodyPhysics_AppliedParametersType.USER_FRICTION],
1743
- ["FRICTION_COEFFICIENT-2", RigidBodyPhysics_AppliedParametersType.FRICTION_COEFFICIENT_2],
1744
- ["ERROR_REDUCTION", RigidBodyPhysics_AppliedParametersType.ERROR_REDUCTION],
1745
- ["CONSTANT_FORCE", RigidBodyPhysics_AppliedParametersType.CONSTANT_FORCE],
1746
- ["SPEED-1", RigidBodyPhysics_AppliedParametersType.SPEED_1],
1747
- ["SPEED-2", RigidBodyPhysics_AppliedParametersType.SPEED_2],
1748
- ["SLIP-1", RigidBodyPhysics_AppliedParametersType.SLIP_1],
1749
- ["SLIP-2", RigidBodyPhysics_AppliedParametersType.SLIP_2],
1770
+ ["BOUNCE", RigidBodyPhysics_AppliedParametersType .BOUNCE],
1771
+ ["USER_FRICTION", RigidBodyPhysics_AppliedParametersType .USER_FRICTION],
1772
+ ["FRICTION_COEFFICIENT-2", RigidBodyPhysics_AppliedParametersType .FRICTION_COEFFICIENT_2],
1773
+ ["ERROR_REDUCTION", RigidBodyPhysics_AppliedParametersType .ERROR_REDUCTION],
1774
+ ["CONSTANT_FORCE", RigidBodyPhysics_AppliedParametersType .CONSTANT_FORCE],
1775
+ ["SPEED-1", RigidBodyPhysics_AppliedParametersType .SPEED_1],
1776
+ ["SPEED-2", RigidBodyPhysics_AppliedParametersType .SPEED_2],
1777
+ ["SLIP-1", RigidBodyPhysics_AppliedParametersType .SLIP_1],
1778
+ ["SLIP-2", RigidBodyPhysics_AppliedParametersType .SLIP_2],
1750
1779
  ]);
1751
1780
 
1752
1781
  return function ()
@@ -1762,7 +1791,7 @@ CollisionCollection .prototype = Object .assign (Object .create ((X3DChildNode_d
1762
1791
  }
1763
1792
  };
1764
1793
  })(),
1765
- set_collidables__: function ()
1794
+ set_collidables__ ()
1766
1795
  {
1767
1796
  var collisionSpaceNodes = this .collisionSpaceNodes;
1768
1797
 
@@ -1785,7 +1814,7 @@ CollisionCollection .prototype = Object .assign (Object .create ((X3DChildNode_d
1785
1814
 
1786
1815
  this .collect ();
1787
1816
  },
1788
- collect: function ()
1817
+ collect ()
1789
1818
  {
1790
1819
  var
1791
1820
  collidableNodes = this .collidableNodes,
@@ -1817,13 +1846,54 @@ CollisionCollection .prototype = Object .assign (Object .create ((X3DChildNode_d
1817
1846
  },
1818
1847
  });
1819
1848
 
1849
+ Object .defineProperties (CollisionCollection,
1850
+ {
1851
+ typeName:
1852
+ {
1853
+ value: "CollisionCollection",
1854
+ enumerable: true,
1855
+ },
1856
+ componentName:
1857
+ {
1858
+ value: "RigidBodyPhysics",
1859
+ enumerable: true,
1860
+ },
1861
+ containerField:
1862
+ {
1863
+ value: "collider",
1864
+ enumerable: true,
1865
+ },
1866
+ specificationRange:
1867
+ {
1868
+ value: Object .freeze (["3.2", "Infinity"]),
1869
+ enumerable: true,
1870
+ },
1871
+ fieldDefinitions:
1872
+ {
1873
+ value: new (FieldDefinitionArray_default()) ([
1874
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
1875
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
1876
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "appliedParameters", new (Fields_default()).MFString ("BOUNCE")),
1877
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bounce", new (Fields_default()).SFFloat ()),
1878
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "minBounceSpeed", new (Fields_default()).SFFloat (0.1)),
1879
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "frictionCoefficients", new (Fields_default()).SFVec2f ()),
1880
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceSpeed", new (Fields_default()).SFVec2f ()),
1881
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "slipFactors", new (Fields_default()).SFVec2f ()),
1882
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "softnessConstantForceMix", new (Fields_default()).SFFloat (0.0001)),
1883
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "softnessErrorCorrection", new (Fields_default()).SFFloat (0.8)),
1884
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "collidables", new (Fields_default()).MFNode ()),
1885
+ ]),
1886
+ enumerable: true,
1887
+ },
1888
+ });
1889
+
1820
1890
  const CollisionCollection_default_ = CollisionCollection;
1821
1891
  ;
1822
1892
 
1823
1893
  Namespace_default().set ("x_ite/Components/RigidBodyPhysics/CollisionCollection", CollisionCollection_default_);
1824
1894
  /* harmony default export */ const RigidBodyPhysics_CollisionCollection = (CollisionCollection_default_);
1825
1895
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DSensorNode\")"
1826
- const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.8")] .require ("x_ite/Components/Core/X3DSensorNode");
1896
+ const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components/Core/X3DSensorNode");
1827
1897
  var X3DSensorNode_default = /*#__PURE__*/__webpack_require__.n(X3DSensorNode_namespaceObject);
1828
1898
  ;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js
1829
1899
  /*******************************************************************************
@@ -1891,36 +1961,11 @@ function CollisionSensor (executionContext)
1891
1961
  this .contactCache = [ ];
1892
1962
  }
1893
1963
 
1894
- CollisionSensor .prototype = Object .assign (Object .create ((X3DSensorNode_default()).prototype),
1964
+ Object .assign (Object .setPrototypeOf (CollisionSensor .prototype, (X3DSensorNode_default()).prototype),
1895
1965
  {
1896
- constructor: CollisionSensor,
1897
- [Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
1898
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
1899
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
1900
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "isActive", new (Fields_default()).SFBool ()),
1901
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "intersections", new (Fields_default()).MFNode ()),
1902
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "contacts", new (Fields_default()).MFNode ()),
1903
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "collider", new (Fields_default()).SFNode ()),
1904
- ]),
1905
- getTypeName: function ()
1906
- {
1907
- return "CollisionSensor";
1908
- },
1909
- getComponentName: function ()
1910
- {
1911
- return "RigidBodyPhysics";
1912
- },
1913
- getContainerField: function ()
1914
- {
1915
- return "children";
1916
- },
1917
- getSpecificationRange: function ()
1966
+ initialize ()
1918
1967
  {
1919
- return ["3.2", "Infinity"];
1920
- },
1921
- initialize: function ()
1922
- {
1923
- X3DSensorNode_default().prototype.initialize.call (this);
1968
+ X3DSensorNode_default().prototype .initialize .call (this);
1924
1969
 
1925
1970
  this .getLive () .addInterest ("set_live__", this);
1926
1971
 
@@ -1928,7 +1973,7 @@ CollisionSensor .prototype = Object .assign (Object .create ((X3DSensorNode_defa
1928
1973
 
1929
1974
  this .set_collider__ ();
1930
1975
  },
1931
- set_live__: function ()
1976
+ set_live__ ()
1932
1977
  {
1933
1978
  if (this .getLive () .getValue () && this ._enabled .getValue () && this .colliderNode)
1934
1979
  {
@@ -1939,7 +1984,7 @@ CollisionSensor .prototype = Object .assign (Object .create ((X3DSensorNode_defa
1939
1984
  this .getBrowser () .sensorEvents () .removeInterest ("update", this);
1940
1985
  }
1941
1986
  },
1942
- set_collider__: function ()
1987
+ set_collider__ ()
1943
1988
  {
1944
1989
  this .colliderNode = X3DCast_default() ((X3DConstants_default()).CollisionCollection, this ._collider);
1945
1990
 
@@ -2085,7 +2130,7 @@ CollisionSensor .prototype = Object .assign (Object .create ((X3DSensorNode_defa
2085
2130
  }
2086
2131
  };
2087
2132
  })(),
2088
- getContact: function (index)
2133
+ getContact (index)
2089
2134
  {
2090
2135
  const contactNode = this .contactCache [index];
2091
2136
 
@@ -2100,6 +2145,42 @@ CollisionSensor .prototype = Object .assign (Object .create ((X3DSensorNode_defa
2100
2145
  },
2101
2146
  });
2102
2147
 
2148
+ Object .defineProperties (CollisionSensor,
2149
+ {
2150
+ typeName:
2151
+ {
2152
+ value: "CollisionSensor",
2153
+ enumerable: true,
2154
+ },
2155
+ componentName:
2156
+ {
2157
+ value: "RigidBodyPhysics",
2158
+ enumerable: true,
2159
+ },
2160
+ containerField:
2161
+ {
2162
+ value: "children",
2163
+ enumerable: true,
2164
+ },
2165
+ specificationRange:
2166
+ {
2167
+ value: Object .freeze (["3.2", "Infinity"]),
2168
+ enumerable: true,
2169
+ },
2170
+ fieldDefinitions:
2171
+ {
2172
+ value: new (FieldDefinitionArray_default()) ([
2173
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
2174
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
2175
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "isActive", new (Fields_default()).SFBool ()),
2176
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "intersections", new (Fields_default()).MFNode ()),
2177
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "contacts", new (Fields_default()).MFNode ()),
2178
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "collider", new (Fields_default()).SFNode ()),
2179
+ ]),
2180
+ enumerable: true,
2181
+ },
2182
+ });
2183
+
2103
2184
  const CollisionSensor_default_ = CollisionSensor;
2104
2185
  ;
2105
2186
 
@@ -2165,19 +2246,32 @@ function X3DNBodyCollisionSpaceNode (executionContext)
2165
2246
  this .addType ((X3DConstants_default()).X3DNBodyCollisionSpaceNode);
2166
2247
  }
2167
2248
 
2168
- X3DNBodyCollisionSpaceNode .prototype = Object .assign (Object .create ((X3DNode_default()).prototype),
2249
+ Object .assign (Object .setPrototypeOf (X3DNBodyCollisionSpaceNode .prototype, (X3DNode_default()).prototype),
2169
2250
  (X3DBoundedObject_default()).prototype,
2170
2251
  {
2171
- constructor: X3DNBodyCollisionSpaceNode,
2172
- initialize: function ()
2252
+ initialize ()
2253
+ {
2254
+ X3DNode_default().prototype .initialize .call (this);
2255
+ X3DBoundedObject_default().prototype .initialize .call (this);
2256
+ },
2257
+ dispose ()
2258
+ {
2259
+ X3DBoundedObject_default().prototype .dispose .call (this);
2260
+ X3DNode_default().prototype .dispose .call (this);
2261
+ },
2262
+ });
2263
+
2264
+ Object .defineProperties (X3DNBodyCollisionSpaceNode,
2265
+ {
2266
+ typeName:
2173
2267
  {
2174
- X3DNode_default().prototype.initialize.call (this);
2175
- X3DBoundedObject_default().prototype.initialize.call (this);
2268
+ value: "X3DNBodyCollisionSpaceNode",
2269
+ enumerable: true,
2176
2270
  },
2177
- dispose: function ()
2271
+ componentName:
2178
2272
  {
2179
- X3DBoundedObject_default().prototype.dispose.call (this);
2180
- X3DNode_default().prototype.dispose.call (this);
2273
+ value: "RigidBodyPhysics",
2274
+ enumerable: true,
2181
2275
  },
2182
2276
  });
2183
2277
 
@@ -2243,7 +2337,7 @@ Namespace_default().set ("x_ite/Components/RigidBodyPhysics/X3DNBodyCollisionSpa
2243
2337
 
2244
2338
  function CollisionSpace (executionContext)
2245
2339
  {
2246
- RigidBodyPhysics_X3DNBodyCollisionSpaceNode.call (this, executionContext);
2340
+ RigidBodyPhysics_X3DNBodyCollisionSpaceNode .call (this, executionContext);
2247
2341
 
2248
2342
  this .addType ((X3DConstants_default()).CollisionSpace);
2249
2343
 
@@ -2251,44 +2345,17 @@ function CollisionSpace (executionContext)
2251
2345
  this .collisionSpaceNodes = [ ];
2252
2346
  }
2253
2347
 
2254
- CollisionSpace .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DNBodyCollisionSpaceNode.prototype),
2348
+ Object .assign (Object .setPrototypeOf (CollisionSpace .prototype, RigidBodyPhysics_X3DNBodyCollisionSpaceNode .prototype),
2255
2349
  {
2256
- constructor: CollisionSpace,
2257
- [Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
2258
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
2259
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
2260
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "useGeometry", new (Fields_default()).SFBool ()),
2261
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
2262
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
2263
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
2264
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f ()),
2265
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "collidables", new (Fields_default()).MFNode ()),
2266
- ]),
2267
- getTypeName: function ()
2268
- {
2269
- return "CollisionSpace";
2270
- },
2271
- getComponentName: function ()
2272
- {
2273
- return "RigidBodyPhysics";
2274
- },
2275
- getContainerField: function ()
2276
- {
2277
- return "children";
2278
- },
2279
- getSpecificationRange: function ()
2280
- {
2281
- return ["3.2", "Infinity"];
2282
- },
2283
- initialize: function ()
2350
+ initialize ()
2284
2351
  {
2285
- RigidBodyPhysics_X3DNBodyCollisionSpaceNode.prototype.initialize.call (this);
2352
+ RigidBodyPhysics_X3DNBodyCollisionSpaceNode .prototype .initialize .call (this);
2286
2353
 
2287
2354
  this ._collidables .addInterest ("set_collidables__", this);
2288
2355
 
2289
2356
  this .set_collidables__ ();
2290
2357
  },
2291
- getBBox: function (bbox, shadows)
2358
+ getBBox (bbox, shadows)
2292
2359
  {
2293
2360
  // TODO: add space node.
2294
2361
  if (this ._bboxSize .getValue () .equals (this .getDefaultBBoxSize ()))
@@ -2296,11 +2363,11 @@ CollisionSpace .prototype = Object .assign (Object .create (RigidBodyPhysics_X3D
2296
2363
 
2297
2364
  return bbox;
2298
2365
  },
2299
- getCollidables: function ()
2366
+ getCollidables ()
2300
2367
  {
2301
2368
  return this .collidableNodes;
2302
2369
  },
2303
- set_collidables__: function ()
2370
+ set_collidables__ ()
2304
2371
  {
2305
2372
  var collisionSpaceNodes = this .collisionSpaceNodes;
2306
2373
 
@@ -2323,7 +2390,7 @@ CollisionSpace .prototype = Object .assign (Object .create (RigidBodyPhysics_X3D
2323
2390
 
2324
2391
  this .collect ();
2325
2392
  },
2326
- collect: function ()
2393
+ collect ()
2327
2394
  {
2328
2395
  var
2329
2396
  collidableNodes = this .collidableNodes,
@@ -2355,6 +2422,44 @@ CollisionSpace .prototype = Object .assign (Object .create (RigidBodyPhysics_X3D
2355
2422
  },
2356
2423
  });
2357
2424
 
2425
+ Object .defineProperties (CollisionSpace,
2426
+ {
2427
+ typeName:
2428
+ {
2429
+ value: "CollisionSpace",
2430
+ enumerable: true,
2431
+ },
2432
+ componentName:
2433
+ {
2434
+ value: "RigidBodyPhysics",
2435
+ enumerable: true,
2436
+ },
2437
+ containerField:
2438
+ {
2439
+ value: "children",
2440
+ enumerable: true,
2441
+ },
2442
+ specificationRange:
2443
+ {
2444
+ value: Object .freeze (["3.2", "Infinity"]),
2445
+ enumerable: true,
2446
+ },
2447
+ fieldDefinitions:
2448
+ {
2449
+ value: new (FieldDefinitionArray_default()) ([
2450
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
2451
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
2452
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "useGeometry", new (Fields_default()).SFBool ()),
2453
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
2454
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
2455
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
2456
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f ()),
2457
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "collidables", new (Fields_default()).MFNode ()),
2458
+ ]),
2459
+ enumerable: true,
2460
+ },
2461
+ });
2462
+
2358
2463
  const CollisionSpace_default_ = CollisionSpace;
2359
2464
  ;
2360
2465
 
@@ -2429,43 +2534,52 @@ function Contact (executionContext)
2429
2534
  this ._softnessConstantForceMix .setUnit ("force");
2430
2535
  }
2431
2536
 
2432
- Contact .prototype = Object .assign (Object .create ((X3DNode_default()).prototype),
2537
+ Object .setPrototypeOf (Contact .prototype, (X3DNode_default()).prototype);
2538
+
2539
+ Object .defineProperties (Contact,
2433
2540
  {
2434
- constructor: Contact,
2435
- [Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
2436
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
2437
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "position", new (Fields_default()).SFVec3f ()),
2438
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "contactNormal", new (Fields_default()).SFVec3f (0, 1, 0)),
2439
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "depth", new (Fields_default()).SFFloat ()),
2440
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "frictionDirection", new (Fields_default()).SFVec3f (0, 1, 0)),
2441
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "appliedParameters", new (Fields_default()).MFString ("BOUNCE")),
2442
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bounce", new (Fields_default()).SFFloat ()),
2443
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "minBounceSpeed", new (Fields_default()).SFFloat ()),
2444
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "frictionCoefficients", new (Fields_default()).SFVec2f ()),
2445
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceSpeed", new (Fields_default()).SFVec2f ()),
2446
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "slipCoefficients", new (Fields_default()).SFVec2f ()),
2447
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "softnessConstantForceMix", new (Fields_default()).SFFloat (0.0001)),
2448
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "softnessErrorCorrection", new (Fields_default()).SFFloat (0.8)),
2449
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "geometry1", new (Fields_default()).SFNode ()),
2450
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "geometry2", new (Fields_default()).SFNode ()),
2451
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body1", new (Fields_default()).SFNode ()),
2452
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body2", new (Fields_default()).SFNode ()),
2453
- ]),
2454
- getTypeName: function ()
2455
- {
2456
- return "Contact";
2457
- },
2458
- getComponentName: function ()
2459
- {
2460
- return "RigidBodyPhysics";
2461
- },
2462
- getContainerField: function ()
2463
- {
2464
- return "children";
2465
- },
2466
- getSpecificationRange: function ()
2467
- {
2468
- return ["3.2", "Infinity"];
2541
+ typeName:
2542
+ {
2543
+ value: "Contact",
2544
+ enumerable: true,
2545
+ },
2546
+ componentName:
2547
+ {
2548
+ value: "RigidBodyPhysics",
2549
+ enumerable: true,
2550
+ },
2551
+ containerField:
2552
+ {
2553
+ value: "children",
2554
+ enumerable: true,
2555
+ },
2556
+ specificationRange:
2557
+ {
2558
+ value: Object .freeze (["3.2", "Infinity"]),
2559
+ enumerable: true,
2560
+ },
2561
+ fieldDefinitions:
2562
+ {
2563
+ value: new (FieldDefinitionArray_default()) ([
2564
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
2565
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "position", new (Fields_default()).SFVec3f ()),
2566
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "contactNormal", new (Fields_default()).SFVec3f (0, 1, 0)),
2567
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "depth", new (Fields_default()).SFFloat ()),
2568
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "appliedParameters", new (Fields_default()).MFString ("BOUNCE")),
2569
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bounce", new (Fields_default()).SFFloat ()),
2570
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "minBounceSpeed", new (Fields_default()).SFFloat ()),
2571
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "frictionCoefficients", new (Fields_default()).SFVec2f ()),
2572
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "frictionDirection", new (Fields_default()).SFVec3f (0, 1, 0)),
2573
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceSpeed", new (Fields_default()).SFVec2f ()),
2574
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "slipCoefficients", new (Fields_default()).SFVec2f ()),
2575
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "softnessConstantForceMix", new (Fields_default()).SFFloat (0.0001)),
2576
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "softnessErrorCorrection", new (Fields_default()).SFFloat (0.8)),
2577
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "geometry1", new (Fields_default()).SFNode ()),
2578
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "geometry2", new (Fields_default()).SFNode ()),
2579
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body1", new (Fields_default()).SFNode ()),
2580
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body2", new (Fields_default()).SFNode ()),
2581
+ ]),
2582
+ enumerable: true,
2469
2583
  },
2470
2584
  });
2471
2585
 
@@ -2475,7 +2589,7 @@ const Contact_default_ = Contact;
2475
2589
  Namespace_default().set ("x_ite/Components/RigidBodyPhysics/Contact", Contact_default_);
2476
2590
  /* harmony default export */ const RigidBodyPhysics_Contact = (Contact_default_);
2477
2591
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
2478
- const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.8")] .require ("standard/Math/Numbers/Rotation4");
2592
+ const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("standard/Math/Numbers/Rotation4");
2479
2593
  var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
2480
2594
  ;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js
2481
2595
  /* provided dependency */ var DoubleAxisHingeJoint_$ = __webpack_require__(355);
@@ -2538,7 +2652,7 @@ var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceOb
2538
2652
 
2539
2653
  function DoubleAxisHingeJoint (executionContext)
2540
2654
  {
2541
- RigidBodyPhysics_X3DRigidJointNode.call (this, executionContext);
2655
+ RigidBodyPhysics_X3DRigidJointNode .call (this, executionContext);
2542
2656
 
2543
2657
  this .addType ((X3DConstants_default()).DoubleAxisHingeJoint);
2544
2658
 
@@ -2558,56 +2672,11 @@ function DoubleAxisHingeJoint (executionContext)
2558
2672
  this .localAxis2 = new (Vector3_default()) (0, 0, 0);
2559
2673
  }
2560
2674
 
2561
- DoubleAxisHingeJoint .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DRigidJointNode.prototype),
2675
+ Object .assign (Object .setPrototypeOf (DoubleAxisHingeJoint .prototype, RigidBodyPhysics_X3DRigidJointNode .prototype),
2562
2676
  {
2563
- constructor: DoubleAxisHingeJoint,
2564
- [Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
2565
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
2566
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "forceOutput", new (Fields_default()).MFString ("NONE")),
2567
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "anchorPoint", new (Fields_default()).SFVec3f ()),
2568
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis1", new (Fields_default()).SFVec3f ()),
2569
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis2", new (Fields_default()).SFVec3f ()),
2570
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "minAngle1", new (Fields_default()).SFFloat (-3.14159)),
2571
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxAngle1", new (Fields_default()).SFFloat (3.14159)),
2572
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "desiredAngularVelocity1", new (Fields_default()).SFFloat ()),
2573
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "desiredAngularVelocity2", new (Fields_default()).SFFloat ()),
2574
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxTorque1", new (Fields_default()).SFFloat ()),
2575
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxTorque2", new (Fields_default()).SFFloat ()),
2576
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stopBounce1", new (Fields_default()).SFFloat ()),
2577
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stopConstantForceMix1", new (Fields_default()).SFFloat (0.001)),
2578
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stopErrorCorrection1", new (Fields_default()).SFFloat (0.8)),
2579
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "suspensionForce", new (Fields_default()).SFFloat ()),
2580
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "suspensionErrorCorrection", new (Fields_default()).SFFloat (0.8)),
2581
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body1AnchorPoint", new (Fields_default()).SFVec3f ()),
2582
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body2AnchorPoint", new (Fields_default()).SFVec3f ()),
2583
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body1Axis", new (Fields_default()).SFVec3f ()),
2584
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body2Axis", new (Fields_default()).SFVec3f ()),
2585
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "hinge1Angle", new (Fields_default()).SFFloat ()),
2586
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "hinge2Angle", new (Fields_default()).SFFloat ()),
2587
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "hinge1AngleRate", new (Fields_default()).SFFloat ()),
2588
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "hinge2AngleRate", new (Fields_default()).SFFloat ()),
2589
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body1", new (Fields_default()).SFNode ()),
2590
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body2", new (Fields_default()).SFNode ()),
2591
- ]),
2592
- getTypeName: function ()
2593
- {
2594
- return "DoubleAxisHingeJoint";
2595
- },
2596
- getComponentName: function ()
2597
- {
2598
- return "RigidBodyPhysics";
2599
- },
2600
- getContainerField: function ()
2601
- {
2602
- return "joints";
2603
- },
2604
- getSpecificationRange: function ()
2605
- {
2606
- return ["3.2", "Infinity"];
2607
- },
2608
- initialize: function ()
2609
- {
2610
- RigidBodyPhysics_X3DRigidJointNode.prototype.initialize.call (this);
2677
+ initialize ()
2678
+ {
2679
+ RigidBodyPhysics_X3DRigidJointNode .prototype .initialize .call (this);
2611
2680
 
2612
2681
  this ._anchorPoint .addInterest ("set_joint__", this);
2613
2682
  this ._axis1 .addInterest ("set_joint__", this);
@@ -2648,18 +2717,18 @@ DoubleAxisHingeJoint .prototype = Object .assign (Object .create (RigidBodyPhysi
2648
2717
  this .getInitialInverseMatrix1 () .multDirMatrix (localAxis1) .normalize ();
2649
2718
  this .getInitialInverseMatrix2 () .multDirMatrix (localAxis2) .normalize ();
2650
2719
 
2651
- this .joint = new AmmoClass.btHingeConstraint (this .getBody1 () .getRigidBody (),
2720
+ this .joint = new AmmoClass .btHingeConstraint (this .getBody1 () .getRigidBody (),
2652
2721
  this .getBody2 () .getRigidBody (),
2653
- new AmmoClass.btVector3 (localAnchorPoint1 .x, localAnchorPoint1 .y, localAnchorPoint1 .z),
2654
- new AmmoClass.btVector3 (localAnchorPoint2 .x, localAnchorPoint2 .y, localAnchorPoint2 .z),
2655
- new AmmoClass.btVector3 (localAxis1 .x, localAxis1 .y, localAxis1 .z),
2656
- new AmmoClass.btVector3 (localAxis2 .x, localAxis2 .y, localAxis2 .z),
2722
+ new AmmoClass .btVector3 (localAnchorPoint1 .x, localAnchorPoint1 .y, localAnchorPoint1 .z),
2723
+ new AmmoClass .btVector3 (localAnchorPoint2 .x, localAnchorPoint2 .y, localAnchorPoint2 .z),
2724
+ new AmmoClass .btVector3 (localAxis1 .x, localAxis1 .y, localAxis1 .z),
2725
+ new AmmoClass .btVector3 (localAxis2 .x, localAxis2 .y, localAxis2 .z),
2657
2726
  false);
2658
2727
 
2659
2728
  this .getCollection () .getDynamicsWorld () .addConstraint (this .joint, true);
2660
2729
  };
2661
2730
  })(),
2662
- removeJoint: function ()
2731
+ removeJoint ()
2663
2732
  {
2664
2733
  if (! this .joint)
2665
2734
  return;
@@ -2667,10 +2736,10 @@ DoubleAxisHingeJoint .prototype = Object .assign (Object .create (RigidBodyPhysi
2667
2736
  if (this .getCollection ())
2668
2737
  this .getCollection () .getDynamicsWorld () .removeConstraint (this .joint);
2669
2738
 
2670
- AmmoClass.destroy (this .joint);
2739
+ AmmoClass .destroy (this .joint);
2671
2740
  this .joint = null;
2672
2741
  },
2673
- set_forceOutput__: function ()
2742
+ set_forceOutput__ ()
2674
2743
  {
2675
2744
  for (var key in this .outputs)
2676
2745
  delete this .outputs [key];
@@ -2760,6 +2829,62 @@ DoubleAxisHingeJoint .prototype = Object .assign (Object .create (RigidBodyPhysi
2760
2829
  })(),
2761
2830
  });
2762
2831
 
2832
+ Object .defineProperties (DoubleAxisHingeJoint,
2833
+ {
2834
+ typeName:
2835
+ {
2836
+ value: "DoubleAxisHingeJoint",
2837
+ enumerable: true,
2838
+ },
2839
+ componentName:
2840
+ {
2841
+ value: "RigidBodyPhysics",
2842
+ enumerable: true,
2843
+ },
2844
+ containerField:
2845
+ {
2846
+ value: "joints",
2847
+ enumerable: true,
2848
+ },
2849
+ specificationRange:
2850
+ {
2851
+ value: Object .freeze (["3.2", "Infinity"]),
2852
+ enumerable: true,
2853
+ },
2854
+ fieldDefinitions:
2855
+ {
2856
+ value: new (FieldDefinitionArray_default()) ([
2857
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
2858
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "forceOutput", new (Fields_default()).MFString ("NONE")),
2859
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "anchorPoint", new (Fields_default()).SFVec3f ()),
2860
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis1", new (Fields_default()).SFVec3f ()),
2861
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis2", new (Fields_default()).SFVec3f ()),
2862
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "minAngle1", new (Fields_default()).SFFloat (-3.14159)),
2863
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxAngle1", new (Fields_default()).SFFloat (3.14159)),
2864
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "desiredAngularVelocity1", new (Fields_default()).SFFloat ()),
2865
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "desiredAngularVelocity2", new (Fields_default()).SFFloat ()),
2866
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxTorque1", new (Fields_default()).SFFloat ()),
2867
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxTorque2", new (Fields_default()).SFFloat ()),
2868
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stopBounce1", new (Fields_default()).SFFloat ()),
2869
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stopConstantForceMix1", new (Fields_default()).SFFloat (0.001)),
2870
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stopErrorCorrection1", new (Fields_default()).SFFloat (0.8)),
2871
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "suspensionForce", new (Fields_default()).SFFloat ()),
2872
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "suspensionErrorCorrection", new (Fields_default()).SFFloat (0.8)),
2873
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body1AnchorPoint", new (Fields_default()).SFVec3f ()),
2874
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body2AnchorPoint", new (Fields_default()).SFVec3f ()),
2875
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body1Axis", new (Fields_default()).SFVec3f ()),
2876
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body2Axis", new (Fields_default()).SFVec3f ()),
2877
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "hinge1Angle", new (Fields_default()).SFFloat ()),
2878
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "hinge2Angle", new (Fields_default()).SFFloat ()),
2879
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "hinge1AngleRate", new (Fields_default()).SFFloat ()),
2880
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "hinge2AngleRate", new (Fields_default()).SFFloat ()),
2881
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body1", new (Fields_default()).SFNode ()),
2882
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body2", new (Fields_default()).SFNode ()),
2883
+ ]),
2884
+ enumerable: true,
2885
+ },
2886
+ });
2887
+
2763
2888
  const DoubleAxisHingeJoint_default_ = DoubleAxisHingeJoint;
2764
2889
  ;
2765
2890
 
@@ -2821,7 +2946,7 @@ Namespace_default().set ("x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint
2821
2946
 
2822
2947
  function MotorJoint (executionContext)
2823
2948
  {
2824
- RigidBodyPhysics_X3DRigidJointNode.call (this, executionContext);
2949
+ RigidBodyPhysics_X3DRigidJointNode .call (this, executionContext);
2825
2950
 
2826
2951
  this .addType ((X3DConstants_default()).MotorJoint);
2827
2952
 
@@ -2838,53 +2963,62 @@ function MotorJoint (executionContext)
2838
2963
  this ._motor3AngleRate .setUnit ("angularRate");
2839
2964
  }
2840
2965
 
2841
- MotorJoint .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DRigidJointNode.prototype),
2966
+ Object .setPrototypeOf (MotorJoint .prototype, RigidBodyPhysics_X3DRigidJointNode .prototype);
2967
+
2968
+ Object .defineProperties (MotorJoint,
2842
2969
  {
2843
- constructor: MotorJoint,
2844
- [Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
2845
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
2846
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body1", new (Fields_default()).SFNode ()),
2847
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body2", new (Fields_default()).SFNode ()),
2848
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "forceOutput", new (Fields_default()).MFString ("NONE")),
2849
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis1Angle", new (Fields_default()).SFFloat ()),
2850
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis1Torque", new (Fields_default()).SFFloat ()),
2851
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis2Angle", new (Fields_default()).SFFloat ()),
2852
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis2Torque", new (Fields_default()).SFFloat ()),
2853
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis3Angle", new (Fields_default()).SFFloat ()),
2854
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis3Torque", new (Fields_default()).SFFloat ()),
2855
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabledAxes", new (Fields_default()).SFInt32 (1)),
2856
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "motor1Axis", new (Fields_default()).SFVec3f ()),
2857
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "motor2Axis", new (Fields_default()).SFVec3f ()),
2858
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "motor3Axis", new (Fields_default()).SFVec3f ()),
2859
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop1Bounce", new (Fields_default()).SFFloat ()),
2860
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop1ErrorCorrection", new (Fields_default()).SFFloat (0.8)),
2861
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop2Bounce", new (Fields_default()).SFFloat ()),
2862
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop2ErrorCorrection", new (Fields_default()).SFFloat (0.8)),
2863
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop3Bounce", new (Fields_default()).SFFloat ()),
2864
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop3ErrorCorrection", new (Fields_default()).SFFloat (0.8)),
2865
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "motor1Angle", new (Fields_default()).SFFloat ()),
2866
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "motor1AngleRate", new (Fields_default()).SFFloat ()),
2867
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "motor2Angle", new (Fields_default()).SFFloat ()),
2868
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "motor2AngleRate", new (Fields_default()).SFFloat ()),
2869
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "motor3Angle", new (Fields_default()).SFFloat ()),
2870
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "motor3AngleRate", new (Fields_default()).SFFloat ()),
2871
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "autoCalc", new (Fields_default()).SFBool ()),
2872
- ]),
2873
- getTypeName: function ()
2874
- {
2875
- return "MotorJoint";
2876
- },
2877
- getComponentName: function ()
2878
- {
2879
- return "RigidBodyPhysics";
2880
- },
2881
- getContainerField: function ()
2882
- {
2883
- return "joints";
2884
- },
2885
- getSpecificationRange: function ()
2886
- {
2887
- return ["3.2", "Infinity"];
2970
+ typeName:
2971
+ {
2972
+ value: "MotorJoint",
2973
+ enumerable: true,
2974
+ },
2975
+ componentName:
2976
+ {
2977
+ value: "RigidBodyPhysics",
2978
+ enumerable: true,
2979
+ },
2980
+ containerField:
2981
+ {
2982
+ value: "joints",
2983
+ enumerable: true,
2984
+ },
2985
+ specificationRange:
2986
+ {
2987
+ value: Object .freeze (["3.2", "Infinity"]),
2988
+ enumerable: true,
2989
+ },
2990
+ fieldDefinitions:
2991
+ {
2992
+ value: new (FieldDefinitionArray_default()) ([
2993
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
2994
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "autoCalc", new (Fields_default()).SFBool ()),
2995
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "forceOutput", new (Fields_default()).MFString ("NONE")),
2996
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis1Angle", new (Fields_default()).SFFloat ()),
2997
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis1Torque", new (Fields_default()).SFFloat ()),
2998
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis2Angle", new (Fields_default()).SFFloat ()),
2999
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis2Torque", new (Fields_default()).SFFloat ()),
3000
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis3Angle", new (Fields_default()).SFFloat ()),
3001
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis3Torque", new (Fields_default()).SFFloat ()),
3002
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabledAxes", new (Fields_default()).SFInt32 (1)),
3003
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "motor1Axis", new (Fields_default()).SFVec3f ()),
3004
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "motor2Axis", new (Fields_default()).SFVec3f ()),
3005
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "motor3Axis", new (Fields_default()).SFVec3f ()),
3006
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop1Bounce", new (Fields_default()).SFFloat ()),
3007
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop1ErrorCorrection", new (Fields_default()).SFFloat (0.8)),
3008
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop2Bounce", new (Fields_default()).SFFloat ()),
3009
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop2ErrorCorrection", new (Fields_default()).SFFloat (0.8)),
3010
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop3Bounce", new (Fields_default()).SFFloat ()),
3011
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop3ErrorCorrection", new (Fields_default()).SFFloat (0.8)),
3012
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "motor1Angle", new (Fields_default()).SFFloat ()),
3013
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "motor1AngleRate", new (Fields_default()).SFFloat ()),
3014
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "motor2Angle", new (Fields_default()).SFFloat ()),
3015
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "motor2AngleRate", new (Fields_default()).SFFloat ()),
3016
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "motor3Angle", new (Fields_default()).SFFloat ()),
3017
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "motor3AngleRate", new (Fields_default()).SFFloat ()),
3018
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body1", new (Fields_default()).SFNode ()),
3019
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body2", new (Fields_default()).SFNode ()),
3020
+ ]),
3021
+ enumerable: true,
2888
3022
  },
2889
3023
  });
2890
3024
 
@@ -2894,7 +3028,7 @@ const MotorJoint_default_ = MotorJoint;
2894
3028
  Namespace_default().set ("x_ite/Components/RigidBodyPhysics/MotorJoint", MotorJoint_default_);
2895
3029
  /* harmony default export */ const RigidBodyPhysics_MotorJoint = (MotorJoint_default_);
2896
3030
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Quaternion\")"
2897
- const Quaternion_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.8")] .require ("standard/Math/Numbers/Quaternion");
3031
+ const Quaternion_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("standard/Math/Numbers/Quaternion");
2898
3032
  var Quaternion_default = /*#__PURE__*/__webpack_require__.n(Quaternion_namespaceObject);
2899
3033
  ;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/RigidBody.js
2900
3034
  /*******************************************************************************
@@ -2975,10 +3109,10 @@ function RigidBody (executionContext)
2975
3109
  this ._disableLinearSpeed .setUnit ("speed");
2976
3110
  this ._disableAngularSpeed .setUnit ("angularRate");
2977
3111
 
2978
- this .compoundShape = new AmmoClass.btCompoundShape ();
2979
- this .motionState = new AmmoClass.btDefaultMotionState ();
2980
- this .constructionInfo = new AmmoClass.btRigidBodyConstructionInfo (0, this .motionState, this .compoundShape);
2981
- this .rigidBody = new AmmoClass.btRigidBody (this .constructionInfo);
3112
+ this .compoundShape = new AmmoClass .btCompoundShape ();
3113
+ this .motionState = new AmmoClass .btDefaultMotionState ();
3114
+ this .constructionInfo = new AmmoClass .btRigidBodyConstructionInfo (0, this .motionState, this .compoundShape);
3115
+ this .rigidBody = new AmmoClass .btRigidBody (this .constructionInfo);
2982
3116
  this .geometryNodes = [ ];
2983
3117
  this .otherGeometryNodes = [ ];
2984
3118
  this .matrix = new (Matrix4_default()) ();
@@ -2986,54 +3120,11 @@ function RigidBody (executionContext)
2986
3120
  this .torque = new (Vector3_default()) (0, 0, 0);
2987
3121
  }
2988
3122
 
2989
- RigidBody .prototype = Object .assign (Object .create ((X3DNode_default()).prototype),
3123
+ Object .assign (Object .setPrototypeOf (RigidBody .prototype, (X3DNode_default()).prototype),
2990
3124
  {
2991
- constructor: RigidBody,
2992
- [Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
2993
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
2994
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
2995
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "fixed", new (Fields_default()).SFBool ()),
2996
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "position", new (Fields_default()).SFVec3f ()),
2997
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "orientation", new (Fields_default()).SFRotation ()),
2998
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "linearVelocity", new (Fields_default()).SFVec3f ()),
2999
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "angularVelocity", new (Fields_default()).SFVec3f ()),
3000
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "useFiniteRotation", new (Fields_default()).SFBool ()),
3001
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "finiteRotationAxis", new (Fields_default()).SFVec3f (0, 1, 0)),
3002
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "autoDamp", new (Fields_default()).SFBool ()),
3003
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "linearDampingFactor", new (Fields_default()).SFFloat (0.001)),
3004
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "angularDampingFactor", new (Fields_default()).SFFloat (0.001)),
3005
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "mass", new (Fields_default()).SFFloat (1)),
3006
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "centerOfMass", new (Fields_default()).SFVec3f ()),
3007
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "massDensityModel", new (Fields_default()).SFNode ()),
3008
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "useGlobalGravity", new (Fields_default()).SFBool (true)),
3009
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "forces", new (Fields_default()).MFVec3f ()),
3010
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "torques", new (Fields_default()).MFVec3f ()),
3011
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "inertia", new (Fields_default()).SFMatrix3f ()),
3012
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "autoDisable", new (Fields_default()).SFBool ()),
3013
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableTime", new (Fields_default()).SFFloat ()),
3014
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableLinearSpeed", new (Fields_default()).SFFloat ()),
3015
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableAngularSpeed", new (Fields_default()).SFFloat ()),
3016
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "geometry", new (Fields_default()).MFNode ()),
3017
- ]),
3018
- getTypeName: function ()
3019
- {
3020
- return "RigidBody";
3021
- },
3022
- getComponentName: function ()
3023
- {
3024
- return "RigidBodyPhysics";
3025
- },
3026
- getContainerField: function ()
3027
- {
3028
- return "bodies";
3029
- },
3030
- getSpecificationRange: function ()
3031
- {
3032
- return ["3.2", "Infinity"];
3033
- },
3034
- initialize: function ()
3035
- {
3036
- X3DNode_default().prototype.initialize.call (this);
3125
+ initialize ()
3126
+ {
3127
+ X3DNode_default().prototype .initialize .call (this);
3037
3128
 
3038
3129
  this ._linearVelocity .addInterest ("set_linearVelocity__", this);
3039
3130
  this ._angularVelocity .addInterest ("set_angularVelocity__", this);
@@ -3061,28 +3152,28 @@ RigidBody .prototype = Object .assign (Object .create ((X3DNode_default()).proto
3061
3152
  this .set_torques__ ();
3062
3153
  this .set_geometry__ ();
3063
3154
  },
3064
- setCollection: function (value)
3155
+ setCollection (value)
3065
3156
  {
3066
3157
  this ._collection = value;
3067
3158
  },
3068
- getCollection: function ()
3159
+ getCollection ()
3069
3160
  {
3070
3161
  return this ._collection .getValue ();
3071
3162
  },
3072
- getRigidBody: function ()
3163
+ getRigidBody ()
3073
3164
  {
3074
3165
  return this .rigidBody;
3075
3166
  },
3076
- getMatrix: function ()
3167
+ getMatrix ()
3077
3168
  {
3078
3169
  return this .matrix;
3079
3170
  },
3080
- set_position__: function ()
3171
+ set_position__ ()
3081
3172
  {
3082
3173
  for (var i = 0, length = this .geometryNodes .length; i < length; ++ i)
3083
3174
  this .geometryNodes [i] ._translation = this ._position;
3084
3175
  },
3085
- set_orientation__: function ()
3176
+ set_orientation__ ()
3086
3177
  {
3087
3178
  for (var i = 0, length = this .geometryNodes .length; i < length; ++ i)
3088
3179
  this .geometryNodes [i] ._rotation = this ._orientation;
@@ -3090,11 +3181,11 @@ RigidBody .prototype = Object .assign (Object .create ((X3DNode_default()).proto
3090
3181
  set_transform__: (function ()
3091
3182
  {
3092
3183
  var
3093
- o = new AmmoClass.btVector3 (0, 0, 0),
3094
- t = new AmmoClass.btTransform (),
3184
+ o = new AmmoClass .btVector3 (0, 0, 0),
3185
+ t = new AmmoClass .btTransform (),
3095
3186
  im = new (Matrix4_default()) (),
3096
- it = new AmmoClass.btTransform (),
3097
- io = new AmmoClass.btVector3 (0, 0, 0);
3187
+ it = new AmmoClass .btTransform (),
3188
+ io = new AmmoClass .btVector3 (0, 0, 0);
3098
3189
 
3099
3190
  return function ()
3100
3191
  {
@@ -3140,7 +3231,7 @@ RigidBody .prototype = Object .assign (Object .create ((X3DNode_default()).proto
3140
3231
  })(),
3141
3232
  set_linearVelocity__: (function ()
3142
3233
  {
3143
- var lv = new AmmoClass.btVector3 (0, 0, 0);
3234
+ var lv = new AmmoClass .btVector3 (0, 0, 0);
3144
3235
 
3145
3236
  return function ()
3146
3237
  {
@@ -3155,7 +3246,7 @@ RigidBody .prototype = Object .assign (Object .create ((X3DNode_default()).proto
3155
3246
  }) (),
3156
3247
  set_angularVelocity__: (function ()
3157
3248
  {
3158
- var av = new AmmoClass.btVector3 (0, 0, 0);
3249
+ var av = new AmmoClass .btVector3 (0, 0, 0);
3159
3250
 
3160
3251
  return function ()
3161
3252
  {
@@ -3170,7 +3261,7 @@ RigidBody .prototype = Object .assign (Object .create ((X3DNode_default()).proto
3170
3261
  })(),
3171
3262
  set_finiteRotationAxis__: (function ()
3172
3263
  {
3173
- var angularFactor = new AmmoClass.btVector3 (1, 1, 1);
3264
+ var angularFactor = new AmmoClass .btVector3 (1, 1, 1);
3174
3265
 
3175
3266
  return function ()
3176
3267
  {
@@ -3182,7 +3273,7 @@ RigidBody .prototype = Object .assign (Object .create ((X3DNode_default()).proto
3182
3273
  this .rigidBody .setAngularFactor (angularFactor);
3183
3274
  };
3184
3275
  })(),
3185
- set_damping__: function ()
3276
+ set_damping__ ()
3186
3277
  {
3187
3278
  if (this ._autoDamp .getValue ())
3188
3279
  this .rigidBody .setDamping (this ._linearDampingFactor .getValue (), this ._angularDampingFactor .getValue ());
@@ -3194,9 +3285,9 @@ RigidBody .prototype = Object .assign (Object .create ((X3DNode_default()).proto
3194
3285
  set_centerOfMass__: (function ()
3195
3286
  {
3196
3287
  var
3197
- rotation = new AmmoClass.btQuaternion (0, 0, 0, 1),
3198
- origin = new AmmoClass.btVector3 (0, 0, 0),
3199
- centerOfMass = new AmmoClass.btTransform (rotation, origin);
3288
+ rotation = new AmmoClass .btQuaternion (0, 0, 0, 1),
3289
+ origin = new AmmoClass .btVector3 (0, 0, 0),
3290
+ centerOfMass = new AmmoClass .btTransform (rotation, origin);
3200
3291
 
3201
3292
  return function ()
3202
3293
  {
@@ -3208,7 +3299,7 @@ RigidBody .prototype = Object .assign (Object .create ((X3DNode_default()).proto
3208
3299
  })(),
3209
3300
  set_massProps__: (function ()
3210
3301
  {
3211
- var localInertia = new AmmoClass.btVector3 (0, 0, 0);
3302
+ var localInertia = new AmmoClass .btVector3 (0, 0, 0);
3212
3303
 
3213
3304
  return function ()
3214
3305
  {
@@ -3223,21 +3314,21 @@ RigidBody .prototype = Object .assign (Object .create ((X3DNode_default()).proto
3223
3314
  this .rigidBody .setMassProps (this ._fixed .getValue () ? 0 : this ._mass .getValue (), localInertia);
3224
3315
  };
3225
3316
  })(),
3226
- set_forces__: function ()
3317
+ set_forces__ ()
3227
3318
  {
3228
3319
  this .force .set (0, 0, 0);
3229
3320
 
3230
3321
  for (var i = 0, length = this ._forces .length; i < length; ++ i)
3231
3322
  this .force .add (this ._forces [i] .getValue ());
3232
3323
  },
3233
- set_torques__: function ()
3324
+ set_torques__ ()
3234
3325
  {
3235
3326
  this .torque .set (0, 0, 0);
3236
3327
 
3237
3328
  for (var i = 0, length = this ._torques .length; i < length; ++ i)
3238
3329
  this .torque .add (this ._torques [i] .getValue ());
3239
3330
  },
3240
- set_disable__: function ()
3331
+ set_disable__ ()
3241
3332
  {
3242
3333
  if (this ._autoDisable .getValue ())
3243
3334
  {
@@ -3248,7 +3339,7 @@ RigidBody .prototype = Object .assign (Object .create ((X3DNode_default()).proto
3248
3339
  this .rigidBody .setSleepingThresholds (0, 0);
3249
3340
  }
3250
3341
  },
3251
- set_geometry__: function ()
3342
+ set_geometry__ ()
3252
3343
  {
3253
3344
  var geometryNodes = this .geometryNodes;
3254
3345
 
@@ -3308,13 +3399,13 @@ RigidBody .prototype = Object .assign (Object .create ((X3DNode_default()).proto
3308
3399
 
3309
3400
  this .set_compoundShape__ ();
3310
3401
  },
3311
- set_body__: function ()
3402
+ set_body__ ()
3312
3403
  {
3313
3404
  this ._otherGeometry .addEvent ();
3314
3405
  },
3315
3406
  set_compoundShape__: (function ()
3316
3407
  {
3317
- var transform = new AmmoClass.btTransform ();
3408
+ var transform = new AmmoClass .btTransform ();
3318
3409
 
3319
3410
  return function ()
3320
3411
  {
@@ -3341,10 +3432,10 @@ RigidBody .prototype = Object .assign (Object .create ((X3DNode_default()).proto
3341
3432
  applyForces: (function ()
3342
3433
  {
3343
3434
  var
3344
- g = new AmmoClass.btVector3 (0, 0, 0),
3345
- f = new AmmoClass.btVector3 (0, 0, 0),
3346
- t = new AmmoClass.btVector3 (0, 0, 0),
3347
- z = new AmmoClass.btVector3 (0, 0, 0);
3435
+ g = new AmmoClass .btVector3 (0, 0, 0),
3436
+ f = new AmmoClass .btVector3 (0, 0, 0),
3437
+ t = new AmmoClass .btVector3 (0, 0, 0),
3438
+ z = new AmmoClass .btVector3 (0, 0, 0);
3348
3439
 
3349
3440
  return function (gravity)
3350
3441
  {
@@ -3367,7 +3458,7 @@ RigidBody .prototype = Object .assign (Object .create ((X3DNode_default()).proto
3367
3458
  update: (function ()
3368
3459
  {
3369
3460
  var
3370
- transform = new AmmoClass.btTransform (),
3461
+ transform = new AmmoClass .btTransform (),
3371
3462
  position = new (Vector3_default()) (0, 0, 0),
3372
3463
  quaternion = new (Quaternion_default()) (0, 0, 0, 1),
3373
3464
  orientation = new (Rotation4_default()) (),
@@ -3392,14 +3483,68 @@ RigidBody .prototype = Object .assign (Object .create ((X3DNode_default()).proto
3392
3483
  this ._angularVelocity = angularVelocity .set (btAngularVelocity .x (), btAngularVelocity .y (), btAngularVelocity .z ());
3393
3484
  };
3394
3485
  })(),
3395
- dispose: function ()
3486
+ dispose ()
3396
3487
  {
3397
- AmmoClass.destroy (this .rigidBody);
3398
- AmmoClass.destroy (this .constructionInfo);
3399
- AmmoClass.destroy (this .motionState);
3400
- AmmoClass.destroy (this .compoundShape);
3488
+ AmmoClass .destroy (this .rigidBody);
3489
+ AmmoClass .destroy (this .constructionInfo);
3490
+ AmmoClass .destroy (this .motionState);
3491
+ AmmoClass .destroy (this .compoundShape);
3401
3492
 
3402
- X3DNode_default().prototype.dispose.call (this);
3493
+ X3DNode_default().prototype .dispose .call (this);
3494
+ },
3495
+ });
3496
+
3497
+ Object .defineProperties (RigidBody,
3498
+ {
3499
+ typeName:
3500
+ {
3501
+ value: "RigidBody",
3502
+ enumerable: true,
3503
+ },
3504
+ componentName:
3505
+ {
3506
+ value: "RigidBodyPhysics",
3507
+ enumerable: true,
3508
+ },
3509
+ containerField:
3510
+ {
3511
+ value: "bodies",
3512
+ enumerable: true,
3513
+ },
3514
+ specificationRange:
3515
+ {
3516
+ value: Object .freeze (["3.2", "Infinity"]),
3517
+ enumerable: true,
3518
+ },
3519
+ fieldDefinitions:
3520
+ {
3521
+ value: new (FieldDefinitionArray_default()) ([
3522
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
3523
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
3524
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "fixed", new (Fields_default()).SFBool ()),
3525
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "position", new (Fields_default()).SFVec3f ()),
3526
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "orientation", new (Fields_default()).SFRotation ()),
3527
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "linearVelocity", new (Fields_default()).SFVec3f ()),
3528
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "angularVelocity", new (Fields_default()).SFVec3f ()),
3529
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "useFiniteRotation", new (Fields_default()).SFBool ()),
3530
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "finiteRotationAxis", new (Fields_default()).SFVec3f (0, 1, 0)),
3531
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "autoDamp", new (Fields_default()).SFBool ()),
3532
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "linearDampingFactor", new (Fields_default()).SFFloat (0.001)),
3533
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "angularDampingFactor", new (Fields_default()).SFFloat (0.001)),
3534
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "mass", new (Fields_default()).SFFloat (1)),
3535
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "centerOfMass", new (Fields_default()).SFVec3f ()),
3536
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "massDensityModel", new (Fields_default()).SFNode ()),
3537
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "useGlobalGravity", new (Fields_default()).SFBool (true)),
3538
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "forces", new (Fields_default()).MFVec3f ()),
3539
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "torques", new (Fields_default()).MFVec3f ()),
3540
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "inertia", new (Fields_default()).SFMatrix3f ()),
3541
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "autoDisable", new (Fields_default()).SFBool ()),
3542
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableTime", new (Fields_default()).SFFloat ()),
3543
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableLinearSpeed", new (Fields_default()).SFFloat ()),
3544
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableAngularSpeed", new (Fields_default()).SFFloat ()),
3545
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "geometry", new (Fields_default()).MFNode ()),
3546
+ ]),
3547
+ enumerable: true,
3403
3548
  },
3404
3549
  });
3405
3550
 
@@ -3482,11 +3627,11 @@ function RigidBodyCollection (executionContext)
3482
3627
 
3483
3628
  // Members
3484
3629
 
3485
- this .broadphase = new AmmoClass.btDbvtBroadphase ();
3486
- this .collisionConfiguration = new AmmoClass.btDefaultCollisionConfiguration ();
3487
- this .dispatcher = new AmmoClass.btCollisionDispatcher (this .collisionConfiguration);
3488
- this .solver = new AmmoClass.btSequentialImpulseConstraintSolver ();
3489
- this .dynamicsWorld = new AmmoClass.btDiscreteDynamicsWorld (this .dispatcher, this .broadphase, this .solver, this .collisionConfiguration);
3630
+ this .broadphase = new AmmoClass .btDbvtBroadphase ();
3631
+ this .collisionConfiguration = new AmmoClass .btDefaultCollisionConfiguration ();
3632
+ this .dispatcher = new AmmoClass .btCollisionDispatcher (this .collisionConfiguration);
3633
+ this .solver = new AmmoClass .btSequentialImpulseConstraintSolver ();
3634
+ this .dynamicsWorld = new AmmoClass .btDiscreteDynamicsWorld (this .dispatcher, this .broadphase, this .solver, this .collisionConfiguration);
3490
3635
  this .deltaTime = 0;
3491
3636
  this .colliderNode = null;
3492
3637
  this .bodyNodes = [ ];
@@ -3496,47 +3641,11 @@ function RigidBodyCollection (executionContext)
3496
3641
  this .otherJointNodes = [ ];
3497
3642
  }
3498
3643
 
3499
- RigidBodyCollection .prototype = Object .assign (Object .create ((X3DChildNode_default()).prototype),
3644
+ Object .assign (Object .setPrototypeOf (RigidBodyCollection .prototype, (X3DChildNode_default()).prototype),
3500
3645
  {
3501
- constructor: RigidBodyCollection,
3502
- [Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
3503
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
3504
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
3505
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOnly, "set_contacts", new (Fields_default()).MFNode ()),
3506
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "gravity", new (Fields_default()).SFVec3f (0, -9.8, 0)),
3507
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "preferAccuracy", new (Fields_default()).SFBool ()),
3508
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "errorCorrection", new (Fields_default()).SFFloat (0.8)),
3509
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "iterations", new (Fields_default()).SFInt32 (10)),
3510
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "constantForceMix", new (Fields_default()).SFFloat (0.0001)),
3511
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxCorrectionSpeed", new (Fields_default()).SFFloat (-1)),
3512
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "contactSurfaceThickness", new (Fields_default()).SFFloat ()),
3513
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "autoDisable", new (Fields_default()).SFBool ()),
3514
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableTime", new (Fields_default()).SFFloat ()),
3515
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableLinearSpeed", new (Fields_default()).SFFloat ()),
3516
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableAngularSpeed", new (Fields_default()).SFFloat ()),
3517
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "collider", new (Fields_default()).SFNode ()),
3518
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bodies", new (Fields_default()).MFNode ()),
3519
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "joints", new (Fields_default()).MFNode ()),
3520
- ]),
3521
- getTypeName: function ()
3522
- {
3523
- return "RigidBodyCollection";
3524
- },
3525
- getComponentName: function ()
3646
+ initialize ()
3526
3647
  {
3527
- return "RigidBodyPhysics";
3528
- },
3529
- getContainerField: function ()
3530
- {
3531
- return "children";
3532
- },
3533
- getSpecificationRange: function ()
3534
- {
3535
- return ["3.2", "Infinity"];
3536
- },
3537
- initialize: function ()
3538
- {
3539
- X3DChildNode_default().prototype.initialize.call (this);
3648
+ X3DChildNode_default().prototype .initialize .call (this);
3540
3649
 
3541
3650
  this .getLive () .addInterest ("set_enabled__", this);
3542
3651
 
@@ -3553,11 +3662,11 @@ RigidBodyCollection .prototype = Object .assign (Object .create ((X3DChildNode_d
3553
3662
  this .set_collider__ ();
3554
3663
  this .set_bodies__ ();
3555
3664
  },
3556
- getDynamicsWorld: function ()
3665
+ getDynamicsWorld ()
3557
3666
  {
3558
3667
  return this .dynamicsWorld;
3559
3668
  },
3560
- getTimeStep: function ()
3669
+ getTimeStep ()
3561
3670
  {
3562
3671
  const DELAY = 15; // Delay in frames when dt full applies.
3563
3672
 
@@ -3567,19 +3676,19 @@ RigidBodyCollection .prototype = Object .assign (Object .create ((X3DChildNode_d
3567
3676
 
3568
3677
  return deltaTime;
3569
3678
  },
3570
- set_enabled__: function ()
3679
+ set_enabled__ ()
3571
3680
  {
3572
3681
  if (this .getLive () .getValue () && this ._enabled .getValue ())
3573
3682
  this .getBrowser () .sensorEvents () .addInterest ("update", this);
3574
3683
  else
3575
3684
  this .getBrowser () .sensorEvents () .removeInterest ("update", this);
3576
3685
  },
3577
- set_contacts__: function ()
3686
+ set_contacts__ ()
3578
3687
  {
3579
3688
  },
3580
3689
  set_gravity__: (function ()
3581
3690
  {
3582
- var gravity = new AmmoClass.btVector3 (0, 0, 0);
3691
+ var gravity = new AmmoClass .btVector3 (0, 0, 0);
3583
3692
 
3584
3693
  return function ()
3585
3694
  {
@@ -3590,16 +3699,16 @@ RigidBodyCollection .prototype = Object .assign (Object .create ((X3DChildNode_d
3590
3699
  this .dynamicsWorld .setGravity (gravity);
3591
3700
  };
3592
3701
  })(),
3593
- set_contactSurfaceThickness__: function ()
3702
+ set_contactSurfaceThickness__ ()
3594
3703
  {
3595
3704
  for (var i = 0, length = this .bodyNodes .length; i < length; ++ i)
3596
3705
  this .bodyNodes [i] .getRigidBody () .getCollisionShape () .setMargin (this ._contactSurfaceThickness .getValue ());
3597
3706
  },
3598
- set_collider__: function ()
3707
+ set_collider__ ()
3599
3708
  {
3600
3709
  this .colliderNode = X3DCast_default() ((X3DConstants_default()).CollisionCollection, this ._collider);
3601
3710
  },
3602
- set_bounce__: function ()
3711
+ set_bounce__ ()
3603
3712
  {
3604
3713
  var
3605
3714
  colliderNode = this .colliderNode,
@@ -3607,7 +3716,7 @@ RigidBodyCollection .prototype = Object .assign (Object .create ((X3DChildNode_d
3607
3716
 
3608
3717
  if (colliderNode && colliderNode ._enabled .getValue ())
3609
3718
  {
3610
- if (colliderNode .getAppliedParameters () .has (RigidBodyPhysics_AppliedParametersType.BOUNCE))
3719
+ if (colliderNode .getAppliedParameters () .has (RigidBodyPhysics_AppliedParametersType .BOUNCE))
3611
3720
  {
3612
3721
  for (var i = 0, length = bodyNodes .length; i < length; ++ i)
3613
3722
  {
@@ -3626,11 +3735,11 @@ RigidBodyCollection .prototype = Object .assign (Object .create ((X3DChildNode_d
3626
3735
  for (var i = 0, length = bodyNodes .length; i < length; ++ i)
3627
3736
  bodyNodes [i] .getRigidBody () .setRestitution (0);
3628
3737
  },
3629
- set_frictionCoefficients__: function ()
3738
+ set_frictionCoefficients__ ()
3630
3739
  {
3631
3740
  if (this .colliderNode && this .colliderNode ._enabled .getValue ())
3632
3741
  {
3633
- if (this .colliderNode .getAppliedParameters () .has (RigidBodyPhysics_AppliedParametersType.FRICTION_COEFFICIENT_2))
3742
+ if (this .colliderNode .getAppliedParameters () .has (RigidBodyPhysics_AppliedParametersType .FRICTION_COEFFICIENT_2))
3634
3743
  {
3635
3744
  for (var i = 0, length = this .bodyNodes .length; i < length; ++ i)
3636
3745
  {
@@ -3652,7 +3761,7 @@ RigidBodyCollection .prototype = Object .assign (Object .create ((X3DChildNode_d
3652
3761
  rigidBody .setRollingFriction (0);
3653
3762
  }
3654
3763
  },
3655
- set_bodies__: function ()
3764
+ set_bodies__ ()
3656
3765
  {
3657
3766
  for (var i = 0, length = this .bodyNodes .length; i < length; ++ i)
3658
3767
  {
@@ -3693,7 +3802,7 @@ RigidBodyCollection .prototype = Object .assign (Object .create ((X3DChildNode_d
3693
3802
  this .set_dynamicsWorld__ ();
3694
3803
  this .set_joints__ ();
3695
3804
  },
3696
- set_dynamicsWorld__: function ()
3805
+ set_dynamicsWorld__ ()
3697
3806
  {
3698
3807
  for (var i = 0, length = this .rigidBodies .length; i < length; ++ i)
3699
3808
  this .dynamicsWorld .removeRigidBody (this .rigidBodies [i]);
@@ -3713,7 +3822,7 @@ RigidBodyCollection .prototype = Object .assign (Object .create ((X3DChildNode_d
3713
3822
  for (var i = 0, length = this .rigidBodies .length; i < length; ++ i)
3714
3823
  this .dynamicsWorld .addRigidBody (this .rigidBodies [i]);
3715
3824
  },
3716
- set_joints__: function ()
3825
+ set_joints__ ()
3717
3826
  {
3718
3827
  for (var i = 0, length = this .jointNodes .length; i < length; ++ i)
3719
3828
  this .jointNodes [i] .setCollection (null);
@@ -3744,7 +3853,7 @@ RigidBodyCollection .prototype = Object .assign (Object .create ((X3DChildNode_d
3744
3853
  this .jointNodes .push (jointNode);
3745
3854
  }
3746
3855
  },
3747
- update: function ()
3856
+ update ()
3748
3857
  {
3749
3858
  try
3750
3859
  {
@@ -3786,6 +3895,53 @@ RigidBodyCollection .prototype = Object .assign (Object .create ((X3DChildNode_d
3786
3895
  },
3787
3896
  });
3788
3897
 
3898
+ Object .defineProperties (RigidBodyCollection,
3899
+ {
3900
+ typeName:
3901
+ {
3902
+ value: "RigidBodyCollection",
3903
+ enumerable: true,
3904
+ },
3905
+ componentName:
3906
+ {
3907
+ value: "RigidBodyPhysics",
3908
+ enumerable: true,
3909
+ },
3910
+ containerField:
3911
+ {
3912
+ value: "children",
3913
+ enumerable: true,
3914
+ },
3915
+ specificationRange:
3916
+ {
3917
+ value: Object .freeze (["3.2", "Infinity"]),
3918
+ enumerable: true,
3919
+ },
3920
+ fieldDefinitions:
3921
+ {
3922
+ value: new (FieldDefinitionArray_default()) ([
3923
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
3924
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
3925
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOnly, "set_contacts", new (Fields_default()).MFNode ()),
3926
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "gravity", new (Fields_default()).SFVec3f (0, -9.8, 0)),
3927
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "preferAccuracy", new (Fields_default()).SFBool ()),
3928
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "errorCorrection", new (Fields_default()).SFFloat (0.8)),
3929
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "iterations", new (Fields_default()).SFInt32 (10)),
3930
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "constantForceMix", new (Fields_default()).SFFloat (0.0001)),
3931
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxCorrectionSpeed", new (Fields_default()).SFFloat (-1)),
3932
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "contactSurfaceThickness", new (Fields_default()).SFFloat ()),
3933
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "autoDisable", new (Fields_default()).SFBool ()),
3934
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableTime", new (Fields_default()).SFFloat ()),
3935
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableLinearSpeed", new (Fields_default()).SFFloat ()),
3936
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableAngularSpeed", new (Fields_default()).SFFloat ()),
3937
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "collider", new (Fields_default()).SFNode ()),
3938
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bodies", new (Fields_default()).MFNode ()),
3939
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "joints", new (Fields_default()).MFNode ()),
3940
+ ]),
3941
+ enumerable: true,
3942
+ },
3943
+ });
3944
+
3789
3945
  const RigidBodyCollection_default_ = RigidBodyCollection;
3790
3946
  ;
3791
3947
 
@@ -3852,7 +4008,7 @@ Namespace_default().set ("x_ite/Components/RigidBodyPhysics/RigidBodyCollection"
3852
4008
 
3853
4009
  function SingleAxisHingeJoint (executionContext)
3854
4010
  {
3855
- RigidBodyPhysics_X3DRigidJointNode.call (this, executionContext);
4011
+ RigidBodyPhysics_X3DRigidJointNode .call (this, executionContext);
3856
4012
 
3857
4013
  this .addType ((X3DConstants_default()).SingleAxisHingeJoint);
3858
4014
 
@@ -3870,45 +4026,11 @@ function SingleAxisHingeJoint (executionContext)
3870
4026
  this .localAnchorPoint2 = new (Vector3_default()) (0, 0, 0);
3871
4027
  }
3872
4028
 
3873
- SingleAxisHingeJoint .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DRigidJointNode.prototype),
4029
+ Object .assign (Object .setPrototypeOf (SingleAxisHingeJoint .prototype, RigidBodyPhysics_X3DRigidJointNode .prototype),
3874
4030
  {
3875
- constructor: SingleAxisHingeJoint,
3876
- [Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
3877
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
3878
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "forceOutput", new (Fields_default()).MFString ("NONE")),
3879
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "anchorPoint", new (Fields_default()).SFVec3f ()),
3880
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis", new (Fields_default()).SFVec3f ()),
3881
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "minAngle", new (Fields_default()).SFFloat (-3.14159)),
3882
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxAngle", new (Fields_default()).SFFloat (3.14159)),
3883
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "minAngle", new (Fields_default()).SFFloat (-3.14159)),
3884
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickable", new (Fields_default()).SFFloat ()),
3885
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stopErrorCorrection", new (Fields_default()).SFFloat (0.8)),
3886
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body1AnchorPoint", new (Fields_default()).SFVec3f ()),
3887
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body2AnchorPoint", new (Fields_default()).SFVec3f ()),
3888
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "angle", new (Fields_default()).SFFloat ()),
3889
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "angleRate", new (Fields_default()).SFFloat ()),
3890
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body1", new (Fields_default()).SFNode ()),
3891
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body2", new (Fields_default()).SFNode ()),
3892
- ]),
3893
- getTypeName: function ()
4031
+ initialize ()
3894
4032
  {
3895
- return "SingleAxisHingeJoint";
3896
- },
3897
- getComponentName: function ()
3898
- {
3899
- return "RigidBodyPhysics";
3900
- },
3901
- getContainerField: function ()
3902
- {
3903
- return "joints";
3904
- },
3905
- getSpecificationRange: function ()
3906
- {
3907
- return ["3.2", "Infinity"];
3908
- },
3909
- initialize: function ()
3910
- {
3911
- RigidBodyPhysics_X3DRigidJointNode.prototype.initialize.call (this);
4033
+ RigidBodyPhysics_X3DRigidJointNode .prototype .initialize .call (this);
3912
4034
 
3913
4035
  this ._anchorPoint .addInterest ("set_joint__", this);
3914
4036
  this ._axis .addInterest ("set_joint__", this);
@@ -3950,29 +4072,29 @@ SingleAxisHingeJoint .prototype = Object .assign (Object .create (RigidBodyPhysi
3950
4072
  this .getInitialInverseMatrix1 () .multDirMatrix (localAxis1) .normalize ();
3951
4073
  this .getInitialInverseMatrix2 () .multDirMatrix (localAxis2) .normalize ();
3952
4074
 
3953
- this .joint = new AmmoClass.btHingeConstraint (this .getBody1 () .getRigidBody (),
4075
+ this .joint = new AmmoClass .btHingeConstraint (this .getBody1 () .getRigidBody (),
3954
4076
  this .getBody2 () .getRigidBody (),
3955
- new AmmoClass.btVector3 (localAnchorPoint1 .x, localAnchorPoint1 .y, localAnchorPoint1 .z),
3956
- new AmmoClass.btVector3 (localAnchorPoint2 .x, localAnchorPoint2 .y, localAnchorPoint2 .z),
3957
- new AmmoClass.btVector3 (localAxis1 .x, localAxis1 .y, localAxis1 .z),
3958
- new AmmoClass.btVector3 (localAxis2 .x, localAxis2 .y, localAxis2 .z),
4077
+ new AmmoClass .btVector3 (localAnchorPoint1 .x, localAnchorPoint1 .y, localAnchorPoint1 .z),
4078
+ new AmmoClass .btVector3 (localAnchorPoint2 .x, localAnchorPoint2 .y, localAnchorPoint2 .z),
4079
+ new AmmoClass .btVector3 (localAxis1 .x, localAxis1 .y, localAxis1 .z),
4080
+ new AmmoClass .btVector3 (localAxis2 .x, localAxis2 .y, localAxis2 .z),
3959
4081
  false);
3960
4082
 
3961
4083
  this .getCollection () .getDynamicsWorld () .addConstraint (this .joint, true);
3962
4084
  };
3963
4085
  })(),
3964
- removeJoint: function ()
4086
+ removeJoint ()
3965
4087
  {
3966
4088
  if (this .joint)
3967
4089
  {
3968
4090
  if (this .getCollection ())
3969
4091
  this .getCollection () .getDynamicsWorld () .removeConstraint (this .joint);
3970
4092
 
3971
- AmmoClass.destroy (this .joint);
4093
+ AmmoClass .destroy (this .joint);
3972
4094
  this .joint = null;
3973
4095
  }
3974
4096
  },
3975
- set_forceOutput__: function ()
4097
+ set_forceOutput__ ()
3976
4098
  {
3977
4099
  for (var key in this .outputs)
3978
4100
  delete this .outputs [key];
@@ -4034,6 +4156,51 @@ SingleAxisHingeJoint .prototype = Object .assign (Object .create (RigidBodyPhysi
4034
4156
  })(),
4035
4157
  });
4036
4158
 
4159
+ Object .defineProperties (SingleAxisHingeJoint,
4160
+ {
4161
+ typeName:
4162
+ {
4163
+ value: "SingleAxisHingeJoint",
4164
+ enumerable: true,
4165
+ },
4166
+ componentName:
4167
+ {
4168
+ value: "RigidBodyPhysics",
4169
+ enumerable: true,
4170
+ },
4171
+ containerField:
4172
+ {
4173
+ value: "joints",
4174
+ enumerable: true,
4175
+ },
4176
+ specificationRange:
4177
+ {
4178
+ value: Object .freeze (["3.2", "Infinity"]),
4179
+ enumerable: true,
4180
+ },
4181
+ fieldDefinitions:
4182
+ {
4183
+ value: new (FieldDefinitionArray_default()) ([
4184
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
4185
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "forceOutput", new (Fields_default()).MFString ("NONE")),
4186
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "anchorPoint", new (Fields_default()).SFVec3f ()),
4187
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis", new (Fields_default()).SFVec3f ()),
4188
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "minAngle", new (Fields_default()).SFFloat (-3.14159)),
4189
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxAngle", new (Fields_default()).SFFloat (3.14159)),
4190
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickable", new (Fields_default()).SFFloat (-3.14159)),
4191
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stopBounce", new (Fields_default()).SFFloat ()),
4192
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stopErrorCorrection", new (Fields_default()).SFFloat (0.8)),
4193
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body1AnchorPoint", new (Fields_default()).SFVec3f ()),
4194
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body2AnchorPoint", new (Fields_default()).SFVec3f ()),
4195
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "angle", new (Fields_default()).SFFloat ()),
4196
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "angleRate", new (Fields_default()).SFFloat ()),
4197
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body1", new (Fields_default()).SFNode ()),
4198
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body2", new (Fields_default()).SFNode ()),
4199
+ ]),
4200
+ enumerable: true,
4201
+ },
4202
+ });
4203
+
4037
4204
  const SingleAxisHingeJoint_default_ = SingleAxisHingeJoint;
4038
4205
  ;
4039
4206
 
@@ -4100,7 +4267,7 @@ Namespace_default().set ("x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint
4100
4267
 
4101
4268
  function SliderJoint (executionContext)
4102
4269
  {
4103
- RigidBodyPhysics_X3DRigidJointNode.call (this, executionContext);
4270
+ RigidBodyPhysics_X3DRigidJointNode .call (this, executionContext);
4104
4271
 
4105
4272
  this .addType ((X3DConstants_default()).SliderJoint);
4106
4273
 
@@ -4114,42 +4281,11 @@ function SliderJoint (executionContext)
4114
4281
  this .outputs = { };
4115
4282
  }
4116
4283
 
4117
- SliderJoint .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DRigidJointNode.prototype),
4284
+ Object .assign (Object .setPrototypeOf (SliderJoint .prototype, RigidBodyPhysics_X3DRigidJointNode .prototype),
4118
4285
  {
4119
- constructor: SliderJoint,
4120
- [Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
4121
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
4122
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "forceOutput", new (Fields_default()).MFString ("NONE")),
4123
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis", new (Fields_default()).SFVec3f (0, 1, 0)),
4124
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "minSeparation", new (Fields_default()).SFFloat ()),
4125
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxSeparation", new (Fields_default()).SFFloat (1)),
4126
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "sliderForce", new (Fields_default()).SFFloat (0)),
4127
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stopBounce", new (Fields_default()).SFFloat ()),
4128
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stopErrorCorrection", new (Fields_default()).SFFloat (1)),
4129
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "separation", new (Fields_default()).SFFloat ()),
4130
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "separationRate", new (Fields_default()).SFFloat ()),
4131
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body1", new (Fields_default()).SFNode ()),
4132
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body2", new (Fields_default()).SFNode ()),
4133
- ]),
4134
- getTypeName: function ()
4135
- {
4136
- return "SliderJoint";
4137
- },
4138
- getComponentName: function ()
4139
- {
4140
- return "RigidBodyPhysics";
4141
- },
4142
- getContainerField: function ()
4286
+ initialize ()
4143
4287
  {
4144
- return "joints";
4145
- },
4146
- getSpecificationRange: function ()
4147
- {
4148
- return ["3.2", "Infinity"];
4149
- },
4150
- initialize: function ()
4151
- {
4152
- RigidBodyPhysics_X3DRigidJointNode.prototype.initialize.call (this);
4288
+ RigidBodyPhysics_X3DRigidJointNode .prototype .initialize .call (this);
4153
4289
 
4154
4290
  this ._axis .addInterest ("set_joint__", this);
4155
4291
  this ._minSeparation .addInterest ("set_separation__", this);
@@ -4161,9 +4297,9 @@ SliderJoint .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DRig
4161
4297
  axisRotation = new (Rotation4_default()) (),
4162
4298
  matrixA = new (Matrix4_default()) (),
4163
4299
  matrixB = new (Matrix4_default()) (),
4164
- origin = new AmmoClass.btVector3 (0, 0, 0),
4165
- frameInA = new AmmoClass.btTransform (),
4166
- frameInB = new AmmoClass.btTransform ();
4300
+ origin = new AmmoClass .btVector3 (0, 0, 0),
4301
+ frameInA = new AmmoClass .btTransform (),
4302
+ frameInB = new AmmoClass .btTransform ();
4167
4303
 
4168
4304
  return function ()
4169
4305
  {
@@ -4203,7 +4339,7 @@ SliderJoint .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DRig
4203
4339
 
4204
4340
  frameInB .setOrigin (origin);
4205
4341
 
4206
- this .joint = new AmmoClass.btSliderConstraint (this .getBody1 () .getRigidBody (),
4342
+ this .joint = new AmmoClass .btSliderConstraint (this .getBody1 () .getRigidBody (),
4207
4343
  this .getBody2 () .getRigidBody (),
4208
4344
  frameInA,
4209
4345
  frameInB,
@@ -4217,7 +4353,7 @@ SliderJoint .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DRig
4217
4353
  this .getCollection () .getDynamicsWorld () .addConstraint (this .joint, true);
4218
4354
  };
4219
4355
  })(),
4220
- removeJoint: function ()
4356
+ removeJoint ()
4221
4357
  {
4222
4358
  if (! this .joint)
4223
4359
  return;
@@ -4225,10 +4361,10 @@ SliderJoint .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DRig
4225
4361
  if (this .getCollection ())
4226
4362
  this .getCollection () .getDynamicsWorld () .removeConstraint (this .joint);
4227
4363
 
4228
- AmmoClass.destroy (this .joint);
4364
+ AmmoClass .destroy (this .joint);
4229
4365
  this .joint = null;
4230
4366
  },
4231
- set_forceOutput__: function ()
4367
+ set_forceOutput__ ()
4232
4368
  {
4233
4369
  for (var key in this .outputs)
4234
4370
  delete this .outputs [key];
@@ -4250,7 +4386,7 @@ SliderJoint .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DRig
4250
4386
 
4251
4387
  this .setOutput (! SliderJoint_$.isEmptyObject (this .outputs));
4252
4388
  },
4253
- set_separation__: function ()
4389
+ set_separation__ ()
4254
4390
  {
4255
4391
  if (! this .joint)
4256
4392
  return;
@@ -4260,6 +4396,48 @@ SliderJoint .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DRig
4260
4396
  },
4261
4397
  });
4262
4398
 
4399
+ Object .defineProperties (SliderJoint,
4400
+ {
4401
+ typeName:
4402
+ {
4403
+ value: "SliderJoint",
4404
+ enumerable: true,
4405
+ },
4406
+ componentName:
4407
+ {
4408
+ value: "RigidBodyPhysics",
4409
+ enumerable: true,
4410
+ },
4411
+ containerField:
4412
+ {
4413
+ value: "joints",
4414
+ enumerable: true,
4415
+ },
4416
+ specificationRange:
4417
+ {
4418
+ value: Object .freeze (["3.2", "Infinity"]),
4419
+ enumerable: true,
4420
+ },
4421
+ fieldDefinitions:
4422
+ {
4423
+ value: new (FieldDefinitionArray_default()) ([
4424
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
4425
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "forceOutput", new (Fields_default()).MFString ("NONE")),
4426
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis", new (Fields_default()).SFVec3f (0, 1, 0)),
4427
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "minSeparation", new (Fields_default()).SFFloat ()),
4428
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxSeparation", new (Fields_default()).SFFloat (1)),
4429
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "sliderForce", new (Fields_default()).SFFloat (0)),
4430
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stopBounce", new (Fields_default()).SFFloat ()),
4431
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stopErrorCorrection", new (Fields_default()).SFFloat (1)),
4432
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "separation", new (Fields_default()).SFFloat ()),
4433
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "separationRate", new (Fields_default()).SFFloat ()),
4434
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body1", new (Fields_default()).SFNode ()),
4435
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body2", new (Fields_default()).SFNode ()),
4436
+ ]),
4437
+ enumerable: true,
4438
+ },
4439
+ });
4440
+
4263
4441
  const SliderJoint_default_ = SliderJoint;
4264
4442
  ;
4265
4443
 
@@ -4321,7 +4499,7 @@ Namespace_default().set ("x_ite/Components/RigidBodyPhysics/SliderJoint", Slider
4321
4499
 
4322
4500
  function UniversalJoint (executionContext)
4323
4501
  {
4324
- RigidBodyPhysics_X3DRigidJointNode.call (this, executionContext);
4502
+ RigidBodyPhysics_X3DRigidJointNode .call (this, executionContext);
4325
4503
 
4326
4504
  this .addType ((X3DConstants_default()).UniversalJoint);
4327
4505
 
@@ -4332,41 +4510,50 @@ function UniversalJoint (executionContext)
4332
4510
  this ._body2AnchorPoint .setUnit ("length");
4333
4511
  }
4334
4512
 
4335
- UniversalJoint .prototype = Object .assign (Object .create (RigidBodyPhysics_X3DRigidJointNode.prototype),
4513
+ Object .setPrototypeOf (UniversalJoint .prototype, RigidBodyPhysics_X3DRigidJointNode .prototype);
4514
+
4515
+ Object .defineProperties (UniversalJoint,
4336
4516
  {
4337
- constructor: UniversalJoint,
4338
- [Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
4339
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
4340
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "forceOutput", new (Fields_default()).MFString ("NONE")),
4341
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "anchorPoint", new (Fields_default()).SFVec3f ()),
4342
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis1", new (Fields_default()).SFVec3f ()),
4343
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis2", new (Fields_default()).SFVec3f ()),
4344
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stopBounce1", new (Fields_default()).SFFloat ()),
4345
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop1ErrorCorrection", new (Fields_default()).SFFloat (0.8)),
4346
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop2Bounce", new (Fields_default()).SFFloat ()),
4347
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop2ErrorCorrection", new (Fields_default()).SFFloat (0.8)),
4348
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body1AnchorPoint", new (Fields_default()).SFVec3f ()),
4349
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body1Axis", new (Fields_default()).SFVec3f ()),
4350
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body2AnchorPoint", new (Fields_default()).SFVec3f ()),
4351
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body2Axis", new (Fields_default()).SFVec3f ()),
4352
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body1", new (Fields_default()).SFNode ()),
4353
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body2", new (Fields_default()).SFNode ()),
4354
- ]),
4355
- getTypeName: function ()
4517
+ typeName:
4356
4518
  {
4357
- return "UniversalJoint";
4519
+ value: "UniversalJoint",
4520
+ enumerable: true,
4358
4521
  },
4359
- getComponentName: function ()
4522
+ componentName:
4360
4523
  {
4361
- return "RigidBodyPhysics";
4524
+ value: "RigidBodyPhysics",
4525
+ enumerable: true,
4362
4526
  },
4363
- getContainerField: function ()
4527
+ containerField:
4364
4528
  {
4365
- return "joints";
4529
+ value: "joints",
4530
+ enumerable: true,
4366
4531
  },
4367
- getSpecificationRange: function ()
4532
+ specificationRange:
4368
4533
  {
4369
- return ["3.2", "Infinity"];
4534
+ value: Object .freeze (["3.2", "Infinity"]),
4535
+ enumerable: true,
4536
+ },
4537
+ fieldDefinitions:
4538
+ {
4539
+ value: new (FieldDefinitionArray_default()) ([
4540
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
4541
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "forceOutput", new (Fields_default()).MFString ("NONE")),
4542
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "anchorPoint", new (Fields_default()).SFVec3f ()),
4543
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis1", new (Fields_default()).SFVec3f ()),
4544
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis2", new (Fields_default()).SFVec3f ()),
4545
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stopBounce1", new (Fields_default()).SFFloat ()),
4546
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop1ErrorCorrection", new (Fields_default()).SFFloat (0.8)),
4547
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop2Bounce", new (Fields_default()).SFFloat ()),
4548
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop2ErrorCorrection", new (Fields_default()).SFFloat (0.8)),
4549
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body1AnchorPoint", new (Fields_default()).SFVec3f ()),
4550
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body1Axis", new (Fields_default()).SFVec3f ()),
4551
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body2AnchorPoint", new (Fields_default()).SFVec3f ()),
4552
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body2Axis", new (Fields_default()).SFVec3f ()),
4553
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body1", new (Fields_default()).SFNode ()),
4554
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "body2", new (Fields_default()).SFNode ()),
4555
+ ]),
4556
+ enumerable: true,
4370
4557
  },
4371
4558
  });
4372
4559
 
@@ -4442,31 +4629,31 @@ Namespace_default().set ("x_ite/Components/RigidBodyPhysics/UniversalJoint", Uni
4442
4629
 
4443
4630
 
4444
4631
 
4445
- Components_default().addComponent ({
4632
+ Components_default().add ({
4446
4633
  name: "RigidBodyPhysics",
4447
- types:
4448
- {
4449
- BallJoint: RigidBodyPhysics_BallJoint,
4450
- CollidableOffset: RigidBodyPhysics_CollidableOffset,
4451
- CollidableShape: RigidBodyPhysics_CollidableShape,
4452
- CollisionCollection: RigidBodyPhysics_CollisionCollection,
4453
- CollisionSensor: RigidBodyPhysics_CollisionSensor,
4454
- CollisionSpace: RigidBodyPhysics_CollisionSpace,
4455
- Contact: RigidBodyPhysics_Contact,
4456
- DoubleAxisHingeJoint: RigidBodyPhysics_DoubleAxisHingeJoint,
4457
- MotorJoint: RigidBodyPhysics_MotorJoint,
4458
- RigidBody: RigidBodyPhysics_RigidBody,
4459
- RigidBodyCollection: RigidBodyPhysics_RigidBodyCollection,
4460
- SingleAxisHingeJoint: RigidBodyPhysics_SingleAxisHingeJoint,
4461
- SliderJoint: RigidBodyPhysics_SliderJoint,
4462
- UniversalJoint: RigidBodyPhysics_UniversalJoint,
4463
- },
4464
- abstractTypes:
4465
- {
4466
- X3DNBodyCollidableNode: RigidBodyPhysics_X3DNBodyCollidableNode,
4467
- X3DNBodyCollisionSpaceNode: RigidBodyPhysics_X3DNBodyCollisionSpaceNode,
4468
- X3DRigidJointNode: RigidBodyPhysics_X3DRigidJointNode,
4469
- },
4634
+ concreteNodes:
4635
+ [
4636
+ RigidBodyPhysics_BallJoint,
4637
+ RigidBodyPhysics_CollidableOffset,
4638
+ RigidBodyPhysics_CollidableShape,
4639
+ RigidBodyPhysics_CollisionCollection,
4640
+ RigidBodyPhysics_CollisionSensor,
4641
+ RigidBodyPhysics_CollisionSpace,
4642
+ RigidBodyPhysics_Contact,
4643
+ RigidBodyPhysics_DoubleAxisHingeJoint,
4644
+ RigidBodyPhysics_MotorJoint,
4645
+ RigidBodyPhysics_RigidBody,
4646
+ RigidBodyPhysics_RigidBodyCollection,
4647
+ RigidBodyPhysics_SingleAxisHingeJoint,
4648
+ RigidBodyPhysics_SliderJoint,
4649
+ RigidBodyPhysics_UniversalJoint,
4650
+ ],
4651
+ abstractNodes:
4652
+ [
4653
+ RigidBodyPhysics_X3DNBodyCollidableNode,
4654
+ RigidBodyPhysics_X3DNBodyCollisionSpaceNode,
4655
+ RigidBodyPhysics_X3DRigidJointNode,
4656
+ ],
4470
4657
  });
4471
4658
 
4472
4659
  const RigidBodyPhysics_default_ = undefined;