@galacean/engine-core 1.4.0-alpha.0 → 1.4.0-alpha.1
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/dist/main.js +1478 -479
- package/dist/main.js.map +1 -1
- package/dist/module.js +1476 -480
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/Camera.d.ts +1 -3
- package/types/Entity.d.ts +15 -3
- package/types/Polyfill.d.ts +1 -0
- package/types/RenderPipeline/BasicRenderPipeline.d.ts +3 -0
- package/types/Renderer.d.ts +0 -2
- package/types/Transform.d.ts +17 -7
- package/types/asset/AssetType.d.ts +3 -1
- package/types/asset/request.d.ts +10 -3
- package/types/audio/AudioClip.d.ts +24 -0
- package/types/audio/AudioManager.d.ts +1 -0
- package/types/audio/AudioSource.d.ts +72 -0
- package/types/audio/index.d.ts +3 -0
- package/types/index.d.ts +2 -0
- package/types/material/PBRMaterial.d.ts +30 -2
- package/types/physics/CharacterController.d.ts +5 -6
- package/types/physics/Collider.d.ts +3 -1
- package/types/physics/DynamicCollider.d.ts +25 -2
- package/types/physics/PhysicsMaterial.d.ts +1 -1
- package/types/physics/joint/FixedJoint.d.ts +1 -0
- package/types/physics/joint/HingeJoint.d.ts +9 -6
- package/types/physics/joint/Joint.d.ts +25 -7
- package/types/physics/joint/JointLimits.d.ts +34 -10
- package/types/physics/joint/JointMotor.d.ts +27 -8
- package/types/physics/joint/SpringJoint.d.ts +2 -6
- package/types/physics/shape/BoxColliderShape.d.ts +1 -0
- package/types/physics/shape/CapsuleColliderShape.d.ts +1 -0
- package/types/physics/shape/ColliderShape.d.ts +2 -1
- package/types/physics/shape/SphereColliderShape.d.ts +1 -1
|
@@ -1,15 +1,39 @@
|
|
|
1
|
+
import { UpdateFlagManager } from "../../UpdateFlagManager";
|
|
1
2
|
/**
|
|
2
3
|
* JointLimits is used to limit the joints angle.
|
|
3
4
|
*/
|
|
4
5
|
export declare class JointLimits {
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
/** @internal */
|
|
7
|
+
_updateFlagManager: UpdateFlagManager;
|
|
8
|
+
private _max;
|
|
9
|
+
private _min;
|
|
10
|
+
private _contactDistance;
|
|
11
|
+
private _stiffness;
|
|
12
|
+
private _damping;
|
|
13
|
+
/**
|
|
14
|
+
* The upper angular limit (in radians) of the joint.
|
|
15
|
+
*/
|
|
16
|
+
get max(): number;
|
|
17
|
+
set max(value: number);
|
|
18
|
+
/**
|
|
19
|
+
* The lower angular limit (in radians) of the joint.
|
|
20
|
+
*/
|
|
21
|
+
get min(): number;
|
|
22
|
+
set min(value: number);
|
|
23
|
+
/**
|
|
24
|
+
* Distance inside the limit value at which the limit will be considered to be active by the solver.
|
|
25
|
+
* Default is the lesser of 0.1 radians, and 0.49 * (upperLimit - lowerLimit)
|
|
26
|
+
*/
|
|
27
|
+
get contactDistance(): number;
|
|
28
|
+
set contactDistance(value: number);
|
|
29
|
+
/**
|
|
30
|
+
* The spring forces used to reach the target position.
|
|
31
|
+
*/
|
|
32
|
+
get stiffness(): number;
|
|
33
|
+
set stiffness(value: number);
|
|
34
|
+
/**
|
|
35
|
+
* The damper force uses to dampen the spring.
|
|
36
|
+
*/
|
|
37
|
+
get damping(): number;
|
|
38
|
+
set damping(value: number);
|
|
15
39
|
}
|
|
@@ -1,13 +1,32 @@
|
|
|
1
|
+
import { UpdateFlagManager } from "../../UpdateFlagManager";
|
|
1
2
|
/**
|
|
2
3
|
* The JointMotor is used to motorize a joint.
|
|
3
4
|
*/
|
|
4
5
|
export declare class JointMotor {
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
|
|
6
|
+
/** @internal */
|
|
7
|
+
_updateFlagManager: UpdateFlagManager;
|
|
8
|
+
private _targetVelocity;
|
|
9
|
+
private _forceLimit;
|
|
10
|
+
private _gearRatio;
|
|
11
|
+
private _freeSpin;
|
|
12
|
+
/**
|
|
13
|
+
* The motor will apply a force up to force to achieve targetVelocity.
|
|
14
|
+
*/
|
|
15
|
+
get targetVelocity(): number;
|
|
16
|
+
set targetVelocity(value: number);
|
|
17
|
+
/**
|
|
18
|
+
* The force limit.
|
|
19
|
+
*/
|
|
20
|
+
get forceLimit(): number;
|
|
21
|
+
set forceLimit(value: number);
|
|
22
|
+
/**
|
|
23
|
+
* Gear ration for the motor
|
|
24
|
+
*/
|
|
25
|
+
get gearRatio(): number;
|
|
26
|
+
set gearRatio(value: number);
|
|
27
|
+
/**
|
|
28
|
+
* If freeSpin is enabled the motor will only accelerate but never slow down.
|
|
29
|
+
*/
|
|
30
|
+
get freeSpin(): boolean;
|
|
31
|
+
set freeSpin(value: boolean);
|
|
13
32
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Vector3 } from "@galacean/engine-math";
|
|
2
1
|
import { Joint } from "./Joint";
|
|
3
2
|
/**
|
|
4
3
|
* A joint that maintains an upper or lower bound (or both) on the distance between two points on different objects.
|
|
@@ -9,11 +8,6 @@ export declare class SpringJoint extends Joint {
|
|
|
9
8
|
private _tolerance;
|
|
10
9
|
private _stiffness;
|
|
11
10
|
private _damping;
|
|
12
|
-
/**
|
|
13
|
-
* The swing offset.
|
|
14
|
-
*/
|
|
15
|
-
get swingOffset(): Vector3;
|
|
16
|
-
set swingOffset(value: Vector3);
|
|
17
11
|
/**
|
|
18
12
|
* The minimum distance.
|
|
19
13
|
*/
|
|
@@ -39,4 +33,6 @@ export declare class SpringJoint extends Joint {
|
|
|
39
33
|
*/
|
|
40
34
|
get damping(): number;
|
|
41
35
|
set damping(value: number);
|
|
36
|
+
protected _createJoint(): void;
|
|
37
|
+
protected _syncNative(): void;
|
|
42
38
|
}
|
|
@@ -22,7 +22,7 @@ export declare abstract class ColliderShape implements ICustomClone {
|
|
|
22
22
|
*/
|
|
23
23
|
get id(): number;
|
|
24
24
|
/**
|
|
25
|
-
* Contact offset for this shape.
|
|
25
|
+
* Contact offset for this shape, the value must be greater than or equal to 0.
|
|
26
26
|
*/
|
|
27
27
|
get contactOffset(): number;
|
|
28
28
|
set contactOffset(value: number);
|
|
@@ -47,6 +47,7 @@ export declare abstract class ColliderShape implements ICustomClone {
|
|
|
47
47
|
get isTrigger(): boolean;
|
|
48
48
|
set isTrigger(value: boolean);
|
|
49
49
|
protected constructor();
|
|
50
|
+
protected _syncNative(): void;
|
|
50
51
|
private _setPosition;
|
|
51
52
|
private _setRotation;
|
|
52
53
|
}
|