@babylonjs/core 5.18.0 → 5.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Debug/debugLayer.d.ts +36 -0
- package/Debug/debugLayer.js.map +1 -1
- package/Engines/Extensions/engine.query.js +5 -1
- package/Engines/Extensions/engine.query.js.map +1 -1
- package/Engines/Extensions/engine.transformFeedback.js +5 -1
- package/Engines/Extensions/engine.transformFeedback.js.map +1 -1
- package/Engines/engine.d.ts +15 -242
- package/Engines/thinEngine.d.ts +1 -1
- package/Engines/thinEngine.js +7 -3
- package/Engines/thinEngine.js.map +1 -1
- package/Gizmos/axisDragGizmo.d.ts +20 -1
- package/Gizmos/axisDragGizmo.js.map +1 -1
- package/Gizmos/axisScaleGizmo.d.ts +26 -1
- package/Gizmos/axisScaleGizmo.js.map +1 -1
- package/Gizmos/boundingBoxGizmo.d.ts +71 -1
- package/Gizmos/boundingBoxGizmo.js.map +1 -1
- package/Gizmos/cameraGizmo.d.ts +15 -1
- package/Gizmos/cameraGizmo.js.map +1 -1
- package/Gizmos/gizmoManager.d.ts +8 -8
- package/Gizmos/gizmoManager.js.map +1 -1
- package/Gizmos/lightGizmo.d.ts +13 -1
- package/Gizmos/lightGizmo.js.map +1 -1
- package/Gizmos/planeDragGizmo.d.ts +20 -1
- package/Gizmos/planeDragGizmo.js.map +1 -1
- package/Gizmos/planeRotationGizmo.d.ts +22 -1
- package/Gizmos/planeRotationGizmo.js.map +1 -1
- package/Gizmos/positionGizmo.d.ts +44 -10
- package/Gizmos/positionGizmo.js.map +1 -1
- package/Gizmos/rotationGizmo.d.ts +29 -6
- package/Gizmos/rotationGizmo.js.map +1 -1
- package/Gizmos/scaleGizmo.d.ts +34 -6
- package/Gizmos/scaleGizmo.js.map +1 -1
- package/Materials/Textures/renderTargetTexture.js +3 -0
- package/Materials/Textures/renderTargetTexture.js.map +1 -1
- package/Materials/index.d.ts +1 -0
- package/Materials/index.js +1 -0
- package/Materials/index.js.map +1 -1
- package/Maths/math.vector.d.ts +16 -1
- package/Maths/math.vector.js +35 -2
- package/Maths/math.vector.js.map +1 -1
- package/Meshes/groundMesh.js +1 -1
- package/Meshes/groundMesh.js.map +1 -1
- package/Misc/assetsManager.d.ts +9 -0
- package/Misc/assetsManager.js +3 -1
- package/Misc/assetsManager.js.map +1 -1
- package/Misc/basis.js +7 -4
- package/Misc/basis.js.map +1 -1
- package/Misc/computePressure.d.ts +9 -3
- package/Misc/computePressure.js +13 -5
- package/Misc/computePressure.js.map +1 -1
- package/Physics/physicsImpostor.js +8 -2
- package/Physics/physicsImpostor.js.map +1 -1
- package/package.json +1 -1
- package/scene.js +5 -3
- package/scene.js.map +1 -1
package/Maths/math.vector.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare class Vector2 {
|
|
|
11
11
|
x: number;
|
|
12
12
|
/** defines the second coordinate */
|
|
13
13
|
y: number;
|
|
14
|
+
private static _ZeroReadOnly;
|
|
14
15
|
/**
|
|
15
16
|
* Creates a new Vector2 from the given x and y coordinates
|
|
16
17
|
* @param x defines the first coordinate
|
|
@@ -268,6 +269,10 @@ export declare class Vector2 {
|
|
|
268
269
|
* @returns a new Vector2
|
|
269
270
|
*/
|
|
270
271
|
static One(): Vector2;
|
|
272
|
+
/**
|
|
273
|
+
* Gets a zero Vector2 that must not be updated
|
|
274
|
+
*/
|
|
275
|
+
static get ZeroReadOnly(): DeepImmutable<Vector2>;
|
|
271
276
|
/**
|
|
272
277
|
* Gets a new Vector2 set from the given index element of the given array
|
|
273
278
|
* @param array defines the data source
|
|
@@ -442,6 +447,7 @@ export declare class Vector2 {
|
|
|
442
447
|
*/
|
|
443
448
|
export declare class Vector3 {
|
|
444
449
|
private static _UpReadOnly;
|
|
450
|
+
private static _DownReadOnly;
|
|
445
451
|
private static _LeftHandedForwardReadOnly;
|
|
446
452
|
private static _RightHandedForwardReadOnly;
|
|
447
453
|
private static _RightReadOnly;
|
|
@@ -959,9 +965,13 @@ export declare class Vector3 {
|
|
|
959
965
|
*/
|
|
960
966
|
static Up(): Vector3;
|
|
961
967
|
/**
|
|
962
|
-
* Gets
|
|
968
|
+
* Gets an up Vector3 that must not be updated
|
|
963
969
|
*/
|
|
964
970
|
static get UpReadOnly(): DeepImmutable<Vector3>;
|
|
971
|
+
/**
|
|
972
|
+
* Gets a down Vector3 that must not be updated
|
|
973
|
+
*/
|
|
974
|
+
static get DownReadOnly(): DeepImmutable<Vector3>;
|
|
965
975
|
/**
|
|
966
976
|
* Gets a right Vector3 that must not be updated
|
|
967
977
|
*/
|
|
@@ -1339,6 +1349,7 @@ export declare class Vector4 {
|
|
|
1339
1349
|
z: number;
|
|
1340
1350
|
/** w value of the vector */
|
|
1341
1351
|
w: number;
|
|
1352
|
+
private static _ZeroReadOnly;
|
|
1342
1353
|
/**
|
|
1343
1354
|
* Creates a Vector4 object from the given floats.
|
|
1344
1355
|
* @param x x value of the vector
|
|
@@ -1677,6 +1688,10 @@ export declare class Vector4 {
|
|
|
1677
1688
|
* @returns the new vector
|
|
1678
1689
|
*/
|
|
1679
1690
|
static One(): Vector4;
|
|
1691
|
+
/**
|
|
1692
|
+
* Gets a zero Vector4 that must not be updated
|
|
1693
|
+
*/
|
|
1694
|
+
static get ZeroReadOnly(): DeepImmutable<Vector4>;
|
|
1680
1695
|
/**
|
|
1681
1696
|
* Returns a new normalized Vector4 from the given one.
|
|
1682
1697
|
* @param vector the vector to normalize
|
package/Maths/math.vector.js
CHANGED
|
@@ -406,6 +406,16 @@ var Vector2 = /** @class */ (function () {
|
|
|
406
406
|
Vector2.One = function () {
|
|
407
407
|
return new Vector2(1, 1);
|
|
408
408
|
};
|
|
409
|
+
Object.defineProperty(Vector2, "ZeroReadOnly", {
|
|
410
|
+
/**
|
|
411
|
+
* Gets a zero Vector2 that must not be updated
|
|
412
|
+
*/
|
|
413
|
+
get: function () {
|
|
414
|
+
return Vector2._ZeroReadOnly;
|
|
415
|
+
},
|
|
416
|
+
enumerable: false,
|
|
417
|
+
configurable: true
|
|
418
|
+
});
|
|
409
419
|
/**
|
|
410
420
|
* Gets a new Vector2 set from the given index element of the given array
|
|
411
421
|
* @param array defines the data source
|
|
@@ -677,6 +687,7 @@ var Vector2 = /** @class */ (function () {
|
|
|
677
687
|
var proj = segA.add(v.multiplyByFloats(t, t));
|
|
678
688
|
return Vector2.Distance(p, proj);
|
|
679
689
|
};
|
|
690
|
+
Vector2._ZeroReadOnly = Vector2.Zero();
|
|
680
691
|
return Vector2;
|
|
681
692
|
}());
|
|
682
693
|
export { Vector2 };
|
|
@@ -1015,7 +1026,7 @@ var Vector3 = /** @class */ (function () {
|
|
|
1015
1026
|
var denom = Vector3.Dot(V, n);
|
|
1016
1027
|
//When the ray is close to parallel to the plane return infinity vector
|
|
1017
1028
|
if (Math.abs(denom) < Math.pow(10, -10)) {
|
|
1018
|
-
|
|
1029
|
+
result.setAll(Infinity);
|
|
1019
1030
|
}
|
|
1020
1031
|
else {
|
|
1021
1032
|
var t = -(Vector3.Dot(origin, n) + d) / denom;
|
|
@@ -1570,7 +1581,7 @@ var Vector3 = /** @class */ (function () {
|
|
|
1570
1581
|
};
|
|
1571
1582
|
Object.defineProperty(Vector3, "UpReadOnly", {
|
|
1572
1583
|
/**
|
|
1573
|
-
* Gets
|
|
1584
|
+
* Gets an up Vector3 that must not be updated
|
|
1574
1585
|
*/
|
|
1575
1586
|
get: function () {
|
|
1576
1587
|
return Vector3._UpReadOnly;
|
|
@@ -1578,6 +1589,16 @@ var Vector3 = /** @class */ (function () {
|
|
|
1578
1589
|
enumerable: false,
|
|
1579
1590
|
configurable: true
|
|
1580
1591
|
});
|
|
1592
|
+
Object.defineProperty(Vector3, "DownReadOnly", {
|
|
1593
|
+
/**
|
|
1594
|
+
* Gets a down Vector3 that must not be updated
|
|
1595
|
+
*/
|
|
1596
|
+
get: function () {
|
|
1597
|
+
return Vector3._DownReadOnly;
|
|
1598
|
+
},
|
|
1599
|
+
enumerable: false,
|
|
1600
|
+
configurable: true
|
|
1601
|
+
});
|
|
1581
1602
|
Object.defineProperty(Vector3, "RightReadOnly", {
|
|
1582
1603
|
/**
|
|
1583
1604
|
* Gets a right Vector3 that must not be updated
|
|
@@ -2293,6 +2314,7 @@ var Vector3 = /** @class */ (function () {
|
|
|
2293
2314
|
quat.toEulerAnglesToRef(ref);
|
|
2294
2315
|
};
|
|
2295
2316
|
Vector3._UpReadOnly = Vector3.Up();
|
|
2317
|
+
Vector3._DownReadOnly = Vector3.Down();
|
|
2296
2318
|
Vector3._LeftHandedForwardReadOnly = Vector3.Forward(false);
|
|
2297
2319
|
Vector3._RightHandedForwardReadOnly = Vector3.Forward(true);
|
|
2298
2320
|
Vector3._RightReadOnly = Vector3.Right();
|
|
@@ -2870,6 +2892,16 @@ var Vector4 = /** @class */ (function () {
|
|
|
2870
2892
|
Vector4.One = function () {
|
|
2871
2893
|
return new Vector4(1.0, 1.0, 1.0, 1.0);
|
|
2872
2894
|
};
|
|
2895
|
+
Object.defineProperty(Vector4, "ZeroReadOnly", {
|
|
2896
|
+
/**
|
|
2897
|
+
* Gets a zero Vector4 that must not be updated
|
|
2898
|
+
*/
|
|
2899
|
+
get: function () {
|
|
2900
|
+
return Vector4._ZeroReadOnly;
|
|
2901
|
+
},
|
|
2902
|
+
enumerable: false,
|
|
2903
|
+
configurable: true
|
|
2904
|
+
});
|
|
2873
2905
|
/**
|
|
2874
2906
|
* Returns a new normalized Vector4 from the given one.
|
|
2875
2907
|
* @param vector the vector to normalize
|
|
@@ -3053,6 +3085,7 @@ var Vector4 = /** @class */ (function () {
|
|
|
3053
3085
|
if (w === void 0) { w = 0; }
|
|
3054
3086
|
return new Vector4(source._x, source._y, source._z, w);
|
|
3055
3087
|
};
|
|
3088
|
+
Vector4._ZeroReadOnly = Vector4.Zero();
|
|
3056
3089
|
return Vector4;
|
|
3057
3090
|
}());
|
|
3058
3091
|
export { Vector4 };
|