@galacean/engine-design 1.4.15 → 1.4.16

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-design",
3
- "version": "1.4.15",
3
+ "version": "1.4.16",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -17,7 +17,7 @@
17
17
  ],
18
18
  "types": "types/index.d.ts",
19
19
  "dependencies": {
20
- "@galacean/engine-math": "1.4.15"
20
+ "@galacean/engine-math": "1.4.16"
21
21
  },
22
22
  "scripts": {
23
23
  "b:types": "tsc"
@@ -101,4 +101,8 @@ export interface IPhysics {
101
101
  * @param collider - Affector of joint
102
102
  */
103
103
  createSpringJoint(collider: ICollider): ISpringJoint;
104
+ /**
105
+ * Destroy physics scene.
106
+ */
107
+ destroy(): void;
104
108
  }
@@ -44,4 +44,8 @@ export interface IPhysicsScene {
44
44
  * @returns Returns True if the ray intersects with a collider, otherwise false
45
45
  */
46
46
  raycast(ray: Ray, distance: number, onRaycast: (obj: number) => boolean, outHitResult?: (shapeUniqueID: number, distance: number, point: Vector3, normal: Vector3) => void): boolean;
47
+ /**
48
+ * Destroy the physics scene.
49
+ */
50
+ destroy(): void;
47
51
  }