@galacean/engine-physics-physx 2.0.0-alpha.49 → 2.0.0-alpha.50
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 +3 -2
- 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 +3 -2
- package/dist/main.js.map +1 -1
- package/dist/module.js +3 -2
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
- package/types/PhysXCharacterController.d.ts +3 -3
- package/types/PhysXCollider.d.ts +1 -1
- package/types/PhysXPhysicsManager.d.ts +1 -1
- package/types/shape/PhysXColliderShape.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-physics-physx",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.50",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"types/**/*"
|
|
28
28
|
],
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@galacean/engine
|
|
31
|
-
"@galacean/engine": "2.0.0-alpha.
|
|
30
|
+
"@galacean/engine": "2.0.0-alpha.50",
|
|
31
|
+
"@galacean/engine-design": "2.0.0-alpha.50"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@galacean/engine": "2.0.0-alpha.
|
|
34
|
+
"@galacean/engine": "2.0.0-alpha.50"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"b:types": "tsc"
|
|
@@ -9,15 +9,15 @@ import { PhysXColliderShape } from "./shape/PhysXColliderShape";
|
|
|
9
9
|
export declare class PhysXCharacterController implements ICharacterController {
|
|
10
10
|
private static _tempVec;
|
|
11
11
|
/** @internal */
|
|
12
|
-
_scene: PhysXPhysicsScene;
|
|
12
|
+
_scene: PhysXPhysicsScene | null;
|
|
13
13
|
/** @internal */
|
|
14
14
|
_id: number;
|
|
15
15
|
/** @internal */
|
|
16
16
|
_pxController: any;
|
|
17
17
|
/** @internal */
|
|
18
|
-
_pxManager: PhysXPhysicsScene;
|
|
18
|
+
_pxManager: PhysXPhysicsScene | null;
|
|
19
19
|
/** @internal */
|
|
20
|
-
_shape: PhysXColliderShape;
|
|
20
|
+
_shape: PhysXColliderShape | null;
|
|
21
21
|
private _shapeScaledPosition;
|
|
22
22
|
private _worldPosition;
|
|
23
23
|
private _physXPhysics;
|
package/types/PhysXCollider.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { PhysXPhysicsScene } from "./PhysXPhysicsScene";
|
|
|
9
9
|
export declare abstract class PhysXCollider implements ICollider {
|
|
10
10
|
private static _tempTransform;
|
|
11
11
|
/** @internal */
|
|
12
|
-
_scene: PhysXPhysicsScene;
|
|
12
|
+
_scene: PhysXPhysicsScene | null;
|
|
13
13
|
/** @internal */
|
|
14
14
|
_pxActor: any;
|
|
15
15
|
/** @internal */
|
|
@@ -2,5 +2,5 @@ import { IPhysicsManager } from "@galacean/engine-design";
|
|
|
2
2
|
import { TriggerEvent } from "./PhysXPhysicsScene";
|
|
3
3
|
export declare class PhysXPhysicsManager implements IPhysicsManager {
|
|
4
4
|
/** @internal */
|
|
5
|
-
_eventMap: Record<number, Record<number, TriggerEvent>>;
|
|
5
|
+
_eventMap: Record<number, Record<number, TriggerEvent | undefined>>;
|
|
6
6
|
}
|
|
@@ -21,7 +21,7 @@ export declare abstract class PhysXColliderShape implements IColliderShape {
|
|
|
21
21
|
static readonly halfSqrt: number;
|
|
22
22
|
static transform: {
|
|
23
23
|
translation: Vector3;
|
|
24
|
-
rotation:
|
|
24
|
+
rotation: Quaternion | null;
|
|
25
25
|
};
|
|
26
26
|
protected static _tempVector4: Vector4;
|
|
27
27
|
/** @internal */
|
|
@@ -43,7 +43,7 @@ export declare abstract class PhysXColliderShape implements IColliderShape {
|
|
|
43
43
|
_rotation: Vector3;
|
|
44
44
|
protected _physXPhysics: PhysXPhysics;
|
|
45
45
|
protected _pxGeometry: any;
|
|
46
|
-
protected _axis: Quaternion;
|
|
46
|
+
protected _axis: Quaternion | null;
|
|
47
47
|
protected _physXRotation: Quaternion;
|
|
48
48
|
private _shapeFlags;
|
|
49
49
|
constructor(physXPhysics: PhysXPhysics);
|