@galacean/engine-physics-physx 1.4.3 → 1.4.5
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 +23 -6
- 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 +23 -6
- package/dist/main.js.map +1 -1
- package/dist/module.js +23 -6
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
- package/types/joint/PhysXHingeJoint.d.ts +7 -3
- package/types/joint/PhysXJoint.d.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-physics-physx",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"types/**/*"
|
|
27
27
|
],
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@galacean/engine-design": "1.4.
|
|
30
|
-
"@galacean/engine": "1.4.
|
|
29
|
+
"@galacean/engine-design": "1.4.5",
|
|
30
|
+
"@galacean/engine": "1.4.5"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@galacean/engine": "1.4.
|
|
33
|
+
"@galacean/engine": "1.4.5"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"b:types": "tsc"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IHingeJoint } from "@galacean/engine-design";
|
|
2
|
-
import { Vector3 } from "@galacean/engine";
|
|
2
|
+
import { Quaternion, Vector3 } from "@galacean/engine";
|
|
3
3
|
import { PhysXCollider } from "../PhysXCollider";
|
|
4
4
|
import { PhysXPhysics } from "../PhysXPhysics";
|
|
5
5
|
import { PhysXJoint } from "./PhysXJoint";
|
|
@@ -8,15 +8,19 @@ import { PhysXJoint } from "./PhysXJoint";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class PhysXHingeJoint extends PhysXJoint implements IHingeJoint {
|
|
10
10
|
protected static _xAxis: Vector3;
|
|
11
|
-
private
|
|
12
|
-
private _connectedAnchor;
|
|
11
|
+
private _axis;
|
|
13
12
|
private _axisRotationQuaternion;
|
|
13
|
+
private _connectedAxisRotationQuaternion;
|
|
14
14
|
constructor(physXPhysics: PhysXPhysics, collider: PhysXCollider);
|
|
15
|
+
setRotation(value: Quaternion): void;
|
|
15
16
|
/**
|
|
16
17
|
* {@inheritDoc IHingeJoint.setAxis }
|
|
17
18
|
*/
|
|
18
19
|
setAxis(value: Vector3): void;
|
|
19
20
|
setAnchor(value: Vector3): void;
|
|
21
|
+
/**
|
|
22
|
+
* {@inheritDoc IJoint.setConnectedAnchor }
|
|
23
|
+
*/
|
|
20
24
|
setConnectedAnchor(value: Vector3): void;
|
|
21
25
|
/**
|
|
22
26
|
* {@inheritDoc IHingeJoint.getAngle }
|
|
@@ -9,6 +9,9 @@ export declare class PhysXJoint implements IJoint {
|
|
|
9
9
|
protected static _defaultVec: Vector3;
|
|
10
10
|
protected static _defaultQuat: Quaternion;
|
|
11
11
|
protected _pxJoint: any;
|
|
12
|
+
protected _anchor: Vector3;
|
|
13
|
+
protected _connectedAnchor: Vector3;
|
|
14
|
+
protected _rotation: Quaternion;
|
|
12
15
|
protected _collider: PhysXCollider;
|
|
13
16
|
private _breakForce;
|
|
14
17
|
private _breakTorque;
|
|
@@ -26,6 +29,7 @@ export declare class PhysXJoint implements IJoint {
|
|
|
26
29
|
* {@inheritDoc IJoint.setConnectedAnchor }
|
|
27
30
|
*/
|
|
28
31
|
setConnectedAnchor(value: Vector3): void;
|
|
32
|
+
setRotation(value: Quaternion): void;
|
|
29
33
|
/**
|
|
30
34
|
* {@inheritDoc IJoint.setMassScale }
|
|
31
35
|
*/
|