@galacean/engine-design 2.0.0-alpha.36 → 2.0.0-alpha.38

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": "2.0.0-alpha.36",
3
+ "version": "2.0.0-alpha.38",
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": "2.0.0-alpha.36"
20
+ "@galacean/engine-math": "2.0.0-alpha.38"
21
21
  },
22
22
  "scripts": {
23
23
  "b:types": "tsc"
@@ -122,6 +122,12 @@ export interface IDynamicCollider extends ICollider {
122
122
  * @param force - The force make the collider move
123
123
  */
124
124
  addForce(force: Vector3): void;
125
+ /**
126
+ * Apply a force to the dynamic collider at a world-space position.
127
+ * @param force - The force make the collider move
128
+ * @param position - The world-space position where the force is applied
129
+ */
130
+ addForceAtPosition(force: Vector3, position: Vector3): void;
125
131
  /**
126
132
  * Apply a torque to the dynamic collider.
127
133
  * @param torque - The force make the collider rotate