@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/main.js
CHANGED
|
@@ -722,20 +722,17 @@ PhysXCollider._tempTransform = {
|
|
|
722
722
|
/**
|
|
723
723
|
* {@inheritDoc IDynamicCollider.addForce }
|
|
724
724
|
*/ _proto.addForce = function addForce(force) {
|
|
725
|
-
this._pxActor.addForce(
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
725
|
+
this._pxActor.addForce(force);
|
|
726
|
+
};
|
|
727
|
+
/**
|
|
728
|
+
* {@inheritDoc IDynamicCollider.addForceAtPosition }
|
|
729
|
+
*/ _proto.addForceAtPosition = function addForceAtPosition(force, position) {
|
|
730
|
+
this._pxActor.addForceAtPos(force, position);
|
|
730
731
|
};
|
|
731
732
|
/**
|
|
732
733
|
* {@inheritDoc IDynamicCollider.addTorque }
|
|
733
734
|
*/ _proto.addTorque = function addTorque(torque) {
|
|
734
|
-
this._pxActor.addTorque(
|
|
735
|
-
x: torque.x,
|
|
736
|
-
y: torque.y,
|
|
737
|
-
z: torque.z
|
|
738
|
-
});
|
|
735
|
+
this._pxActor.addTorque(torque);
|
|
739
736
|
};
|
|
740
737
|
/**
|
|
741
738
|
* {@inheritDoc IDynamicCollider.move }
|
|
@@ -1778,9 +1775,9 @@ PhysXMeshColliderShape._tightBoundsFlag = 1 // eTIGHT_BOUNDS = 1 (1<<0)
|
|
|
1778
1775
|
this._initializeState = 0;
|
|
1779
1776
|
this._runTimeMode = runtimeMode;
|
|
1780
1777
|
var _runtimeUrls_wasmSIMDModeUrl;
|
|
1781
|
-
this._wasmSIMDModeUrl = (_runtimeUrls_wasmSIMDModeUrl = runtimeUrls == null ? void 0 : runtimeUrls.wasmSIMDModeUrl) != null ? _runtimeUrls_wasmSIMDModeUrl : "https://mdn.alipayobjects.com/rms/
|
|
1778
|
+
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";
|
|
1782
1779
|
var _runtimeUrls_wasmModeUrl;
|
|
1783
|
-
this._wasmModeUrl = (_runtimeUrls_wasmModeUrl = runtimeUrls == null ? void 0 : runtimeUrls.wasmModeUrl) != null ? _runtimeUrls_wasmModeUrl : "https://mdn.alipayobjects.com/rms/
|
|
1780
|
+
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";
|
|
1784
1781
|
}
|
|
1785
1782
|
var _proto = PhysXPhysics.prototype;
|
|
1786
1783
|
/**
|
|
@@ -1950,7 +1947,7 @@ PhysXMeshColliderShape._tightBoundsFlag = 1 // eTIGHT_BOUNDS = 1 (1<<0)
|
|
|
1950
1947
|
}();
|
|
1951
1948
|
|
|
1952
1949
|
//@ts-ignore
|
|
1953
|
-
var version = "2.0.0-alpha.
|
|
1950
|
+
var version = "2.0.0-alpha.38";
|
|
1954
1951
|
console.log("Galacean Engine Physics PhysX Version: " + version);
|
|
1955
1952
|
|
|
1956
1953
|
exports.PhysXPhysics = PhysXPhysics;
|