@galacean/engine-physics-physx 2.0.0-alpha.36 → 2.0.0-alpha.38

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/module.js CHANGED
@@ -718,20 +718,17 @@ PhysXCollider._tempTransform = {
718
718
  /**
719
719
  * {@inheritDoc IDynamicCollider.addForce }
720
720
  */ _proto.addForce = function addForce(force) {
721
- this._pxActor.addForce({
722
- x: force.x,
723
- y: force.y,
724
- z: force.z
725
- });
721
+ this._pxActor.addForce(force);
722
+ };
723
+ /**
724
+ * {@inheritDoc IDynamicCollider.addForceAtPosition }
725
+ */ _proto.addForceAtPosition = function addForceAtPosition(force, position) {
726
+ this._pxActor.addForceAtPos(force, position);
726
727
  };
727
728
  /**
728
729
  * {@inheritDoc IDynamicCollider.addTorque }
729
730
  */ _proto.addTorque = function addTorque(torque) {
730
- this._pxActor.addTorque({
731
- x: torque.x,
732
- y: torque.y,
733
- z: torque.z
734
- });
731
+ this._pxActor.addTorque(torque);
735
732
  };
736
733
  /**
737
734
  * {@inheritDoc IDynamicCollider.move }
@@ -1774,9 +1771,9 @@ PhysXMeshColliderShape._tightBoundsFlag = 1 // eTIGHT_BOUNDS = 1 (1<<0)
1774
1771
  this._initializeState = 0;
1775
1772
  this._runTimeMode = runtimeMode;
1776
1773
  var _runtimeUrls_wasmSIMDModeUrl;
1777
- this._wasmSIMDModeUrl = (_runtimeUrls_wasmSIMDModeUrl = runtimeUrls == null ? void 0 : runtimeUrls.wasmSIMDModeUrl) != null ? _runtimeUrls_wasmSIMDModeUrl : "https://mdn.alipayobjects.com/rms/afts/file/A*iHrYQKBrgTAAAAAAQ4AAAAgAehQnAQ/physx.release.simd.js";
1774
+ this._wasmSIMDModeUrl = (_runtimeUrls_wasmSIMDModeUrl = runtimeUrls == null ? void 0 : runtimeUrls.wasmSIMDModeUrl) != null ? _runtimeUrls_wasmSIMDModeUrl : "https://mdn.alipayobjects.com/rms/uri/file/as/apwallet/1781696156399/suyi/physx.release.simd.js";
1778
1775
  var _runtimeUrls_wasmModeUrl;
1779
- this._wasmModeUrl = (_runtimeUrls_wasmModeUrl = runtimeUrls == null ? void 0 : runtimeUrls.wasmModeUrl) != null ? _runtimeUrls_wasmModeUrl : "https://mdn.alipayobjects.com/rms/afts/file/A*DFuvR6Mv5C0AAAAAQ4AAAAgAehQnAQ/physx.release.js";
1776
+ this._wasmModeUrl = (_runtimeUrls_wasmModeUrl = runtimeUrls == null ? void 0 : runtimeUrls.wasmModeUrl) != null ? _runtimeUrls_wasmModeUrl : "https://mdn.alipayobjects.com/rms/uri/file/as/apwallet/1781696156399/suyi/physx.release.js";
1780
1777
  }
1781
1778
  var _proto = PhysXPhysics.prototype;
1782
1779
  /**
@@ -1946,7 +1943,7 @@ PhysXMeshColliderShape._tightBoundsFlag = 1 // eTIGHT_BOUNDS = 1 (1<<0)
1946
1943
  }();
1947
1944
 
1948
1945
  //@ts-ignore
1949
- var version = "2.0.0-alpha.36";
1946
+ var version = "2.0.0-alpha.38";
1950
1947
  console.log("Galacean Engine Physics PhysX Version: " + version);
1951
1948
 
1952
1949
  export { PhysXPhysics, PhysXRuntimeMode, version };