@galacean/engine-physics-physx 1.1.0-beta.7 → 1.1.0-beta.8

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-physics-physx",
3
- "version": "1.1.0-beta.7",
3
+ "version": "1.1.0-beta.8",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -23,11 +23,11 @@
23
23
  "types/**/*"
24
24
  ],
25
25
  "devDependencies": {
26
- "@galacean/engine-design": "1.1.0-beta.7",
27
- "@galacean/engine": "1.1.0-beta.7"
26
+ "@galacean/engine": "1.1.0-beta.8",
27
+ "@galacean/engine-design": "1.1.0-beta.8"
28
28
  },
29
29
  "peerDependencies": {
30
- "@galacean/engine": "1.1.0-beta.7"
30
+ "@galacean/engine": "1.1.0-beta.8"
31
31
  },
32
32
  "scripts": {
33
33
  "b:types": "tsc"
@@ -7,8 +7,8 @@ import { PhysXColliderShape } from "./shape/PhysXColliderShape";
7
7
  */
8
8
  export declare class PhysXCharacterController implements ICharacterController {
9
9
  private static _tempVec;
10
- private _scaledOffset;
11
- private _position;
10
+ private _shapeScaledPosition;
11
+ private _worldPosition;
12
12
  private _physXPhysics;
13
13
  constructor(physXPhysics: PhysXPhysics);
14
14
  /**
@@ -51,4 +51,5 @@ export declare class PhysXCharacterController implements ICharacterController {
51
51
  * {@inheritDoc ICharacterController.destroy }
52
52
  */
53
53
  destroy(): void;
54
+ private _updateNativePosition;
54
55
  }
@@ -9,7 +9,6 @@ import { PhysXJoint } from "./PhysXJoint";
9
9
  export declare class PhysXHingeJoint extends PhysXJoint implements IHingeJoint {
10
10
  private _axisRotationQuaternion;
11
11
  private _swingOffset;
12
- private _velocity;
13
12
  constructor(physXPhysics: PhysXPhysics, collider: PhysXCollider);
14
13
  /**
15
14
  * {@inheritDoc IHingeJoint.setAxis }
@@ -26,7 +25,7 @@ export declare class PhysXHingeJoint extends PhysXJoint implements IHingeJoint {
26
25
  /**
27
26
  * {@inheritDoc IHingeJoint.getVelocity }
28
27
  */
29
- getVelocity(): Readonly<Vector3>;
28
+ getVelocity(): Readonly<number>;
30
29
  /**
31
30
  * {@inheritDoc IHingeJoint.setHardLimitCone }
32
31
  */
@@ -38,7 +37,7 @@ export declare class PhysXHingeJoint extends PhysXJoint implements IHingeJoint {
38
37
  /**
39
38
  * {@inheritDoc IHingeJoint.setDriveVelocity }
40
39
  */
41
- setDriveVelocity(velocity: number): void;
40
+ setDriveVelocity(velocity: number, autowake?: boolean): void;
42
41
  /**
43
42
  * {@inheritDoc IHingeJoint.setDriveForceLimit }
44
43
  */
Binary file