@galacean/engine-physics-physx 2.0.0-alpha.46 → 2.0.0-alpha.48
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/dist/browser.js +3 -3
- package/dist/browser.js.map +1 -1
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +1 -1
- package/dist/main.js +3 -3
- package/dist/main.js.map +1 -1
- package/dist/module.js +3 -3
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
- package/types/PhysXPhysicsScene.d.ts +2 -2
package/dist/main.js
CHANGED
|
@@ -988,14 +988,14 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
988
988
|
};
|
|
989
989
|
/**
|
|
990
990
|
* {@inheritDoc IPhysicsScene.raycast }
|
|
991
|
-
*/ _proto.raycast = function raycast(
|
|
991
|
+
*/ _proto.raycast = function raycast(origin, direction, distance, onRaycast, hit) {
|
|
992
992
|
var _this = this, pxHitResult = _this._pxRaycastHit;
|
|
993
993
|
distance = Math.min(distance, 3.4e38); // float32 max value limit in physX raycast.
|
|
994
994
|
var prevOnQuery = this._currentOnQuery;
|
|
995
995
|
this._currentOnQuery = onRaycast;
|
|
996
996
|
var result;
|
|
997
997
|
try {
|
|
998
|
-
result = this._pxScene.raycastSingle(
|
|
998
|
+
result = this._pxScene.raycastSingle(origin, direction, distance, pxHitResult, this._pxRaycastSweepFilterData, this._pxQueryCallback);
|
|
999
999
|
} finally{
|
|
1000
1000
|
this._currentOnQuery = prevOnQuery;
|
|
1001
1001
|
}
|
|
@@ -1940,7 +1940,7 @@ PhysXMeshColliderShape._tightBoundsFlag = 1 // eTIGHT_BOUNDS = 1 (1<<0)
|
|
|
1940
1940
|
}();
|
|
1941
1941
|
|
|
1942
1942
|
//@ts-ignore
|
|
1943
|
-
var version = "2.0.0-alpha.
|
|
1943
|
+
var version = "2.0.0-alpha.48";
|
|
1944
1944
|
console.log("Galacean Engine Physics PhysX Version: " + version);
|
|
1945
1945
|
|
|
1946
1946
|
exports.PhysXPhysics = PhysXPhysics;
|