@galacean/engine-physics-physx 2.0.0-alpha.47 → 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/module.js
CHANGED
|
@@ -984,14 +984,14 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
984
984
|
};
|
|
985
985
|
/**
|
|
986
986
|
* {@inheritDoc IPhysicsScene.raycast }
|
|
987
|
-
*/ _proto.raycast = function raycast(
|
|
987
|
+
*/ _proto.raycast = function raycast(origin, direction, distance, onRaycast, hit) {
|
|
988
988
|
var _this = this, pxHitResult = _this._pxRaycastHit;
|
|
989
989
|
distance = Math.min(distance, 3.4e38); // float32 max value limit in physX raycast.
|
|
990
990
|
var prevOnQuery = this._currentOnQuery;
|
|
991
991
|
this._currentOnQuery = onRaycast;
|
|
992
992
|
var result;
|
|
993
993
|
try {
|
|
994
|
-
result = this._pxScene.raycastSingle(
|
|
994
|
+
result = this._pxScene.raycastSingle(origin, direction, distance, pxHitResult, this._pxRaycastSweepFilterData, this._pxQueryCallback);
|
|
995
995
|
} finally{
|
|
996
996
|
this._currentOnQuery = prevOnQuery;
|
|
997
997
|
}
|
|
@@ -1936,7 +1936,7 @@ PhysXMeshColliderShape._tightBoundsFlag = 1 // eTIGHT_BOUNDS = 1 (1<<0)
|
|
|
1936
1936
|
}();
|
|
1937
1937
|
|
|
1938
1938
|
//@ts-ignore
|
|
1939
|
-
var version = "2.0.0-alpha.
|
|
1939
|
+
var version = "2.0.0-alpha.48";
|
|
1940
1940
|
console.log("Galacean Engine Physics PhysX Version: " + version);
|
|
1941
1941
|
|
|
1942
1942
|
export { PhysXPhysics, PhysXRuntimeMode, version };
|