@galacean/engine-design 0.0.0-experimental-2.0-skill.0 → 0.0.0-experimental-2.0-migrate.7
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": "0.0.0-experimental-2.0-
|
|
3
|
+
"version": "0.0.0-experimental-2.0-migrate.7",
|
|
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": "0.0.0-experimental-2.0-
|
|
20
|
+
"@galacean/engine-math": "0.0.0-experimental-2.0-migrate.7"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"b:types": "tsc"
|
|
@@ -26,6 +26,14 @@ export interface IPhysics {
|
|
|
26
26
|
* @param physicsManager - The physics manager
|
|
27
27
|
*/
|
|
28
28
|
createPhysicsScene(physicsManager: IPhysicsManager): IPhysicsScene;
|
|
29
|
+
/**
|
|
30
|
+
* Get the default contact offset for collider shapes.
|
|
31
|
+
*/
|
|
32
|
+
getDefaultContactOffset?(): number;
|
|
33
|
+
/**
|
|
34
|
+
* Get the default sleep threshold for dynamic colliders.
|
|
35
|
+
*/
|
|
36
|
+
getDefaultSleepThreshold?(): number;
|
|
29
37
|
/**
|
|
30
38
|
* Create dynamic collider.
|
|
31
39
|
* @param position - The global position
|
|
@@ -36,6 +36,11 @@ export interface IPhysicsScene {
|
|
|
36
36
|
* @param elapsedTime - Step time of update.
|
|
37
37
|
*/
|
|
38
38
|
update(elapsedTime: number): void;
|
|
39
|
+
/**
|
|
40
|
+
* Enable contact event buffering.
|
|
41
|
+
* @param enabled - Whether collision contact events should be buffered for dispatch.
|
|
42
|
+
*/
|
|
43
|
+
setContactEventEnabled?(enabled: boolean): void;
|
|
39
44
|
/**
|
|
40
45
|
* Collect buffered collision and trigger events.
|
|
41
46
|
* Must be called after update() and after syncing transforms back from physics.
|