@galacean/engine-physics-physx 2.0.0-alpha.37 → 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/browser.js +10 -13
- 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 +10 -13
- package/dist/main.js.map +1 -1
- package/dist/module.js +10 -13
- package/dist/module.js.map +1 -1
- package/libs/physx.release.simd.wasm +0 -0
- package/libs/physx.release.wasm +0 -0
- package/package.json +4 -4
- package/types/PhysXDynamicCollider.d.ts +4 -0
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
|
-
|
|
723
|
-
|
|
724
|
-
|
|
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/
|
|
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/
|
|
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.
|
|
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 };
|