@galacean/engine-physics-physx 1.5.7 → 1.5.9
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 +43 -7
- 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 +43 -7
- package/dist/main.js.map +1 -1
- package/dist/module.js +43 -7
- package/dist/module.js.map +1 -1
- package/libs/physx.release.downgrade.js +30 -30
- package/libs/physx.release.js +1 -1
- package/libs/physx.release.wasm +0 -0
- package/package.json +4 -4
- package/types/shape/PhysXBoxColliderShape.d.ts +4 -0
- package/types/shape/PhysXCapsuleColliderShape.d.ts +5 -3
- package/types/shape/PhysXColliderShape.d.ts +0 -1
|
@@ -13,6 +13,10 @@ export declare class PhysXBoxColliderShape extends PhysXColliderShape implements
|
|
|
13
13
|
* {@inheritDoc IBoxColliderShape.setSize }
|
|
14
14
|
*/
|
|
15
15
|
setSize(value: Vector3): void;
|
|
16
|
+
/**
|
|
17
|
+
* {@inheritDoc IColliderShape.setRotation }
|
|
18
|
+
*/
|
|
19
|
+
setRotation(value: Vector3): void;
|
|
16
20
|
/**
|
|
17
21
|
* {@inheritDoc IColliderShape.setWorldScale }
|
|
18
22
|
*/
|
|
@@ -7,7 +7,6 @@ import { PhysXColliderShape } from "./PhysXColliderShape";
|
|
|
7
7
|
* Capsule collider shape in PhysX.
|
|
8
8
|
*/
|
|
9
9
|
export declare class PhysXCapsuleColliderShape extends PhysXColliderShape implements ICapsuleColliderShape {
|
|
10
|
-
private _upAxis;
|
|
11
10
|
constructor(physXPhysics: PhysXPhysics, uniqueID: number, radius: number, height: number, material: PhysXPhysicsMaterial);
|
|
12
11
|
/**
|
|
13
12
|
* {@inheritDoc ICapsuleColliderShape.setRadius }
|
|
@@ -17,6 +16,10 @@ export declare class PhysXCapsuleColliderShape extends PhysXColliderShape implem
|
|
|
17
16
|
* {@inheritDoc ICapsuleColliderShape.setHeight }
|
|
18
17
|
*/
|
|
19
18
|
setHeight(value: number): void;
|
|
19
|
+
/**
|
|
20
|
+
* {@inheritDoc ICapsuleColliderShape.setRotation }
|
|
21
|
+
*/
|
|
22
|
+
setRotation(value: Vector3): void;
|
|
20
23
|
/**
|
|
21
24
|
* {@inheritDoc ICapsuleColliderShape.setUpAxis }
|
|
22
25
|
*/
|
|
@@ -29,7 +32,7 @@ export declare class PhysXCapsuleColliderShape extends PhysXColliderShape implem
|
|
|
29
32
|
/**
|
|
30
33
|
* The up axis of the collider shape.
|
|
31
34
|
*/
|
|
32
|
-
declare enum ColliderShapeUpAxis {
|
|
35
|
+
export declare enum ColliderShapeUpAxis {
|
|
33
36
|
/** Up axis is X. */
|
|
34
37
|
X = 0,
|
|
35
38
|
/** Up axis is Y. */
|
|
@@ -37,4 +40,3 @@ declare enum ColliderShapeUpAxis {
|
|
|
37
40
|
/** Up axis is Z. */
|
|
38
41
|
Z = 2
|
|
39
42
|
}
|
|
40
|
-
export {};
|
|
@@ -24,7 +24,6 @@ export declare abstract class PhysXColliderShape implements IColliderShape {
|
|
|
24
24
|
rotation: any;
|
|
25
25
|
};
|
|
26
26
|
protected _physXPhysics: PhysXPhysics;
|
|
27
|
-
protected _rotation: Vector3;
|
|
28
27
|
protected _axis: Quaternion;
|
|
29
28
|
protected _physXRotation: Quaternion;
|
|
30
29
|
private _shapeFlags;
|