x_ite 8.6.10 → 8.6.12
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.
- package/Makefile +12 -12
- package/build/bin/version.pl +6 -0
- package/dist/assets/components/Annotation.js +13 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +21 -45
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +25 -25
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +13 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +9 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +19 -19
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +40 -58
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +18 -18
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +8 -8
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +48 -42
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +28 -34
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +140 -29
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +132 -22
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +33 -77
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +28 -28
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +24 -24
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +14 -14
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +30 -30
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +19 -19
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +9 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +645 -786
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +1 -1
- package/docs/_posts/components/Geometry3D/IndexedFaceSet.md +1 -1
- package/docs/_posts/components/Lighting/DirectionalLight.md +4 -4
- package/docs/_posts/components/Lighting/EnvironmentLight.md +4 -4
- package/docs/_posts/components/Lighting/PointLight.md +4 -4
- package/docs/_posts/components/Lighting/SpotLight.md +4 -4
- package/docs/_posts/components/Rendering/IndexedLineSet.md +1 -1
- package/docs/_posts/components/Rendering/IndexedTriangleFanSet.md +1 -1
- package/docs/_posts/components/RigidBodyPhysics/RigidBody.md +1 -1
- package/docs/_posts/components/RigidBodyPhysics/RigidBodyCollection.md +1 -1
- package/docs/_posts/components/RigidBodyPhysics/SingleAxisHingeJoint.md +1 -1
- package/docs/_posts/components/RigidBodyPhysics/SliderJoint.md +3 -3
- package/docs/_posts/components/X_ITE/BlendMode.md +1 -1
- package/docs/_posts/getting-started.md +8 -3
- package/docs/_posts/reference/browser-services.md +1 -1
- package/docs/_posts/reference/ecmascript-object-and-function-definitions.md +16 -99
- package/docs/_posts/what's-new.md +1 -1
- package/docs/laboratory/gltf-sample-viewer.html +4 -2
- package/package.json +3 -3
- package/src/assets/shaders/webgl1/include/Fragment.glsl.js +11 -4
- package/src/assets/shaders/webgl2/include/Fragment.glsl.js +11 -4
- package/src/lib/jquery.js +6 -1
- package/src/standard/Math/Algorithm.js +8 -1
- package/src/standard/Math/Geometry/Box3.js +2 -5
- package/src/standard/Utility/BitSet.js +33 -0
- package/src/x_ite/Base/X3DBaseNode.js +8 -0
- package/src/x_ite/Base/X3DObject.js +14 -1
- package/src/x_ite/Browser/Core/BrowserOptions.js +27 -29
- package/src/x_ite/Browser/Core/BrowserTimings.js +4 -12
- package/src/x_ite/Browser/Core/Context.js +1 -1
- package/src/x_ite/Browser/Core/X3DCoreContext.js +5 -0
- package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +3 -3
- package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +20 -15
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +3 -3
- package/src/x_ite/Browser/Rendering/GeometryContext.js +2 -0
- package/src/x_ite/Browser/Shape/AlphaMode.js +1 -1
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +4 -4
- package/src/x_ite/Browser/X3DBrowserContext.js +21 -12
- package/src/x_ite/Components/CADGeometry/CADFace.js +8 -32
- package/src/x_ite/Components/Core/X3DNode.js +1 -1
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +1 -1
- package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +115 -139
- package/src/x_ite/Components/EnvironmentalEffects/X3DFogObject.js +1 -1
- package/src/x_ite/Components/Geometry3D/ElevationGrid.js +10 -31
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +3 -6
- package/src/x_ite/Components/Geospatial/GeoElevationGrid.js +7 -25
- package/src/x_ite/Components/Grouping/StaticGroup.js +19 -0
- package/src/x_ite/Components/Grouping/Switch.js +7 -25
- package/src/x_ite/Components/Grouping/X3DBoundedObject.js +0 -1
- package/src/x_ite/Components/Grouping/X3DGroupingNode.js +1 -1
- package/src/x_ite/Components/Layout/Layout.js +12 -10
- package/src/x_ite/Components/Layout/LayoutGroup.js +9 -5
- package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +4 -10
- package/src/x_ite/Components/Navigation/LOD.js +7 -25
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +1 -11
- package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +4 -3
- package/src/x_ite/Components/Rendering/IndexedLineSet.js +11 -33
- package/src/x_ite/Components/Rendering/LineSet.js +12 -37
- package/src/x_ite/Components/Rendering/PointSet.js +11 -24
- package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +14 -39
- package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +15 -8
- package/src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js +7 -29
- package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +8 -30
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +3 -10
- package/src/x_ite/Components/Shape/Appearance.js +9 -5
- package/src/x_ite/Components/Shape/Material.js +1 -2
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +1 -2
- package/src/x_ite/Components/Shape/Shape.js +0 -5
- package/src/x_ite/Components/Shape/TwoSidedMaterial.js +1 -1
- package/src/x_ite/Components/Shape/UnlitMaterial.js +1 -1
- package/src/x_ite/Components/Shape/X3DMaterialNode.js +24 -9
- package/src/x_ite/Components/Shape/X3DShapeNode.js +21 -18
- package/src/x_ite/Components/Texturing/ImageTexture.js +1 -1
- package/src/x_ite/Components/Texturing/X3DTexture2DNode.js +2 -0
- package/src/x_ite/Fields/SFImage.js +9 -9
- package/src/x_ite/Fields/SFInt32.js +2 -2
- package/src/x_ite/Fields/SFNode.js +8 -0
- package/src/x_ite/Rendering/X3DRenderObject.js +0 -1
- package/src/x_ite/{X3DCanvas.js → X3DCanvasElement.js} +23 -4
- package/src/x_ite.js +4 -4
- package/x_ite.min.html +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/* X_ITE v8.6.
|
|
1
|
+
/* X_ITE v8.6.12 */(() => { // 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.6.
|
|
8
|
+
module.exports = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
91
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
94
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
97
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
100
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
103
|
+
const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
106
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
109
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
112
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
115
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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
|
/*******************************************************************************
|
|
@@ -328,7 +328,7 @@ const __default__ = X3DRigidJointNode;
|
|
|
328
328
|
Namespace_default().set ("x_ite/Components/RigidBodyPhysics/X3DRigidJointNode", __default__);
|
|
329
329
|
/* harmony default export */ const RigidBodyPhysics_X3DRigidJointNode = (__default__);
|
|
330
330
|
;// 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.6.
|
|
331
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("standard/Math/Numbers/Vector3");
|
|
332
332
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
333
333
|
;// CONCATENATED MODULE: ./src/lib/ammojs/ammo.js
|
|
334
334
|
var ammo_dirname = "/";
|
|
@@ -629,10 +629,10 @@ const BallJoint_default_ = BallJoint;
|
|
|
629
629
|
Namespace_default().set ("x_ite/Components/RigidBodyPhysics/BallJoint", BallJoint_default_);
|
|
630
630
|
/* harmony default export */ const RigidBodyPhysics_BallJoint = (BallJoint_default_);
|
|
631
631
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
|
|
632
|
-
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
632
|
+
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Core/X3DChildNode");
|
|
633
633
|
var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
|
|
634
634
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DBoundedObject\")"
|
|
635
|
-
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
635
|
+
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
|
|
636
636
|
var X3DBoundedObject_default = /*#__PURE__*/__webpack_require__.n(X3DBoundedObject_namespaceObject);
|
|
637
637
|
;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode.js
|
|
638
638
|
/*******************************************************************************
|
|
@@ -794,7 +794,7 @@ const X3DNBodyCollidableNode_default_ = X3DNBodyCollidableNode;
|
|
|
794
794
|
Namespace_default().set ("x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode", X3DNBodyCollidableNode_default_);
|
|
795
795
|
/* harmony default export */ const RigidBodyPhysics_X3DNBodyCollidableNode = (X3DNBodyCollidableNode_default_);
|
|
796
796
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
|
|
797
|
-
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
797
|
+
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Rendering/TraverseType");
|
|
798
798
|
var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
|
|
799
799
|
;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js
|
|
800
800
|
/*******************************************************************************
|
|
@@ -899,14 +899,7 @@ CollidableOffset .prototype = Object .assign (Object .create (RigidBodyPhysics_X
|
|
|
899
899
|
getBBox: function (bbox, shadows)
|
|
900
900
|
{
|
|
901
901
|
if (this ._bboxSize .getValue () .equals (this .getDefaultBBoxSize ()))
|
|
902
|
-
|
|
903
|
-
const boundedObject = this .visibleNode;
|
|
904
|
-
|
|
905
|
-
if (boundedObject)
|
|
906
|
-
return boundedObject .getBBox (bbox, shadows);
|
|
907
|
-
|
|
908
|
-
return bbox .set ();
|
|
909
|
-
}
|
|
902
|
+
return this .visibleNode?.getBBox (bbox, shadows) .multRight (this .getMatrix ()) ?? bbox .set ();
|
|
910
903
|
|
|
911
904
|
return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
|
|
912
905
|
},
|
|
@@ -956,7 +949,7 @@ CollidableOffset .prototype = Object .assign (Object .create (RigidBodyPhysics_X
|
|
|
956
949
|
},
|
|
957
950
|
set_cameraObject__: function ()
|
|
958
951
|
{
|
|
959
|
-
this .setCameraObject (!!
|
|
952
|
+
this .setCameraObject (!!this .visibleNode?.isCameraObject ());
|
|
960
953
|
},
|
|
961
954
|
set_visible__: function ()
|
|
962
955
|
{
|
|
@@ -997,10 +990,7 @@ CollidableOffset .prototype = Object .assign (Object .create (RigidBodyPhysics_X
|
|
|
997
990
|
modelViewMatrix .push ();
|
|
998
991
|
modelViewMatrix .multLeft (this .getMatrix ());
|
|
999
992
|
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
if (visibleNode)
|
|
1003
|
-
visibleNode .traverse (type, renderObject);
|
|
993
|
+
this .visibleNode?.traverse (type, renderObject);
|
|
1004
994
|
|
|
1005
995
|
modelViewMatrix .pop ();
|
|
1006
996
|
return;
|
|
@@ -1016,10 +1006,7 @@ CollidableOffset .prototype = Object .assign (Object .create (RigidBodyPhysics_X
|
|
|
1016
1006
|
modelViewMatrix .push ();
|
|
1017
1007
|
modelViewMatrix .multLeft (this .getMatrix ());
|
|
1018
1008
|
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
if (visibleNode)
|
|
1022
|
-
visibleNode .traverse (type, renderObject);
|
|
1009
|
+
this .visibleNode?.traverse (type, renderObject);
|
|
1023
1010
|
|
|
1024
1011
|
modelViewMatrix .pop ();
|
|
1025
1012
|
pickingHierarchy .pop ();
|
|
@@ -1032,10 +1019,7 @@ CollidableOffset .prototype = Object .assign (Object .create (RigidBodyPhysics_X
|
|
|
1032
1019
|
modelViewMatrix .push ();
|
|
1033
1020
|
modelViewMatrix .multLeft (this .getMatrix ());
|
|
1034
1021
|
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
if (visibleNode)
|
|
1038
|
-
visibleNode .traverse (type, renderObject);
|
|
1022
|
+
this .visibleNode?.traverse (type, renderObject);
|
|
1039
1023
|
|
|
1040
1024
|
modelViewMatrix .pop ();
|
|
1041
1025
|
break;
|
|
@@ -1047,15 +1031,9 @@ CollidableOffset .prototype = Object .assign (Object .create (RigidBodyPhysics_X
|
|
|
1047
1031
|
modelViewMatrix .push ();
|
|
1048
1032
|
modelViewMatrix .multLeft (this .getMatrix ());
|
|
1049
1033
|
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
if (visibleNode)
|
|
1053
|
-
visibleNode .traverse (type, renderObject);
|
|
1054
|
-
|
|
1055
|
-
const boundedObject = this .boundedObject;
|
|
1034
|
+
this .visibleNode?.traverse (type, renderObject);
|
|
1056
1035
|
|
|
1057
|
-
|
|
1058
|
-
boundedObject .displayBBox (type, renderObject);
|
|
1036
|
+
this .boundedObject?.displayBBox (type, renderObject);
|
|
1059
1037
|
|
|
1060
1038
|
modelViewMatrix .pop ();
|
|
1061
1039
|
return;
|
|
@@ -1179,14 +1157,7 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
|
|
|
1179
1157
|
getBBox: function (bbox, shadows)
|
|
1180
1158
|
{
|
|
1181
1159
|
if (this ._bboxSize .getValue () .equals (this .getDefaultBBoxSize ()))
|
|
1182
|
-
|
|
1183
|
-
const boundedObject = this .visibleNode;
|
|
1184
|
-
|
|
1185
|
-
if (boundedObject)
|
|
1186
|
-
return boundedObject .getBBox (bbox, shadows);
|
|
1187
|
-
|
|
1188
|
-
return bbox .set ();
|
|
1189
|
-
}
|
|
1160
|
+
return this .visibleNode?.getBBox (bbox, shadows) .multRight (this .getMatrix ()) ?? bbox .set ();
|
|
1190
1161
|
|
|
1191
1162
|
return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
|
|
1192
1163
|
},
|
|
@@ -1294,7 +1265,7 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
|
|
|
1294
1265
|
},
|
|
1295
1266
|
set_cameraObject__: function ()
|
|
1296
1267
|
{
|
|
1297
|
-
this .setCameraObject (!!
|
|
1268
|
+
this .setCameraObject (!!this .visibleNode?.isCameraObject ());
|
|
1298
1269
|
},
|
|
1299
1270
|
set_visible__: function ()
|
|
1300
1271
|
{
|
|
@@ -1403,7 +1374,7 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
|
|
|
1403
1374
|
min = Math .min (min, value);
|
|
1404
1375
|
max = Math .max (max, value);
|
|
1405
1376
|
|
|
1406
|
-
AmmoClass.HEAPF32 [heightField + i4
|
|
1377
|
+
AmmoClass.HEAPF32 [heightField + i4 >>> 2] = elevationGrid ._height [i];
|
|
1407
1378
|
|
|
1408
1379
|
i4 += 4;
|
|
1409
1380
|
}
|
|
@@ -1500,10 +1471,7 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
|
|
|
1500
1471
|
modelViewMatrix .push ();
|
|
1501
1472
|
modelViewMatrix .multLeft (this .getMatrix ());
|
|
1502
1473
|
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
if (visibleNode)
|
|
1506
|
-
visibleNode .traverse (type, renderObject);
|
|
1474
|
+
this .visibleNode?.traverse (type, renderObject);
|
|
1507
1475
|
|
|
1508
1476
|
modelViewMatrix .pop ();
|
|
1509
1477
|
return;
|
|
@@ -1519,10 +1487,7 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
|
|
|
1519
1487
|
modelViewMatrix .push ();
|
|
1520
1488
|
modelViewMatrix .multLeft (this .getMatrix ());
|
|
1521
1489
|
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
if (visibleNode)
|
|
1525
|
-
visibleNode .traverse (type, renderObject);
|
|
1490
|
+
this .visibleNode?.traverse (type, renderObject);
|
|
1526
1491
|
|
|
1527
1492
|
modelViewMatrix .pop ();
|
|
1528
1493
|
pickingHierarchy .pop ();
|
|
@@ -1535,10 +1500,7 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
|
|
|
1535
1500
|
modelViewMatrix .push ();
|
|
1536
1501
|
modelViewMatrix .multLeft (this .getMatrix ());
|
|
1537
1502
|
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
if (visibleNode)
|
|
1541
|
-
visibleNode .traverse (type, renderObject);
|
|
1503
|
+
this .visibleNode?.traverse (type, renderObject);
|
|
1542
1504
|
|
|
1543
1505
|
modelViewMatrix .pop ();
|
|
1544
1506
|
return;
|
|
@@ -1550,15 +1512,9 @@ CollidableShape .prototype = Object .assign (Object .create (RigidBodyPhysics_X3
|
|
|
1550
1512
|
modelViewMatrix .push ();
|
|
1551
1513
|
modelViewMatrix .multLeft (this .getMatrix ());
|
|
1552
1514
|
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
if (visibleNode)
|
|
1556
|
-
visibleNode .traverse (type, renderObject);
|
|
1557
|
-
|
|
1558
|
-
const boundedObject = this .boundedObject;
|
|
1515
|
+
this .visibleNode?.traverse (type, renderObject);
|
|
1559
1516
|
|
|
1560
|
-
|
|
1561
|
-
boundedObject .displayBBox (type, renderObject);
|
|
1517
|
+
this .boundedObject?.displayBBox (type, renderObject);
|
|
1562
1518
|
|
|
1563
1519
|
modelViewMatrix .pop ();
|
|
1564
1520
|
return;
|
|
@@ -1851,7 +1807,7 @@ const CollisionCollection_default_ = CollisionCollection;
|
|
|
1851
1807
|
Namespace_default().set ("x_ite/Components/RigidBodyPhysics/CollisionCollection", CollisionCollection_default_);
|
|
1852
1808
|
/* harmony default export */ const RigidBodyPhysics_CollisionCollection = (CollisionCollection_default_);
|
|
1853
1809
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DSensorNode\")"
|
|
1854
|
-
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
1810
|
+
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Core/X3DSensorNode");
|
|
1855
1811
|
var X3DSensorNode_default = /*#__PURE__*/__webpack_require__.n(X3DSensorNode_namespaceObject);
|
|
1856
1812
|
;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js
|
|
1857
1813
|
/*******************************************************************************
|
|
@@ -2491,7 +2447,7 @@ const Contact_default_ = Contact;
|
|
|
2491
2447
|
Namespace_default().set ("x_ite/Components/RigidBodyPhysics/Contact", Contact_default_);
|
|
2492
2448
|
/* harmony default export */ const RigidBodyPhysics_Contact = (Contact_default_);
|
|
2493
2449
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
|
|
2494
|
-
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
2450
|
+
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("standard/Math/Numbers/Rotation4");
|
|
2495
2451
|
var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
|
|
2496
2452
|
;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js
|
|
2497
2453
|
/* provided dependency */ var DoubleAxisHingeJoint_$ = __webpack_require__(355);
|
|
@@ -2902,7 +2858,7 @@ const MotorJoint_default_ = MotorJoint;
|
|
|
2902
2858
|
Namespace_default().set ("x_ite/Components/RigidBodyPhysics/MotorJoint", MotorJoint_default_);
|
|
2903
2859
|
/* harmony default export */ const RigidBodyPhysics_MotorJoint = (MotorJoint_default_);
|
|
2904
2860
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Quaternion\")"
|
|
2905
|
-
const Quaternion_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
2861
|
+
const Quaternion_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("standard/Math/Numbers/Quaternion");
|
|
2906
2862
|
var Quaternion_default = /*#__PURE__*/__webpack_require__.n(Quaternion_namespaceObject);
|
|
2907
2863
|
;// CONCATENATED MODULE: ./src/x_ite/Components/RigidBodyPhysics/RigidBody.js
|
|
2908
2864
|
/*******************************************************************************
|