@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 CHANGED
@@ -988,14 +988,14 @@
988
988
  };
989
989
  /**
990
990
  * {@inheritDoc IPhysicsScene.raycast }
991
- */ _proto.raycast = function raycast(ray, distance, onRaycast, hit) {
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(ray.origin, ray.direction, distance, pxHitResult, this._pxRaycastSweepFilterData, this._pxQueryCallback);
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 @@
1940
1940
  }();
1941
1941
 
1942
1942
  //@ts-ignore
1943
- var version = "2.0.0-alpha.47";
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;