@babylonjs/core 8.14.1 → 8.15.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/Culling/ray.core.js +2 -2
- package/Culling/ray.core.js.map +1 -1
- package/Engines/abstractEngine.js +2 -2
- package/Engines/abstractEngine.js.map +1 -1
- package/Maths/math.vector.d.ts +0 -4
- package/Maths/math.vector.js +1 -13
- package/Maths/math.vector.js.map +1 -1
- package/Meshes/transformNode.d.ts +1 -0
- package/Meshes/transformNode.js +10 -2
- package/Meshes/transformNode.js.map +1 -1
- package/Physics/v2/physicsBody.d.ts +0 -1
- package/Physics/v2/physicsBody.js +1 -2
- package/Physics/v2/physicsBody.js.map +1 -1
- package/Sprites/spriteManager.d.ts +6 -1
- package/Sprites/spriteManager.js +2 -0
- package/Sprites/spriteManager.js.map +1 -1
- package/Sprites/spriteSceneComponent.d.ts +14 -0
- package/Sprites/spriteSceneComponent.js +23 -0
- package/Sprites/spriteSceneComponent.js.map +1 -1
- package/package.json +1 -1
package/Maths/math.vector.d.ts
CHANGED
|
@@ -1724,10 +1724,6 @@ export declare class Vector3 implements Vector<Tuple<number, 3>, IVector3LikeInt
|
|
|
1724
1724
|
* @returns the resulting vector
|
|
1725
1725
|
*/
|
|
1726
1726
|
static ReflectToRef<T extends Vector3>(inDirection: DeepImmutable<Vector3>, normal: DeepImmutable<Vector3>, ref: T): T;
|
|
1727
|
-
/**
|
|
1728
|
-
* @internal
|
|
1729
|
-
*/
|
|
1730
|
-
static _UnprojectFromInvertedMatrixToRef<T extends Vector3>(source: DeepImmutable<Vector3>, matrix: DeepImmutable<Matrix>, result: T): T;
|
|
1731
1727
|
/**
|
|
1732
1728
|
* Unproject from screen space to object space
|
|
1733
1729
|
* Example Playground https://playground.babylonjs.com/#R1F8YU#121
|
package/Maths/math.vector.js
CHANGED
|
@@ -2535,18 +2535,6 @@ export class Vector3 {
|
|
|
2535
2535
|
tmp.copyFrom(normal).scaleInPlace(2 * Vector3.Dot(inDirection, normal));
|
|
2536
2536
|
return ref.copyFrom(inDirection).subtractInPlace(tmp);
|
|
2537
2537
|
}
|
|
2538
|
-
/**
|
|
2539
|
-
* @internal
|
|
2540
|
-
*/
|
|
2541
|
-
static _UnprojectFromInvertedMatrixToRef(source, matrix, result) {
|
|
2542
|
-
Vector3.TransformCoordinatesToRef(source, matrix, result);
|
|
2543
|
-
const m = matrix.m;
|
|
2544
|
-
const num = source._x * m[3] + source._y * m[7] + source._z * m[11] + m[15];
|
|
2545
|
-
if (WithinEpsilon(num, 1.0)) {
|
|
2546
|
-
result.scaleInPlace(1.0 / num);
|
|
2547
|
-
}
|
|
2548
|
-
return result;
|
|
2549
|
-
}
|
|
2550
2538
|
/**
|
|
2551
2539
|
* Unproject from screen space to object space
|
|
2552
2540
|
* Example Playground https://playground.babylonjs.com/#R1F8YU#121
|
|
@@ -2620,7 +2608,7 @@ export class Vector3 {
|
|
|
2620
2608
|
else {
|
|
2621
2609
|
screenSource.z = 2 * sourceZ - 1.0;
|
|
2622
2610
|
}
|
|
2623
|
-
Vector3.
|
|
2611
|
+
Vector3.TransformCoordinatesToRef(screenSource, matrix, result);
|
|
2624
2612
|
return result;
|
|
2625
2613
|
}
|
|
2626
2614
|
/**
|