@galacean/engine-design 0.9.0-beta.80 → 1.0.0-alpha.6
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/package.json +2 -2
- package/types/physics/IPhysics.d.ts +11 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-design",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-alpha.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"types": "types/index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@galacean/engine-math": "0.
|
|
17
|
+
"@galacean/engine-math": "1.0.0-alpha.6"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"b:types": "tsc"
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import { IPhysicsMaterial } from "./IPhysicsMaterial";
|
|
2
|
-
import { IPhysicsManager } from "./IPhysicsManager";
|
|
3
|
-
import { IBoxColliderShape, ISphereColliderShape, ICapsuleColliderShape, IPlaneColliderShape } from "./shape";
|
|
4
|
-
import { IDynamicCollider } from "./IDynamicCollider";
|
|
5
|
-
import { IStaticCollider } from "./IStaticCollider";
|
|
6
1
|
import { Quaternion, Vector3 } from "@galacean/engine-math";
|
|
7
|
-
import { ICollider } from "./ICollider";
|
|
8
2
|
import { ICharacterController } from "./ICharacterController";
|
|
3
|
+
import { ICollider } from "./ICollider";
|
|
4
|
+
import { IDynamicCollider } from "./IDynamicCollider";
|
|
5
|
+
import { IPhysicsManager } from "./IPhysicsManager";
|
|
6
|
+
import { IPhysicsMaterial } from "./IPhysicsMaterial";
|
|
7
|
+
import { IStaticCollider } from "./IStaticCollider";
|
|
9
8
|
import { IFixedJoint, IHingeJoint, ISpringJoint } from "./joints";
|
|
9
|
+
import { IBoxColliderShape, ICapsuleColliderShape, IPlaneColliderShape, ISphereColliderShape } from "./shape";
|
|
10
10
|
/**
|
|
11
11
|
* The interface of physics creation.
|
|
12
12
|
*/
|
|
13
13
|
export interface IPhysics {
|
|
14
|
+
/**
|
|
15
|
+
* Initialize physics.
|
|
16
|
+
* @returns A promise that will resolve when the physics is initialized
|
|
17
|
+
*/
|
|
18
|
+
initialize(): Promise<void>;
|
|
14
19
|
/**
|
|
15
20
|
* Create physics manager.
|
|
16
21
|
* @param onContactEnter - Function called when contact begin
|