@galacean/engine-design 1.4.4 → 1.4.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-design",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
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.4"
20
+ "@galacean/engine-math": "1.4.6"
21
21
  },
22
22
  "scripts": {
23
23
  "b:types": "tsc"
@@ -1,4 +1,4 @@
1
- import { Vector3 } from "@galacean/engine-math";
1
+ import { Quaternion, Vector3 } from "@galacean/engine-math";
2
2
  import { ICollider } from "../ICollider";
3
3
  /**
4
4
  * a base interface providing common functionality for joints.
@@ -21,6 +21,11 @@ export interface IJoint {
21
21
  * The scale to apply to the inverse mass of collider1 for resolving this constraint.
22
22
  */
23
23
  setConnectedMassScale(value: number): void;
24
+ /**
25
+ * The rotation of the joint.
26
+ * @param value The rotation of the joint.
27
+ */
28
+ setRotation(value: Quaternion): void;
24
29
  /**
25
30
  * The scale to apply to the inverse mass of collider0 for resolving this constraint.
26
31
  */