x_ite 12.2.2 → 12.2.4
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/README.md +4 -4
- package/dist/assets/components/AnnotationComponent.js +2 -2
- package/dist/assets/components/AnnotationComponent.min.js +2 -2
- package/dist/assets/components/CADGeometryComponent.js +2 -2
- package/dist/assets/components/CADGeometryComponent.min.js +2 -2
- package/dist/assets/components/CubeMapTexturingComponent.js +5 -5
- package/dist/assets/components/CubeMapTexturingComponent.min.js +2 -2
- package/dist/assets/components/DISComponent.js +2 -2
- package/dist/assets/components/DISComponent.min.js +2 -2
- package/dist/assets/components/EventUtilitiesComponent.js +2 -2
- package/dist/assets/components/EventUtilitiesComponent.min.js +2 -2
- package/dist/assets/components/Geometry2DComponent.js +2 -2
- package/dist/assets/components/Geometry2DComponent.min.js +2 -2
- package/dist/assets/components/GeospatialComponent.js +2 -2
- package/dist/assets/components/GeospatialComponent.min.js +2 -2
- package/dist/assets/components/HAnimComponent.js +2 -2
- package/dist/assets/components/HAnimComponent.min.js +2 -2
- package/dist/assets/components/KeyDeviceSensorComponent.js +2 -2
- package/dist/assets/components/KeyDeviceSensorComponent.min.js +2 -2
- package/dist/assets/components/LayoutComponent.js +5 -5
- package/dist/assets/components/LayoutComponent.min.js +2 -2
- package/dist/assets/components/NURBSComponent.js +2 -2
- package/dist/assets/components/NURBSComponent.min.js +2 -2
- package/dist/assets/components/ParticleSystemsComponent.js +2 -2
- package/dist/assets/components/ParticleSystemsComponent.min.js +2 -2
- package/dist/assets/components/PickingComponent.js +2 -2
- package/dist/assets/components/PickingComponent.min.js +2 -2
- package/dist/assets/components/RigidBodyPhysicsComponent.js +63 -52
- package/dist/assets/components/RigidBodyPhysicsComponent.min.js +2 -2
- package/dist/assets/components/ScriptingComponent.js +5 -5
- package/dist/assets/components/ScriptingComponent.min.js +2 -2
- package/dist/assets/components/TextComponent.js +5 -5
- package/dist/assets/components/TextComponent.min.js +2 -2
- package/dist/assets/components/TextureProjectionComponent.js +2 -2
- package/dist/assets/components/TextureProjectionComponent.min.js +2 -2
- package/dist/assets/components/Texturing3DComponent.js +99 -99
- package/dist/assets/components/Texturing3DComponent.min.js +2 -2
- package/dist/assets/components/VolumeRenderingComponent.js +2 -2
- package/dist/assets/components/VolumeRenderingComponent.min.js +2 -2
- package/dist/assets/components/WebXRComponent.js +8 -8
- package/dist/assets/components/WebXRComponent.min.js +2 -2
- package/dist/assets/components/X_ITEComponent.js +2 -2
- package/dist/assets/components/X_ITEComponent.min.js +2 -2
- package/dist/example.html +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.d.ts +1 -1
- package/dist/x_ite.js +50532 -50510
- package/dist/x_ite.min.js +2 -2
- package/dist/x_ite.min.mjs +2 -2
- package/dist/x_ite.mjs +51319 -51297
- package/dist/x_ite.zip +0 -0
- package/package.json +3 -3
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/* X_ITE v12.2.
|
|
2
|
-
const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-12.2.
|
|
1
|
+
/* X_ITE v12.2.4 */
|
|
2
|
+
const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-12.2.4")];
|
|
3
3
|
/******/ (() => { // webpackBootstrap
|
|
4
4
|
/******/ var __webpack_modules__ = ({
|
|
5
5
|
|
|
6
|
-
/***/ 447
|
|
7
|
-
|
|
6
|
+
/***/ 447
|
|
7
|
+
() {
|
|
8
8
|
|
|
9
9
|
/* (ignored) */
|
|
10
10
|
|
|
11
|
-
/***/ }
|
|
11
|
+
/***/ },
|
|
12
12
|
|
|
13
|
-
/***/ 923
|
|
14
|
-
|
|
13
|
+
/***/ 923
|
|
14
|
+
() {
|
|
15
15
|
|
|
16
16
|
/* (ignored) */
|
|
17
17
|
|
|
18
|
-
/***/ }
|
|
18
|
+
/***/ }
|
|
19
19
|
|
|
20
20
|
/******/ });
|
|
21
21
|
/************************************************************************/
|
|
@@ -1345,13 +1345,12 @@ Object .assign (Object .setPrototypeOf (CollisionCollection .prototype, (externa
|
|
|
1345
1345
|
const collisionSpaceNode = external_X_ITE_X3D_X3DCast_default() ((external_X_ITE_X3D_X3DConstants_default()).X3DNBodyCollisionSpaceNode, node);
|
|
1346
1346
|
|
|
1347
1347
|
if (collisionSpaceNode)
|
|
1348
|
-
{
|
|
1349
|
-
collisionSpaceNode .addInterest ("collect", this);
|
|
1350
|
-
|
|
1351
1348
|
collisionSpaceNodes .push (collisionSpaceNode);
|
|
1352
|
-
}
|
|
1353
1349
|
}
|
|
1354
1350
|
|
|
1351
|
+
for (const collisionSpaceNode of collisionSpaceNodes)
|
|
1352
|
+
collisionSpaceNode .addInterest ("collect", this);
|
|
1353
|
+
|
|
1355
1354
|
this .collect ();
|
|
1356
1355
|
},
|
|
1357
1356
|
collect ()
|
|
@@ -1408,11 +1407,11 @@ Object .defineProperties (CollisionCollection,
|
|
|
1408
1407
|
new (external_X_ITE_X3D_X3DFieldDefinition_default()) ((external_X_ITE_X3D_X3DConstants_default()).inputOutput, "slipFactors", new (external_X_ITE_X3D_Fields_default()).SFVec2f ()),
|
|
1409
1408
|
new (external_X_ITE_X3D_X3DFieldDefinition_default()) ((external_X_ITE_X3D_X3DConstants_default()).inputOutput, "softnessConstantForceMix", new (external_X_ITE_X3D_Fields_default()).SFFloat (0.0001)),
|
|
1410
1409
|
new (external_X_ITE_X3D_X3DFieldDefinition_default()) ((external_X_ITE_X3D_X3DConstants_default()).inputOutput, "softnessErrorCorrection", new (external_X_ITE_X3D_Fields_default()).SFFloat (0.8)),
|
|
1411
|
-
new (external_X_ITE_X3D_X3DFieldDefinition_default()) ((external_X_ITE_X3D_X3DConstants_default()).inputOutput, "collidables", new (external_X_ITE_X3D_Fields_default()).MFNode ()),
|
|
1412
1410
|
new (external_X_ITE_X3D_X3DFieldDefinition_default()) ((external_X_ITE_X3D_X3DConstants_default()).inputOutput, "visible", new (external_X_ITE_X3D_Fields_default()).SFBool (true)),
|
|
1413
1411
|
new (external_X_ITE_X3D_X3DFieldDefinition_default()) ((external_X_ITE_X3D_X3DConstants_default()).inputOutput, "bboxDisplay", new (external_X_ITE_X3D_Fields_default()).SFBool ()),
|
|
1414
1412
|
new (external_X_ITE_X3D_X3DFieldDefinition_default()) ((external_X_ITE_X3D_X3DConstants_default()).initializeOnly, "bboxSize", new (external_X_ITE_X3D_Fields_default()).SFVec3f (-1, -1, -1)),
|
|
1415
1413
|
new (external_X_ITE_X3D_X3DFieldDefinition_default()) ((external_X_ITE_X3D_X3DConstants_default()).initializeOnly, "bboxCenter", new (external_X_ITE_X3D_Fields_default()).SFVec3f ()),
|
|
1414
|
+
new (external_X_ITE_X3D_X3DFieldDefinition_default()) ((external_X_ITE_X3D_X3DConstants_default()).inputOutput, "collidables", new (external_X_ITE_X3D_Fields_default()).MFNode ()),
|
|
1416
1415
|
]),
|
|
1417
1416
|
enumerable: true,
|
|
1418
1417
|
},
|
|
@@ -2363,7 +2362,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, (external_X_ITE_X3
|
|
|
2363
2362
|
if (this ._fixed .getValue ())
|
|
2364
2363
|
lv .setValue (0, 0, 0);
|
|
2365
2364
|
else
|
|
2366
|
-
lv .setValue (
|
|
2365
|
+
lv .setValue (... this ._linearVelocity);
|
|
2367
2366
|
|
|
2368
2367
|
this .rigidBody .setLinearVelocity (lv);
|
|
2369
2368
|
this .rigidBody .activate ();
|
|
@@ -2378,7 +2377,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, (external_X_ITE_X3
|
|
|
2378
2377
|
if (this ._fixed .getValue ())
|
|
2379
2378
|
av .setValue (0, 0, 0);
|
|
2380
2379
|
else
|
|
2381
|
-
av .setValue (
|
|
2380
|
+
av .setValue (... this ._angularVelocity);
|
|
2382
2381
|
|
|
2383
2382
|
this .rigidBody .setAngularVelocity (av);
|
|
2384
2383
|
this .rigidBody .activate ();
|
|
@@ -2391,7 +2390,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, (external_X_ITE_X3
|
|
|
2391
2390
|
return function ()
|
|
2392
2391
|
{
|
|
2393
2392
|
if (this ._useFiniteRotation .getValue ())
|
|
2394
|
-
angularFactor .setValue (
|
|
2393
|
+
angularFactor .setValue (... this ._finiteRotationAxis);
|
|
2395
2394
|
else
|
|
2396
2395
|
angularFactor .setValue (1, 1, 1);
|
|
2397
2396
|
|
|
@@ -2416,7 +2415,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, (external_X_ITE_X3
|
|
|
2416
2415
|
|
|
2417
2416
|
return function ()
|
|
2418
2417
|
{
|
|
2419
|
-
origin .setValue (
|
|
2418
|
+
origin .setValue (... this ._centerOfMass);
|
|
2420
2419
|
centerOfMass .setOrigin (origin);
|
|
2421
2420
|
|
|
2422
2421
|
this .rigidBody .setCenterOfMassTransform (centerOfMass);
|
|
@@ -2564,12 +2563,12 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, (external_X_ITE_X3
|
|
|
2564
2563
|
return;
|
|
2565
2564
|
|
|
2566
2565
|
if (this ._useGlobalGravity .getValue ())
|
|
2567
|
-
g .setValue (
|
|
2566
|
+
g .setValue (... gravity);
|
|
2568
2567
|
else
|
|
2569
2568
|
g .setValue (0, 0, 0);
|
|
2570
2569
|
|
|
2571
|
-
f .setValue (
|
|
2572
|
-
t .setValue (
|
|
2570
|
+
f .setValue (... this .force);
|
|
2571
|
+
t .setValue (... this .torque);
|
|
2573
2572
|
|
|
2574
2573
|
this .rigidBody .setGravity (g);
|
|
2575
2574
|
this .rigidBody .applyForce (f, z);
|
|
@@ -2776,47 +2775,64 @@ Object .assign (Object .setPrototypeOf (RigidBodyCollection .prototype, (externa
|
|
|
2776
2775
|
},
|
|
2777
2776
|
set_collider__ ()
|
|
2778
2777
|
{
|
|
2778
|
+
this .colliderNode ?.removeInterest ("set_colliderParameters__", this);
|
|
2779
|
+
|
|
2779
2780
|
this .colliderNode = external_X_ITE_X3D_X3DCast_default() ((external_X_ITE_X3D_X3DConstants_default()).CollisionCollection, this ._collider);
|
|
2781
|
+
|
|
2782
|
+
this .colliderNode ?.addInterest ("set_colliderParameters__", this);
|
|
2783
|
+
|
|
2784
|
+
this .set_colliderParameters__ ();
|
|
2780
2785
|
},
|
|
2781
|
-
|
|
2786
|
+
set_colliderParameters__ ()
|
|
2782
2787
|
{
|
|
2783
|
-
const
|
|
2784
|
-
colliderNode = this .colliderNode,
|
|
2785
|
-
bodyNodes = this .bodyNodes;
|
|
2788
|
+
const colliderNode = this .colliderNode;
|
|
2786
2789
|
|
|
2787
|
-
|
|
2790
|
+
for (const bodyNode of this .bodyNodes)
|
|
2788
2791
|
{
|
|
2789
|
-
|
|
2792
|
+
const rigidBody = bodyNode .getRigidBody ();
|
|
2793
|
+
|
|
2794
|
+
rigidBody .setFriction (0.5);
|
|
2795
|
+
rigidBody .setRollingFriction (0);
|
|
2796
|
+
}
|
|
2797
|
+
|
|
2798
|
+
if (!colliderNode)
|
|
2799
|
+
return;
|
|
2800
|
+
|
|
2801
|
+
for (const parameter of colliderNode .getAppliedParameters ())
|
|
2802
|
+
{
|
|
2803
|
+
switch (parameter)
|
|
2790
2804
|
{
|
|
2791
|
-
|
|
2805
|
+
case RigidBodyPhysics_AppliedParametersType .FRICTION_COEFFICIENT_2:
|
|
2792
2806
|
{
|
|
2793
|
-
const
|
|
2807
|
+
for (const bodyNode of this .bodyNodes)
|
|
2808
|
+
{
|
|
2809
|
+
const rigidBody = bodyNode .getRigidBody ();
|
|
2794
2810
|
|
|
2795
|
-
|
|
2796
|
-
rigidBody .
|
|
2797
|
-
|
|
2798
|
-
rigidBody .setRestitution (0);
|
|
2799
|
-
}
|
|
2811
|
+
rigidBody .setFriction (colliderNode ._frictionCoefficients .x);
|
|
2812
|
+
rigidBody .setRollingFriction (colliderNode ._frictionCoefficients .y);
|
|
2813
|
+
}
|
|
2800
2814
|
|
|
2801
|
-
|
|
2815
|
+
break;
|
|
2816
|
+
}
|
|
2802
2817
|
}
|
|
2803
2818
|
}
|
|
2804
|
-
|
|
2805
|
-
for (const bodyNode of bodyNodes)
|
|
2806
|
-
bodyNode .getRigidBody () .setRestitution (0);
|
|
2807
2819
|
},
|
|
2808
|
-
|
|
2820
|
+
set_bounce__ ()
|
|
2809
2821
|
{
|
|
2810
|
-
|
|
2822
|
+
const colliderNode = this .colliderNode;
|
|
2823
|
+
|
|
2824
|
+
if (colliderNode ?._enabled .getValue ())
|
|
2811
2825
|
{
|
|
2812
|
-
if (
|
|
2826
|
+
if (colliderNode .getAppliedParameters () .has (RigidBodyPhysics_AppliedParametersType .BOUNCE))
|
|
2813
2827
|
{
|
|
2814
2828
|
for (const bodyNode of this .bodyNodes)
|
|
2815
2829
|
{
|
|
2816
2830
|
const rigidBody = bodyNode .getRigidBody ();
|
|
2817
2831
|
|
|
2818
|
-
rigidBody .
|
|
2819
|
-
|
|
2832
|
+
if (rigidBody .getLinearVelocity () .length () >= colliderNode ._minBounceSpeed .getValue ())
|
|
2833
|
+
rigidBody .setRestitution (colliderNode ._bounce .getValue ());
|
|
2834
|
+
else
|
|
2835
|
+
rigidBody .setRestitution (0);
|
|
2820
2836
|
}
|
|
2821
2837
|
|
|
2822
2838
|
return;
|
|
@@ -2824,12 +2840,7 @@ Object .assign (Object .setPrototypeOf (RigidBodyCollection .prototype, (externa
|
|
|
2824
2840
|
}
|
|
2825
2841
|
|
|
2826
2842
|
for (const bodyNode of this .bodyNodes)
|
|
2827
|
-
|
|
2828
|
-
const rigidBody = bodyNode .getRigidBody ();
|
|
2829
|
-
|
|
2830
|
-
rigidBody .setFriction (0.5);
|
|
2831
|
-
rigidBody .setRollingFriction (0);
|
|
2832
|
-
}
|
|
2843
|
+
bodyNode .getRigidBody () .setRestitution (0);
|
|
2833
2844
|
},
|
|
2834
2845
|
set_bodies__ ()
|
|
2835
2846
|
{
|
|
@@ -2848,7 +2859,7 @@ Object .assign (Object .setPrototypeOf (RigidBodyCollection .prototype, (externa
|
|
|
2848
2859
|
{
|
|
2849
2860
|
const bodyNode = external_X_ITE_X3D_X3DCast_default() ((external_X_ITE_X3D_X3DConstants_default()).RigidBody, node);
|
|
2850
2861
|
|
|
2851
|
-
if (!
|
|
2862
|
+
if (!bodyNode)
|
|
2852
2863
|
continue;
|
|
2853
2864
|
|
|
2854
2865
|
if (bodyNode .getCollection ())
|
|
@@ -2866,6 +2877,7 @@ Object .assign (Object .setPrototypeOf (RigidBodyCollection .prototype, (externa
|
|
|
2866
2877
|
for (const bodyNode of this .bodyNodes)
|
|
2867
2878
|
bodyNode ._enabled .addInterest ("set_dynamicsWorld__", this);
|
|
2868
2879
|
|
|
2880
|
+
this .set_colliderParameters__ ();
|
|
2869
2881
|
this .set_contactSurfaceThickness__ ();
|
|
2870
2882
|
this .set_dynamicsWorld__ ();
|
|
2871
2883
|
this .set_joints__ ();
|
|
@@ -2879,7 +2891,7 @@ Object .assign (Object .setPrototypeOf (RigidBodyCollection .prototype, (externa
|
|
|
2879
2891
|
|
|
2880
2892
|
for (const bodyNode of this .bodyNodes)
|
|
2881
2893
|
{
|
|
2882
|
-
if (!
|
|
2894
|
+
if (!bodyNode ._enabled .getValue ())
|
|
2883
2895
|
continue;
|
|
2884
2896
|
|
|
2885
2897
|
this .rigidBodies .push (bodyNode .getRigidBody ());
|
|
@@ -2904,7 +2916,7 @@ Object .assign (Object .setPrototypeOf (RigidBodyCollection .prototype, (externa
|
|
|
2904
2916
|
{
|
|
2905
2917
|
const jointNode = external_X_ITE_X3D_X3DCast_default() ((external_X_ITE_X3D_X3DConstants_default()).X3DRigidJointNode, node);
|
|
2906
2918
|
|
|
2907
|
-
if (!
|
|
2919
|
+
if (!jointNode)
|
|
2908
2920
|
continue;
|
|
2909
2921
|
|
|
2910
2922
|
if (jointNode .getCollection ())
|
|
@@ -2928,7 +2940,6 @@ Object .assign (Object .setPrototypeOf (RigidBodyCollection .prototype, (externa
|
|
|
2928
2940
|
gravity = this ._gravity .getValue ();
|
|
2929
2941
|
|
|
2930
2942
|
this .set_bounce__ ();
|
|
2931
|
-
this .set_frictionCoefficients__ ();
|
|
2932
2943
|
|
|
2933
2944
|
if (this ._preferAccuracy .getValue ())
|
|
2934
2945
|
{
|