x_ite 9.0.1 → 9.0.3

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 (47) hide show
  1. package/dist/assets/components/Annotation.js +33 -33
  2. package/dist/assets/components/Annotation.min.js +1 -1
  3. package/dist/assets/components/CADGeometry.js +34 -34
  4. package/dist/assets/components/CADGeometry.min.js +1 -1
  5. package/dist/assets/components/CubeMapTexturing.js +113 -124
  6. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  7. package/dist/assets/components/DIS.js +92 -47
  8. package/dist/assets/components/DIS.min.js +1 -1
  9. package/dist/assets/components/EventUtilities.js +34 -34
  10. package/dist/assets/components/EventUtilities.min.js +1 -1
  11. package/dist/assets/components/Geometry2D.js +45 -45
  12. package/dist/assets/components/Geometry2D.min.js +1 -1
  13. package/dist/assets/components/Geospatial.js +90 -76
  14. package/dist/assets/components/Geospatial.min.js +1 -1
  15. package/dist/assets/components/HAnim.js +171 -149
  16. package/dist/assets/components/HAnim.min.js +1 -1
  17. package/dist/assets/components/KeyDeviceSensor.js +18 -16
  18. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  19. package/dist/assets/components/Layout.js +44 -44
  20. package/dist/assets/components/Layout.min.js +1 -1
  21. package/dist/assets/components/NURBS.js +68 -173
  22. package/dist/assets/components/NURBS.min.js +1 -1
  23. package/dist/assets/components/ParticleSystems.js +112 -97
  24. package/dist/assets/components/ParticleSystems.min.js +1 -1
  25. package/dist/assets/components/Picking.js +106 -102
  26. package/dist/assets/components/Picking.min.js +1 -1
  27. package/dist/assets/components/RigidBodyPhysics.js +214 -125
  28. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  29. package/dist/assets/components/Scripting.js +43 -43
  30. package/dist/assets/components/Scripting.min.js +1 -1
  31. package/dist/assets/components/Text.js +34 -33
  32. package/dist/assets/components/Text.min.js +1 -1
  33. package/dist/assets/components/TextureProjection.js +48 -48
  34. package/dist/assets/components/TextureProjection.min.js +1 -1
  35. package/dist/assets/components/Texturing3D.js +60 -64
  36. package/dist/assets/components/Texturing3D.min.js +1 -1
  37. package/dist/assets/components/VolumeRendering.js +66 -66
  38. package/dist/assets/components/VolumeRendering.min.js +1 -1
  39. package/dist/assets/components/X_ITE.js +12 -12
  40. package/dist/assets/components/X_ITE.min.js +1 -1
  41. package/dist/x_ite.css +1 -1
  42. package/dist/x_ite.js +1129 -959
  43. package/dist/x_ite.min.js +1 -1
  44. package/dist/x_ite.min.mjs +1 -1
  45. package/dist/x_ite.mjs +1129 -959
  46. package/dist/x_ite.zip +0 -0
  47. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- /* X_ITE v9.0.1 */(() => { // webpackBootstrap
1
+ /* X_ITE v9.0.3 */(() => { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
4
  /***/ 573:
@@ -80,31 +80,31 @@ var __webpack_exports__ = {};
80
80
  // UNUSED EXPORTS: default
81
81
 
82
82
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
83
- const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.1")] .require ("x_ite/Components");
83
+ const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Components");
84
84
  var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
85
85
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
86
- const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.1")] .require ("x_ite/Fields");
86
+ const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Fields");
87
87
  var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
88
88
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
89
- const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.1")] .require ("x_ite/Base/X3DFieldDefinition");
89
+ const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Base/X3DFieldDefinition");
90
90
  var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
91
91
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
92
- const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.1")] .require ("x_ite/Base/FieldDefinitionArray");
92
+ const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Base/FieldDefinitionArray");
93
93
  var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
94
94
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DNode\")"
95
- const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.1")] .require ("x_ite/Components/Core/X3DNode");
95
+ const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Components/Core/X3DNode");
96
96
  var X3DNode_default = /*#__PURE__*/__webpack_require__.n(X3DNode_namespaceObject);
97
97
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
98
- const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.1")] .require ("x_ite/Base/X3DConstants");
98
+ const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Base/X3DConstants");
99
99
  var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
100
100
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
101
- const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.1")] .require ("x_ite/Base/X3DCast");
101
+ const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Base/X3DCast");
102
102
  var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
103
103
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
104
- const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.1")] .require ("standard/Math/Numbers/Matrix4");
104
+ const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("standard/Math/Numbers/Matrix4");
105
105
  var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
106
106
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
107
- const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.1")] .require ("x_ite/Namespace");
107
+ const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Namespace");
108
108
  var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
109
109
  ;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/X3DRigidJointNode.js
110
110
  /*******************************************************************************
@@ -320,9 +320,9 @@ Object .defineProperties (X3DRigidJointNode,
320
320
  value: "X3DRigidJointNode",
321
321
  enumerable: true,
322
322
  },
323
- componentName:
323
+ componentInfo:
324
324
  {
325
- value: "RigidBodyPhysics",
325
+ value: Object .freeze ({ name: "RigidBodyPhysics", level: 2 }),
326
326
  enumerable: true,
327
327
  },
328
328
  });
@@ -333,7 +333,7 @@ const __default__ = X3DRigidJointNode;
333
333
  Namespace_default().add ("X3DRigidJointNode", "x_ite/Components/RigidBodyPhysics/X3DRigidJointNode", __default__);
334
334
  /* harmony default export */ const RigidBodyPhysics_X3DRigidJointNode = (__default__);
335
335
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
336
- const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.1")] .require ("standard/Math/Numbers/Vector3");
336
+ const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("standard/Math/Numbers/Vector3");
337
337
  var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
338
338
  ;// CONCATENATED MODULE: ./src/lib/ammojs/ammo.js
339
339
  var ammo_dirname = "/";
@@ -540,8 +540,7 @@ Object .assign (Object .setPrototypeOf (BallJoint .prototype, RigidBodyPhysics_X
540
540
  if (!this .joint)
541
541
  return;
542
542
 
543
- if (this .getCollection ())
544
- this .getCollection () .getDynamicsWorld () .removeConstraint (this .joint);
543
+ this .getCollection () ?.getDynamicsWorld () .removeConstraint (this .joint);
545
544
 
546
545
  AmmoClass .destroy (this .joint);
547
546
  this .joint = null;
@@ -611,9 +610,9 @@ Object .defineProperties (BallJoint,
611
610
  value: "BallJoint",
612
611
  enumerable: true,
613
612
  },
614
- componentName:
613
+ componentInfo:
615
614
  {
616
- value: "RigidBodyPhysics",
615
+ value: Object .freeze ({ name: "RigidBodyPhysics", level: 2 }),
617
616
  enumerable: true,
618
617
  },
619
618
  containerField:
@@ -623,7 +622,7 @@ Object .defineProperties (BallJoint,
623
622
  },
624
623
  specificationRange:
625
624
  {
626
- value: Object .freeze (["3.2", "Infinity"]),
625
+ value: Object .freeze ({ from: "3.2", to: "Infinity" }),
627
626
  enumerable: true,
628
627
  },
629
628
  fieldDefinitions:
@@ -647,10 +646,10 @@ const BallJoint_default_ = BallJoint;
647
646
  Namespace_default().add ("BallJoint", "x_ite/Components/RigidBodyPhysics/BallJoint", BallJoint_default_);
648
647
  /* harmony default export */ const RigidBodyPhysics_BallJoint = (BallJoint_default_);
649
648
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
650
- const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.1")] .require ("x_ite/Components/Core/X3DChildNode");
649
+ const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Components/Core/X3DChildNode");
651
650
  var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
652
651
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DBoundedObject\")"
653
- const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.1")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
652
+ const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
654
653
  var X3DBoundedObject_default = /*#__PURE__*/__webpack_require__.n(X3DBoundedObject_namespaceObject);
655
654
  ;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode.js
656
655
  /*******************************************************************************
@@ -812,9 +811,9 @@ Object .defineProperties (X3DNBodyCollidableNode,
812
811
  value: "X3DNBodyCollidableNode",
813
812
  enumerable: true,
814
813
  },
815
- componentName:
814
+ componentInfo:
816
815
  {
817
- value: "RigidBodyPhysics",
816
+ value: Object .freeze ({ name: "RigidBodyPhysics", level: 1 }),
818
817
  enumerable: true,
819
818
  },
820
819
  });
@@ -825,7 +824,7 @@ const X3DNBodyCollidableNode_default_ = X3DNBodyCollidableNode;
825
824
  Namespace_default().add ("X3DNBodyCollidableNode", "x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode", X3DNBodyCollidableNode_default_);
826
825
  /* harmony default export */ const RigidBodyPhysics_X3DNBodyCollidableNode = (X3DNBodyCollidableNode_default_);
827
826
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
828
- const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.1")] .require ("x_ite/Rendering/TraverseType");
827
+ const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Rendering/TraverseType");
829
828
  var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
830
829
  ;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js
831
830
  /*******************************************************************************
@@ -1056,9 +1055,9 @@ Object .defineProperties (CollidableOffset,
1056
1055
  value: "CollidableOffset",
1057
1056
  enumerable: true,
1058
1057
  },
1059
- componentName:
1058
+ componentInfo:
1060
1059
  {
1061
- value: "RigidBodyPhysics",
1060
+ value: Object .freeze ({ name: "RigidBodyPhysics", level: 1 }),
1062
1061
  enumerable: true,
1063
1062
  },
1064
1063
  containerField:
@@ -1068,7 +1067,7 @@ Object .defineProperties (CollidableOffset,
1068
1067
  },
1069
1068
  specificationRange:
1070
1069
  {
1071
- value: Object .freeze (["3.2", "Infinity"]),
1070
+ value: Object .freeze ({ from: "3.2", to: "Infinity" }),
1072
1071
  enumerable: true,
1073
1072
  },
1074
1073
  fieldDefinitions:
@@ -1558,9 +1557,9 @@ Object .defineProperties (CollidableShape,
1558
1557
  value: "CollidableShape",
1559
1558
  enumerable: true,
1560
1559
  },
1561
- componentName:
1560
+ componentInfo:
1562
1561
  {
1563
- value: "RigidBodyPhysics",
1562
+ value: Object .freeze ({ name: "RigidBodyPhysics", level: 1 }),
1564
1563
  enumerable: true,
1565
1564
  },
1566
1565
  containerField:
@@ -1570,7 +1569,7 @@ Object .defineProperties (CollidableShape,
1570
1569
  },
1571
1570
  specificationRange:
1572
1571
  {
1573
- value: Object .freeze (["3.2", "Infinity"]),
1572
+ value: Object .freeze ({ from: "3.2", to: "Infinity" }),
1574
1573
  enumerable: true,
1575
1574
  },
1576
1575
  fieldDefinitions:
@@ -1719,9 +1718,11 @@ Namespace_default().add ("AppliedParametersType", "x_ite/Browser/RigidBodyPhysic
1719
1718
 
1720
1719
 
1721
1720
 
1721
+
1722
1722
  function CollisionCollection (executionContext)
1723
1723
  {
1724
1724
  X3DChildNode_default().call (this, executionContext);
1725
+ X3DBoundedObject_default().call (this, executionContext);
1725
1726
 
1726
1727
  this .addType ((X3DConstants_default()).CollisionCollection);
1727
1728
 
@@ -1735,10 +1736,12 @@ function CollisionCollection (executionContext)
1735
1736
  }
1736
1737
 
1737
1738
  Object .assign (Object .setPrototypeOf (CollisionCollection .prototype, (X3DChildNode_default()).prototype),
1739
+ (X3DBoundedObject_default()).prototype,
1738
1740
  {
1739
1741
  initialize ()
1740
1742
  {
1741
1743
  X3DChildNode_default().prototype .initialize .call (this);
1744
+ X3DBoundedObject_default().prototype .initialize .call (this);
1742
1745
 
1743
1746
  this ._appliedParameters .addInterest ("set_appliedParameters__", this);
1744
1747
  this ._collidables .addInterest ("set_collidables__", this);
@@ -1746,6 +1749,10 @@ Object .assign (Object .setPrototypeOf (CollisionCollection .prototype, (X3DChil
1746
1749
  this .set_appliedParameters__ ();
1747
1750
  this .set_collidables__ ();
1748
1751
  },
1752
+ getBBox (bbox, shadows)
1753
+ {
1754
+ return bbox .set ();
1755
+ },
1749
1756
  getAppliedParameters ()
1750
1757
  {
1751
1758
  return this .appliedParameters;
@@ -1834,6 +1841,11 @@ Object .assign (Object .setPrototypeOf (CollisionCollection .prototype, (X3DChil
1834
1841
 
1835
1842
  this .addNodeEvent ();
1836
1843
  },
1844
+ dispose ()
1845
+ {
1846
+ X3DBoundedObject_default().prototype .dispose .call (this);
1847
+ X3DChildNode_default().prototype .dispose .call (this);
1848
+ },
1837
1849
  });
1838
1850
 
1839
1851
  Object .defineProperties (CollisionCollection,
@@ -1843,9 +1855,9 @@ Object .defineProperties (CollisionCollection,
1843
1855
  value: "CollisionCollection",
1844
1856
  enumerable: true,
1845
1857
  },
1846
- componentName:
1858
+ componentInfo:
1847
1859
  {
1848
- value: "RigidBodyPhysics",
1860
+ value: Object .freeze ({ name: "RigidBodyPhysics", level: 1 }),
1849
1861
  enumerable: true,
1850
1862
  },
1851
1863
  containerField:
@@ -1855,23 +1867,28 @@ Object .defineProperties (CollisionCollection,
1855
1867
  },
1856
1868
  specificationRange:
1857
1869
  {
1858
- value: Object .freeze (["3.2", "Infinity"]),
1870
+ value: Object .freeze ({ from: "3.2", to: "Infinity" }),
1859
1871
  enumerable: true,
1860
1872
  },
1861
1873
  fieldDefinitions:
1862
1874
  {
1863
1875
  value: new (FieldDefinitionArray_default()) ([
1864
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
1865
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
1866
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "appliedParameters", new (Fields_default()).MFString ("BOUNCE")),
1867
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bounce", new (Fields_default()).SFFloat ()),
1868
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "minBounceSpeed", new (Fields_default()).SFFloat (0.1)),
1869
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "frictionCoefficients", new (Fields_default()).SFVec2f ()),
1870
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceSpeed", new (Fields_default()).SFVec2f ()),
1871
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "slipFactors", new (Fields_default()).SFVec2f ()),
1872
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "softnessConstantForceMix", new (Fields_default()).SFFloat (0.0001)),
1873
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "softnessErrorCorrection", new (Fields_default()).SFFloat (0.8)),
1874
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "collidables", new (Fields_default()).MFNode ()),
1876
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
1877
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "description", new (Fields_default()).SFString ()),
1878
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
1879
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "appliedParameters", new (Fields_default()).MFString ("BOUNCE")),
1880
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bounce", new (Fields_default()).SFFloat ()),
1881
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "minBounceSpeed", new (Fields_default()).SFFloat (0.1)),
1882
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "frictionCoefficients", new (Fields_default()).SFVec2f ()),
1883
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceSpeed", new (Fields_default()).SFVec2f ()),
1884
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "slipFactors", new (Fields_default()).SFVec2f ()),
1885
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "softnessConstantForceMix", new (Fields_default()).SFFloat (0.0001)),
1886
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "softnessErrorCorrection", new (Fields_default()).SFFloat (0.8)),
1887
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "collidables", new (Fields_default()).MFNode ()),
1888
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
1889
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
1890
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
1891
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f ()),
1875
1892
  ]),
1876
1893
  enumerable: true,
1877
1894
  },
@@ -1883,7 +1900,7 @@ const CollisionCollection_default_ = CollisionCollection;
1883
1900
  Namespace_default().add ("CollisionCollection", "x_ite/Components/RigidBodyPhysics/CollisionCollection", CollisionCollection_default_);
1884
1901
  /* harmony default export */ const RigidBodyPhysics_CollisionCollection = (CollisionCollection_default_);
1885
1902
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DSensorNode\")"
1886
- const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.1")] .require ("x_ite/Components/Core/X3DSensorNode");
1903
+ const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Components/Core/X3DSensorNode");
1887
1904
  var X3DSensorNode_default = /*#__PURE__*/__webpack_require__.n(X3DSensorNode_namespaceObject);
1888
1905
  ;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js
1889
1906
  /*******************************************************************************
@@ -2137,9 +2154,9 @@ Object .defineProperties (CollisionSensor,
2137
2154
  value: "CollisionSensor",
2138
2155
  enumerable: true,
2139
2156
  },
2140
- componentName:
2157
+ componentInfo:
2141
2158
  {
2142
- value: "RigidBodyPhysics",
2159
+ value: Object .freeze ({ name: "RigidBodyPhysics", level: 1 }),
2143
2160
  enumerable: true,
2144
2161
  },
2145
2162
  containerField:
@@ -2149,13 +2166,14 @@ Object .defineProperties (CollisionSensor,
2149
2166
  },
2150
2167
  specificationRange:
2151
2168
  {
2152
- value: Object .freeze (["3.2", "Infinity"]),
2169
+ value: Object .freeze ({ from: "3.2", to: "Infinity" }),
2153
2170
  enumerable: true,
2154
2171
  },
2155
2172
  fieldDefinitions:
2156
2173
  {
2157
2174
  value: new (FieldDefinitionArray_default()) ([
2158
2175
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
2176
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "description", new (Fields_default()).SFString ()),
2159
2177
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
2160
2178
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "isActive", new (Fields_default()).SFBool ()),
2161
2179
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "intersections", new (Fields_default()).MFNode ()),
@@ -2253,9 +2271,9 @@ Object .defineProperties (X3DNBodyCollisionSpaceNode,
2253
2271
  value: "X3DNBodyCollisionSpaceNode",
2254
2272
  enumerable: true,
2255
2273
  },
2256
- componentName:
2274
+ componentInfo:
2257
2275
  {
2258
- value: "RigidBodyPhysics",
2276
+ value: Object .freeze ({ name: "RigidBodyPhysics", level: 1 }),
2259
2277
  enumerable: true,
2260
2278
  },
2261
2279
  });
@@ -2414,9 +2432,9 @@ Object .defineProperties (CollisionSpace,
2414
2432
  value: "CollisionSpace",
2415
2433
  enumerable: true,
2416
2434
  },
2417
- componentName:
2435
+ componentInfo:
2418
2436
  {
2419
- value: "RigidBodyPhysics",
2437
+ value: Object .freeze ({ name: "RigidBodyPhysics", level: 1 }),
2420
2438
  enumerable: true,
2421
2439
  },
2422
2440
  containerField:
@@ -2426,7 +2444,7 @@ Object .defineProperties (CollisionSpace,
2426
2444
  },
2427
2445
  specificationRange:
2428
2446
  {
2429
- value: Object .freeze (["3.2", "Infinity"]),
2447
+ value: Object .freeze ({ from: "3.2", to: "Infinity" }),
2430
2448
  enumerable: true,
2431
2449
  },
2432
2450
  fieldDefinitions:
@@ -2528,9 +2546,9 @@ Object .defineProperties (Contact,
2528
2546
  value: "Contact",
2529
2547
  enumerable: true,
2530
2548
  },
2531
- componentName:
2549
+ componentInfo:
2532
2550
  {
2533
- value: "RigidBodyPhysics",
2551
+ value: Object .freeze ({ name: "RigidBodyPhysics", level: 2 }),
2534
2552
  enumerable: true,
2535
2553
  },
2536
2554
  containerField:
@@ -2540,7 +2558,7 @@ Object .defineProperties (Contact,
2540
2558
  },
2541
2559
  specificationRange:
2542
2560
  {
2543
- value: Object .freeze (["3.2", "Infinity"]),
2561
+ value: Object .freeze ({ from: "3.2", to: "Infinity" }),
2544
2562
  enumerable: true,
2545
2563
  },
2546
2564
  fieldDefinitions:
@@ -2574,7 +2592,7 @@ const Contact_default_ = Contact;
2574
2592
  Namespace_default().add ("Contact", "x_ite/Components/RigidBodyPhysics/Contact", Contact_default_);
2575
2593
  /* harmony default export */ const RigidBodyPhysics_Contact = (Contact_default_);
2576
2594
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
2577
- const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.1")] .require ("standard/Math/Numbers/Rotation4");
2595
+ const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("standard/Math/Numbers/Rotation4");
2578
2596
  var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
2579
2597
  ;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js
2580
2598
  /*******************************************************************************
@@ -2640,14 +2658,30 @@ function DoubleAxisHingeJoint (executionContext)
2640
2658
 
2641
2659
  this .addType ((X3DConstants_default()).DoubleAxisHingeJoint);
2642
2660
 
2661
+ // Units
2662
+
2643
2663
  this ._anchorPoint .setUnit ("length");
2644
2664
  this ._minAngle1 .setUnit ("angle");
2645
2665
  this ._maxAngle1 .setUnit ("angle");
2646
2666
  this ._desiredAngularVelocity1 .setUnit ("angularRate");
2647
2667
  this ._desiredAngularVelocity2 .setUnit ("angularRate");
2648
- this ._stopConstantForceMix1 .setUnit ("force");
2668
+ this ._stop1ConstantForceMix .setUnit ("force");
2649
2669
  this ._suspensionForce .setUnit ("force");
2650
2670
 
2671
+ // Legacy
2672
+
2673
+ if (executionContext .getSpecificationVersion () <= 3.3)
2674
+ {
2675
+ this .addAlias ("stopBounce1", this ._stop1Bounce);
2676
+ this .addAlias ("stopConstantForceMix1", this ._stop1ConstantForceMix);
2677
+ this .addAlias ("stopErrorCorrection1", this ._stop1ErrorCorrection);
2678
+
2679
+ this ._axis1 = new (Vector3_default()) (0, 0, 0);
2680
+ this ._axis2 = new (Vector3_default()) (0, 0, 0);
2681
+ }
2682
+
2683
+ // Private properties
2684
+
2651
2685
  this .joint = null;
2652
2686
  this .outputs = new Set ();
2653
2687
  this .localAnchorPoint1 = new (Vector3_default()) (0, 0, 0);
@@ -2717,8 +2751,7 @@ Object .assign (Object .setPrototypeOf (DoubleAxisHingeJoint .prototype, RigidBo
2717
2751
  if (! this .joint)
2718
2752
  return;
2719
2753
 
2720
- if (this .getCollection ())
2721
- this .getCollection () .getDynamicsWorld () .removeConstraint (this .joint);
2754
+ this .getCollection () ?.getDynamicsWorld () .removeConstraint (this .joint);
2722
2755
 
2723
2756
  AmmoClass .destroy (this .joint);
2724
2757
  this .joint = null;
@@ -2819,9 +2852,9 @@ Object .defineProperties (DoubleAxisHingeJoint,
2819
2852
  value: "DoubleAxisHingeJoint",
2820
2853
  enumerable: true,
2821
2854
  },
2822
- componentName:
2855
+ componentInfo:
2823
2856
  {
2824
- value: "RigidBodyPhysics",
2857
+ value: Object .freeze ({ name: "RigidBodyPhysics", level: 2 }),
2825
2858
  enumerable: true,
2826
2859
  },
2827
2860
  containerField:
@@ -2831,7 +2864,7 @@ Object .defineProperties (DoubleAxisHingeJoint,
2831
2864
  },
2832
2865
  specificationRange:
2833
2866
  {
2834
- value: Object .freeze (["3.2", "Infinity"]),
2867
+ value: Object .freeze ({ from: "3.2", to: "Infinity" }),
2835
2868
  enumerable: true,
2836
2869
  },
2837
2870
  fieldDefinitions:
@@ -2840,17 +2873,17 @@ Object .defineProperties (DoubleAxisHingeJoint,
2840
2873
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
2841
2874
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "forceOutput", new (Fields_default()).MFString ("NONE")),
2842
2875
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "anchorPoint", new (Fields_default()).SFVec3f ()),
2843
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis1", new (Fields_default()).SFVec3f ()),
2844
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis2", new (Fields_default()).SFVec3f ()),
2845
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "minAngle1", new (Fields_default()).SFFloat (-3.14159)),
2846
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxAngle1", new (Fields_default()).SFFloat (3.14159)),
2876
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis1", new (Fields_default()).SFVec3f (1, 0, 0)),
2877
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis2", new (Fields_default()).SFVec3f (0, 1, 0)),
2878
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "minAngle1", new (Fields_default()).SFFloat (-3.141592653)),
2879
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxAngle1", new (Fields_default()).SFFloat (3.141592653)),
2847
2880
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "desiredAngularVelocity1", new (Fields_default()).SFFloat ()),
2848
2881
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "desiredAngularVelocity2", new (Fields_default()).SFFloat ()),
2849
2882
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxTorque1", new (Fields_default()).SFFloat ()),
2850
2883
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxTorque2", new (Fields_default()).SFFloat ()),
2851
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stopBounce1", new (Fields_default()).SFFloat ()),
2852
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stopConstantForceMix1", new (Fields_default()).SFFloat (0.001)),
2853
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stopErrorCorrection1", new (Fields_default()).SFFloat (0.8)),
2884
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop1Bounce", new (Fields_default()).SFFloat ()),
2885
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop1ConstantForceMix", new (Fields_default()).SFFloat (0.001)),
2886
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop1ErrorCorrection", new (Fields_default()).SFFloat (0.8)),
2854
2887
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "suspensionForce", new (Fields_default()).SFFloat ()),
2855
2888
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "suspensionErrorCorrection", new (Fields_default()).SFFloat (0.8)),
2856
2889
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body1AnchorPoint", new (Fields_default()).SFVec3f ()),
@@ -2927,6 +2960,7 @@ Namespace_default().add ("DoubleAxisHingeJoint", "x_ite/Components/RigidBodyPhys
2927
2960
 
2928
2961
 
2929
2962
 
2963
+
2930
2964
  function MotorJoint (executionContext)
2931
2965
  {
2932
2966
  RigidBodyPhysics_X3DRigidJointNode .call (this, executionContext);
@@ -2944,6 +2978,15 @@ function MotorJoint (executionContext)
2944
2978
  this ._motor1AngleRate .setUnit ("angularRate");
2945
2979
  this ._motor2AngleRate .setUnit ("angularRate");
2946
2980
  this ._motor3AngleRate .setUnit ("angularRate");
2981
+
2982
+ // Legacy
2983
+
2984
+ if (executionContext .getSpecificationVersion () <= 3.3)
2985
+ {
2986
+ this ._motor1Axis = new (Vector3_default()) (0, 0, 0);
2987
+ this ._motor2Axis = new (Vector3_default()) (0, 0, 0);
2988
+ this ._motor3Axis = new (Vector3_default()) (0, 0, 0);
2989
+ }
2947
2990
  }
2948
2991
 
2949
2992
  Object .setPrototypeOf (MotorJoint .prototype, RigidBodyPhysics_X3DRigidJointNode .prototype);
@@ -2955,9 +2998,9 @@ Object .defineProperties (MotorJoint,
2955
2998
  value: "MotorJoint",
2956
2999
  enumerable: true,
2957
3000
  },
2958
- componentName:
3001
+ componentInfo:
2959
3002
  {
2960
- value: "RigidBodyPhysics",
3003
+ value: Object .freeze ({ name: "RigidBodyPhysics", level: 2 }),
2961
3004
  enumerable: true,
2962
3005
  },
2963
3006
  containerField:
@@ -2967,7 +3010,7 @@ Object .defineProperties (MotorJoint,
2967
3010
  },
2968
3011
  specificationRange:
2969
3012
  {
2970
- value: Object .freeze (["3.2", "Infinity"]),
3013
+ value: Object .freeze ({ from: "3.2", to: "Infinity" }),
2971
3014
  enumerable: true,
2972
3015
  },
2973
3016
  fieldDefinitions:
@@ -2983,9 +3026,9 @@ Object .defineProperties (MotorJoint,
2983
3026
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis2Torque", new (Fields_default()).SFFloat ()),
2984
3027
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis3Torque", new (Fields_default()).SFFloat ()),
2985
3028
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabledAxes", new (Fields_default()).SFInt32 (1)),
2986
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "motor1Axis", new (Fields_default()).SFVec3f ()),
2987
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "motor2Axis", new (Fields_default()).SFVec3f ()),
2988
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "motor3Axis", new (Fields_default()).SFVec3f ()),
3029
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "motor1Axis", new (Fields_default()).SFVec3f (1, 0, 0)),
3030
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "motor2Axis", new (Fields_default()).SFVec3f (0, 1, 0)),
3031
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "motor3Axis", new (Fields_default()).SFVec3f (0, 0, 1)),
2989
3032
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop1Bounce", new (Fields_default()).SFFloat ()),
2990
3033
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop2Bounce", new (Fields_default()).SFFloat ()),
2991
3034
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop3Bounce", new (Fields_default()).SFFloat ()),
@@ -3011,7 +3054,7 @@ const MotorJoint_default_ = MotorJoint;
3011
3054
  Namespace_default().add ("MotorJoint", "x_ite/Components/RigidBodyPhysics/MotorJoint", MotorJoint_default_);
3012
3055
  /* harmony default export */ const RigidBodyPhysics_MotorJoint = (MotorJoint_default_);
3013
3056
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Quaternion\")"
3014
- const Quaternion_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.1")] .require ("standard/Math/Numbers/Quaternion");
3057
+ const Quaternion_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("standard/Math/Numbers/Quaternion");
3015
3058
  var Quaternion_default = /*#__PURE__*/__webpack_require__.n(Quaternion_namespaceObject);
3016
3059
  ;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/RigidBody.js
3017
3060
  /*******************************************************************************
@@ -3073,9 +3116,11 @@ var Quaternion_default = /*#__PURE__*/__webpack_require__.n(Quaternion_namespace
3073
3116
 
3074
3117
 
3075
3118
 
3119
+
3076
3120
  function RigidBody (executionContext)
3077
3121
  {
3078
3122
  X3DNode_default().call (this, executionContext);
3123
+ X3DBoundedObject_default().call (this, executionContext);
3079
3124
 
3080
3125
  this .addType ((X3DConstants_default()).RigidBody);
3081
3126
 
@@ -3104,10 +3149,12 @@ function RigidBody (executionContext)
3104
3149
  }
3105
3150
 
3106
3151
  Object .assign (Object .setPrototypeOf (RigidBody .prototype, (X3DNode_default()).prototype),
3152
+ (X3DBoundedObject_default()).prototype,
3107
3153
  {
3108
3154
  initialize ()
3109
3155
  {
3110
3156
  X3DNode_default().prototype .initialize .call (this);
3157
+ X3DBoundedObject_default().prototype .initialize .call (this);
3111
3158
 
3112
3159
  this ._linearVelocity .addInterest ("set_linearVelocity__", this);
3113
3160
  this ._angularVelocity .addInterest ("set_angularVelocity__", this);
@@ -3135,6 +3182,10 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, (X3DNode_default()
3135
3182
  this .set_torques__ ();
3136
3183
  this .set_geometry__ ();
3137
3184
  },
3185
+ getBBox (bbox, shadows)
3186
+ {
3187
+ return bbox .set ();
3188
+ },
3138
3189
  setCollection (value)
3139
3190
  {
3140
3191
  this ._collection = value;
@@ -3473,6 +3524,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, (X3DNode_default()
3473
3524
  AmmoClass .destroy (this .motionState);
3474
3525
  AmmoClass .destroy (this .compoundShape);
3475
3526
 
3527
+ X3DBoundedObject_default().prototype .dispose .call (this);
3476
3528
  X3DNode_default().prototype .dispose .call (this);
3477
3529
  },
3478
3530
  });
@@ -3484,9 +3536,9 @@ Object .defineProperties (RigidBody,
3484
3536
  value: "RigidBody",
3485
3537
  enumerable: true,
3486
3538
  },
3487
- componentName:
3539
+ componentInfo:
3488
3540
  {
3489
- value: "RigidBodyPhysics",
3541
+ value: Object .freeze ({ name: "RigidBodyPhysics", level: 2 }),
3490
3542
  enumerable: true,
3491
3543
  },
3492
3544
  containerField:
@@ -3496,36 +3548,40 @@ Object .defineProperties (RigidBody,
3496
3548
  },
3497
3549
  specificationRange:
3498
3550
  {
3499
- value: Object .freeze (["3.2", "Infinity"]),
3551
+ value: Object .freeze ({ from: "3.2", to: "Infinity" }),
3500
3552
  enumerable: true,
3501
3553
  },
3502
3554
  fieldDefinitions:
3503
3555
  {
3504
3556
  value: new (FieldDefinitionArray_default()) ([
3505
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
3506
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
3507
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "fixed", new (Fields_default()).SFBool ()),
3508
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "position", new (Fields_default()).SFVec3f ()),
3509
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "orientation", new (Fields_default()).SFRotation ()),
3510
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "linearVelocity", new (Fields_default()).SFVec3f ()),
3511
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "angularVelocity", new (Fields_default()).SFVec3f ()),
3512
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "useFiniteRotation", new (Fields_default()).SFBool ()),
3513
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "finiteRotationAxis", new (Fields_default()).SFVec3f (0, 1, 0)),
3514
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "autoDamp", new (Fields_default()).SFBool ()),
3515
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "linearDampingFactor", new (Fields_default()).SFFloat (0.001)),
3516
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "angularDampingFactor", new (Fields_default()).SFFloat (0.001)),
3517
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "mass", new (Fields_default()).SFFloat (1)),
3518
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "centerOfMass", new (Fields_default()).SFVec3f ()),
3519
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "massDensityModel", new (Fields_default()).SFNode ()),
3520
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "useGlobalGravity", new (Fields_default()).SFBool (true)),
3521
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "forces", new (Fields_default()).MFVec3f ()),
3522
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "torques", new (Fields_default()).MFVec3f ()),
3523
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "inertia", new (Fields_default()).SFMatrix3f ()),
3524
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "autoDisable", new (Fields_default()).SFBool ()),
3525
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableTime", new (Fields_default()).SFFloat ()),
3526
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableLinearSpeed", new (Fields_default()).SFFloat ()),
3527
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableAngularSpeed", new (Fields_default()).SFFloat ()),
3528
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "geometry", new (Fields_default()).MFNode ()),
3557
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
3558
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
3559
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "fixed", new (Fields_default()).SFBool ()),
3560
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "position", new (Fields_default()).SFVec3f ()),
3561
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "orientation", new (Fields_default()).SFRotation ()),
3562
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "linearVelocity", new (Fields_default()).SFVec3f ()),
3563
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "angularVelocity", new (Fields_default()).SFVec3f ()),
3564
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "useFiniteRotation", new (Fields_default()).SFBool ()),
3565
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "finiteRotationAxis", new (Fields_default()).SFVec3f (0, 1, 0)),
3566
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "autoDamp", new (Fields_default()).SFBool ()),
3567
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "linearDampingFactor", new (Fields_default()).SFFloat (0.001)),
3568
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "angularDampingFactor", new (Fields_default()).SFFloat (0.001)),
3569
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "mass", new (Fields_default()).SFFloat (1)),
3570
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "centerOfMass", new (Fields_default()).SFVec3f ()),
3571
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "massDensityModel", new (Fields_default()).SFNode ()),
3572
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "useGlobalGravity", new (Fields_default()).SFBool (true)),
3573
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "forces", new (Fields_default()).MFVec3f ()),
3574
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "torques", new (Fields_default()).MFVec3f ()),
3575
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "inertia", new (Fields_default()).SFMatrix3f ()),
3576
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "autoDisable", new (Fields_default()).SFBool ()),
3577
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableTime", new (Fields_default()).SFTime ()),
3578
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableLinearSpeed", new (Fields_default()).SFFloat ()),
3579
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableAngularSpeed", new (Fields_default()).SFFloat ()),
3580
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "geometry", new (Fields_default()).MFNode ()),
3581
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
3582
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
3583
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
3584
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f ()),
3529
3585
  ]),
3530
3586
  enumerable: true,
3531
3587
  },
@@ -3593,9 +3649,11 @@ Namespace_default().add ("RigidBody", "x_ite/Components/RigidBodyPhysics/RigidBo
3593
3649
 
3594
3650
 
3595
3651
 
3652
+
3596
3653
  function RigidBodyCollection (executionContext)
3597
3654
  {
3598
3655
  X3DChildNode_default().call (this, executionContext);
3656
+ X3DBoundedObject_default().call (this, executionContext);
3599
3657
 
3600
3658
  this .addType ((X3DConstants_default()).RigidBodyCollection);
3601
3659
 
@@ -3625,10 +3683,12 @@ function RigidBodyCollection (executionContext)
3625
3683
  }
3626
3684
 
3627
3685
  Object .assign (Object .setPrototypeOf (RigidBodyCollection .prototype, (X3DChildNode_default()).prototype),
3686
+ (X3DBoundedObject_default()).prototype,
3628
3687
  {
3629
3688
  initialize ()
3630
3689
  {
3631
3690
  X3DChildNode_default().prototype .initialize .call (this);
3691
+ X3DBoundedObject_default().prototype .initialize .call (this);
3632
3692
 
3633
3693
  this .getLive () .addInterest ("set_enabled__", this);
3634
3694
 
@@ -3645,6 +3705,10 @@ Object .assign (Object .setPrototypeOf (RigidBodyCollection .prototype, (X3DChil
3645
3705
  this .set_collider__ ();
3646
3706
  this .set_bodies__ ();
3647
3707
  },
3708
+ getBBox (bbox, shadows)
3709
+ {
3710
+ return bbox .set ();
3711
+ },
3648
3712
  getDynamicsWorld ()
3649
3713
  {
3650
3714
  return this .dynamicsWorld;
@@ -3876,6 +3940,11 @@ Object .assign (Object .setPrototypeOf (RigidBodyCollection .prototype, (X3DChil
3876
3940
  console .error (error);
3877
3941
  }
3878
3942
  },
3943
+ dispose ()
3944
+ {
3945
+ X3DBoundedObject_default().prototype .dispose .call (this);
3946
+ X3DChildNode_default().prototype .dispose .call (this);
3947
+ },
3879
3948
  });
3880
3949
 
3881
3950
  Object .defineProperties (RigidBodyCollection,
@@ -3885,9 +3954,9 @@ Object .defineProperties (RigidBodyCollection,
3885
3954
  value: "RigidBodyCollection",
3886
3955
  enumerable: true,
3887
3956
  },
3888
- componentName:
3957
+ componentInfo:
3889
3958
  {
3890
- value: "RigidBodyPhysics",
3959
+ value: Object .freeze ({ name: "RigidBodyPhysics", level: 2 }),
3891
3960
  enumerable: true,
3892
3961
  },
3893
3962
  containerField:
@@ -3897,7 +3966,7 @@ Object .defineProperties (RigidBodyCollection,
3897
3966
  },
3898
3967
  specificationRange:
3899
3968
  {
3900
- value: Object .freeze (["3.2", "Infinity"]),
3969
+ value: Object .freeze ({ from: "3.2", to: "Infinity" }),
3901
3970
  enumerable: true,
3902
3971
  },
3903
3972
  fieldDefinitions:
@@ -3914,12 +3983,16 @@ Object .defineProperties (RigidBodyCollection,
3914
3983
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxCorrectionSpeed", new (Fields_default()).SFFloat (-1)),
3915
3984
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "contactSurfaceThickness", new (Fields_default()).SFFloat ()),
3916
3985
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "autoDisable", new (Fields_default()).SFBool ()),
3917
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableTime", new (Fields_default()).SFFloat ()),
3986
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableTime", new (Fields_default()).SFTime ()),
3918
3987
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableLinearSpeed", new (Fields_default()).SFFloat ()),
3919
3988
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "disableAngularSpeed", new (Fields_default()).SFFloat ()),
3920
3989
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "collider", new (Fields_default()).SFNode ()),
3921
3990
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bodies", new (Fields_default()).MFNode ()),
3922
3991
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "joints", new (Fields_default()).MFNode ()),
3992
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
3993
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
3994
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
3995
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f ()),
3923
3996
  ]),
3924
3997
  enumerable: true,
3925
3998
  },
@@ -3994,6 +4067,8 @@ function SingleAxisHingeJoint (executionContext)
3994
4067
 
3995
4068
  this .addType ((X3DConstants_default()).SingleAxisHingeJoint);
3996
4069
 
4070
+ // Units
4071
+
3997
4072
  this ._anchorPoint .setUnit ("length");
3998
4073
  this ._minAngle .setUnit ("angle");
3999
4074
  this ._maxAngle .setUnit ("angle");
@@ -4002,6 +4077,13 @@ function SingleAxisHingeJoint (executionContext)
4002
4077
  this ._angle .setUnit ("angle");
4003
4078
  this ._angleRate .setUnit ("angularRate");
4004
4079
 
4080
+ // Legacy
4081
+
4082
+ if (executionContext .getSpecificationVersion () <= 3.3)
4083
+ this ._axis = new (Vector3_default()) (0, 0, 0);
4084
+
4085
+ // Private properties
4086
+
4005
4087
  this .joint = null;
4006
4088
  this .outputs = new Set ();
4007
4089
  this .localAnchorPoint1 = new (Vector3_default()) (0, 0, 0);
@@ -4069,8 +4151,7 @@ Object .assign (Object .setPrototypeOf (SingleAxisHingeJoint .prototype, RigidBo
4069
4151
  {
4070
4152
  if (this .joint)
4071
4153
  {
4072
- if (this .getCollection ())
4073
- this .getCollection () .getDynamicsWorld () .removeConstraint (this .joint);
4154
+ this .getCollection () ?.getDynamicsWorld () .removeConstraint (this .joint);
4074
4155
 
4075
4156
  AmmoClass .destroy (this .joint);
4076
4157
  this .joint = null;
@@ -4144,9 +4225,9 @@ Object .defineProperties (SingleAxisHingeJoint,
4144
4225
  value: "SingleAxisHingeJoint",
4145
4226
  enumerable: true,
4146
4227
  },
4147
- componentName:
4228
+ componentInfo:
4148
4229
  {
4149
- value: "RigidBodyPhysics",
4230
+ value: Object .freeze ({ name: "RigidBodyPhysics", level: 2 }),
4150
4231
  enumerable: true,
4151
4232
  },
4152
4233
  containerField:
@@ -4156,7 +4237,7 @@ Object .defineProperties (SingleAxisHingeJoint,
4156
4237
  },
4157
4238
  specificationRange:
4158
4239
  {
4159
- value: Object .freeze (["3.2", "Infinity"]),
4240
+ value: Object .freeze ({ from: "3.2", to: "Infinity" }),
4160
4241
  enumerable: true,
4161
4242
  },
4162
4243
  fieldDefinitions:
@@ -4165,9 +4246,9 @@ Object .defineProperties (SingleAxisHingeJoint,
4165
4246
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
4166
4247
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "forceOutput", new (Fields_default()).MFString ("NONE")),
4167
4248
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "anchorPoint", new (Fields_default()).SFVec3f ()),
4168
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis", new (Fields_default()).SFVec3f ()),
4169
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "minAngle", new (Fields_default()).SFFloat (-3.14159)),
4170
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxAngle", new (Fields_default()).SFFloat (3.14159)),
4249
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis", new (Fields_default()).SFVec3f (0, 1, 0)),
4250
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "minAngle", new (Fields_default()).SFFloat (-3.141592653)),
4251
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "maxAngle", new (Fields_default()).SFFloat (3.141592653)),
4171
4252
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stopBounce", new (Fields_default()).SFFloat ()),
4172
4253
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stopErrorCorrection", new (Fields_default()).SFFloat (0.8)),
4173
4254
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "body1AnchorPoint", new (Fields_default()).SFVec3f ()),
@@ -4337,8 +4418,7 @@ Object .assign (Object .setPrototypeOf (SliderJoint .prototype, RigidBodyPhysics
4337
4418
  if (! this .joint)
4338
4419
  return;
4339
4420
 
4340
- if (this .getCollection ())
4341
- this .getCollection () .getDynamicsWorld () .removeConstraint (this .joint);
4421
+ this .getCollection () ?.getDynamicsWorld () .removeConstraint (this .joint);
4342
4422
 
4343
4423
  AmmoClass .destroy (this .joint);
4344
4424
  this .joint = null;
@@ -4381,9 +4461,9 @@ Object .defineProperties (SliderJoint,
4381
4461
  value: "SliderJoint",
4382
4462
  enumerable: true,
4383
4463
  },
4384
- componentName:
4464
+ componentInfo:
4385
4465
  {
4386
- value: "RigidBodyPhysics",
4466
+ value: Object .freeze ({ name: "RigidBodyPhysics", level: 2 }),
4387
4467
  enumerable: true,
4388
4468
  },
4389
4469
  containerField:
@@ -4393,7 +4473,7 @@ Object .defineProperties (SliderJoint,
4393
4473
  },
4394
4474
  specificationRange:
4395
4475
  {
4396
- value: Object .freeze (["3.2", "Infinity"]),
4476
+ value: Object .freeze ({ from: "3.2", to: "Infinity" }),
4397
4477
  enumerable: true,
4398
4478
  },
4399
4479
  fieldDefinitions:
@@ -4475,6 +4555,7 @@ Namespace_default().add ("SliderJoint", "x_ite/Components/RigidBodyPhysics/Slide
4475
4555
 
4476
4556
 
4477
4557
 
4558
+
4478
4559
  function UniversalJoint (executionContext)
4479
4560
  {
4480
4561
  RigidBodyPhysics_X3DRigidJointNode .call (this, executionContext);
@@ -4486,6 +4567,14 @@ function UniversalJoint (executionContext)
4486
4567
  this ._anchorPoint .setUnit ("length");
4487
4568
  this ._body1AnchorPoint .setUnit ("length");
4488
4569
  this ._body2AnchorPoint .setUnit ("length");
4570
+
4571
+ // Legacy
4572
+
4573
+ if (executionContext .getSpecificationVersion () <= 3.3)
4574
+ {
4575
+ this ._axis1 = new (Vector3_default()) (0, 0, 0);
4576
+ this ._axis2 = new (Vector3_default()) (0, 0, 0);
4577
+ }
4489
4578
  }
4490
4579
 
4491
4580
  Object .setPrototypeOf (UniversalJoint .prototype, RigidBodyPhysics_X3DRigidJointNode .prototype);
@@ -4497,9 +4586,9 @@ Object .defineProperties (UniversalJoint,
4497
4586
  value: "UniversalJoint",
4498
4587
  enumerable: true,
4499
4588
  },
4500
- componentName:
4589
+ componentInfo:
4501
4590
  {
4502
- value: "RigidBodyPhysics",
4591
+ value: Object .freeze ({ name: "RigidBodyPhysics", level: 2 }),
4503
4592
  enumerable: true,
4504
4593
  },
4505
4594
  containerField:
@@ -4509,7 +4598,7 @@ Object .defineProperties (UniversalJoint,
4509
4598
  },
4510
4599
  specificationRange:
4511
4600
  {
4512
- value: Object .freeze (["3.2", "Infinity"]),
4601
+ value: Object .freeze ({ from: "3.2", to: "Infinity" }),
4513
4602
  enumerable: true,
4514
4603
  },
4515
4604
  fieldDefinitions:
@@ -4518,8 +4607,8 @@ Object .defineProperties (UniversalJoint,
4518
4607
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
4519
4608
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "forceOutput", new (Fields_default()).MFString ("NONE")),
4520
4609
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "anchorPoint", new (Fields_default()).SFVec3f ()),
4521
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis1", new (Fields_default()).SFVec3f ()),
4522
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis2", new (Fields_default()).SFVec3f ()),
4610
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis1", new (Fields_default()).SFVec3f (1, 0, 0)),
4611
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "axis2", new (Fields_default()).SFVec3f (0, 1, 0)),
4523
4612
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop1Bounce", new (Fields_default()).SFFloat ()),
4524
4613
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop2Bounce", new (Fields_default()).SFFloat ()),
4525
4614
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "stop1ErrorCorrection", new (Fields_default()).SFFloat (0.8)),