@dcl/playground-assets 7.20.4-22489296066.commit-b055846 → 7.20.4-22561917759.commit-d944d0d
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/alpha.d.ts +287 -2
- package/dist/beta.d.ts +287 -2
- package/dist/index.bundled.d.ts +287 -2
- package/dist/index.js +6 -6
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +287 -2
- package/etc/playground-assets.api.json +5759 -2826
- package/etc/playground-assets.api.md +202 -0
- package/package.json +4 -4
package/dist/beta.d.ts
CHANGED
|
@@ -115,6 +115,61 @@ export declare const assetLoadLoadingStateSystem: AssetLoadLoadingStateSystem;
|
|
|
115
115
|
*/
|
|
116
116
|
export declare type AssetLoadLoadingStateSystemCallback = (event: DeepReadonlyObject<PBAssetLoadLoadingState>) => void;
|
|
117
117
|
|
|
118
|
+
export declare const AudioAnalysis: AudioAnalysisComponentDefinitionExtended;
|
|
119
|
+
|
|
120
|
+
export declare interface AudioAnalysisComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioAnalysis> {
|
|
121
|
+
/**
|
|
122
|
+
* Reads the component data of `entity` into the provided `out` view.
|
|
123
|
+
*
|
|
124
|
+
* @throws Error if the entity does not have an AudioAnalysis component.
|
|
125
|
+
* @param entity - The entity whose AudioAnalysis data will be read.
|
|
126
|
+
* @param out - An existing AudioAnalysisView to populate with the latest values.
|
|
127
|
+
*/
|
|
128
|
+
readIntoView(entity: Entity, out: AudioAnalysisView): void;
|
|
129
|
+
/**
|
|
130
|
+
* Attempts to read the component data of `entity` into the provided `out` view.
|
|
131
|
+
*
|
|
132
|
+
* @returns `true` if the component exists and data was written into `out`,
|
|
133
|
+
* `false` if the entity does not have an AudioAnalysis component.
|
|
134
|
+
* @param entity - The entity whose AudioAnalysis data will be read.
|
|
135
|
+
* @param out - An existing AudioAnalysisView to populate.
|
|
136
|
+
*/
|
|
137
|
+
tryReadIntoView(entity: Entity, out: AudioAnalysisView): boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Creates an AudioAnalysis component for the given `entity`.
|
|
140
|
+
*
|
|
141
|
+
* If a component already exists on the entity, this call fails (does not replace).
|
|
142
|
+
*
|
|
143
|
+
* @param entity - The entity to attach the component to.
|
|
144
|
+
* @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
|
|
145
|
+
* @param amplitudeGain - Optional amplitude gain multiplier.
|
|
146
|
+
* @param bandsGain - Optional gain multiplier applied to all frequency bands.
|
|
147
|
+
*/
|
|
148
|
+
createAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
149
|
+
amplitudeGain?: number, bandsGain?: number): void;
|
|
150
|
+
/**
|
|
151
|
+
* Creates the AudioAnalysis component if missing, or replaces the existing one.
|
|
152
|
+
*
|
|
153
|
+
* @param entity - The target entity.
|
|
154
|
+
* @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
|
|
155
|
+
* @param amplitudeGain - Optional amplitude gain multiplier.
|
|
156
|
+
* @param bandsGain - Optional gain multiplier applied to the frequency bands.
|
|
157
|
+
*/
|
|
158
|
+
createOrReplaceAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
159
|
+
amplitudeGain?: number, bandsGain?: number): void;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* A read-only JavaScript-friendly view of AudioAnalysis ECS data.
|
|
164
|
+
*
|
|
165
|
+
* `amplitude` represents the aggregated signal strength.
|
|
166
|
+
* `bands` represents the processed frequency bands.
|
|
167
|
+
*/
|
|
168
|
+
export declare type AudioAnalysisView = {
|
|
169
|
+
amplitude: number;
|
|
170
|
+
bands: number[];
|
|
171
|
+
};
|
|
172
|
+
|
|
118
173
|
/** @public */
|
|
119
174
|
export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
|
120
175
|
|
|
@@ -209,6 +264,9 @@ export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBA
|
|
|
209
264
|
/** @public */
|
|
210
265
|
export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
211
266
|
|
|
267
|
+
/** @public */
|
|
268
|
+
export declare const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
|
|
269
|
+
|
|
212
270
|
/** @public */
|
|
213
271
|
export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
|
214
272
|
|
|
@@ -1321,6 +1379,7 @@ export declare const componentDefinitionByName: {
|
|
|
1321
1379
|
"core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
1322
1380
|
"core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
|
|
1323
1381
|
"core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
|
|
1382
|
+
"core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
1324
1383
|
"core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
1325
1384
|
"core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
1326
1385
|
"core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -1328,6 +1387,7 @@ export declare const componentDefinitionByName: {
|
|
|
1328
1387
|
"core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
1329
1388
|
"core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
1330
1389
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
1390
|
+
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
1331
1391
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
1332
1392
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
1333
1393
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -2676,7 +2736,8 @@ export declare const enum InputAction {
|
|
|
2676
2736
|
IA_ACTION_3 = 10,
|
|
2677
2737
|
IA_ACTION_4 = 11,
|
|
2678
2738
|
IA_ACTION_5 = 12,
|
|
2679
|
-
IA_ACTION_6 = 13
|
|
2739
|
+
IA_ACTION_6 = 13,
|
|
2740
|
+
IA_MODIFIER = 14
|
|
2680
2741
|
}
|
|
2681
2742
|
|
|
2682
2743
|
export declare const InputModifier: InputModifierComponentDefinitionExtended;
|
|
@@ -2724,6 +2785,14 @@ export declare type InstanceCompositeOptions = {
|
|
|
2724
2785
|
alreadyRequestedSrc?: Set<string>;
|
|
2725
2786
|
};
|
|
2726
2787
|
|
|
2788
|
+
/**
|
|
2789
|
+
* @public
|
|
2790
|
+
*/
|
|
2791
|
+
export declare const enum InteractionType {
|
|
2792
|
+
CURSOR = 0,
|
|
2793
|
+
PROXIMITY = 1
|
|
2794
|
+
}
|
|
2795
|
+
|
|
2727
2796
|
/**
|
|
2728
2797
|
* @public
|
|
2729
2798
|
*/
|
|
@@ -3891,6 +3960,88 @@ export declare namespace MoveContinuous {
|
|
|
3891
3960
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveContinuous;
|
|
3892
3961
|
}
|
|
3893
3962
|
|
|
3963
|
+
/**
|
|
3964
|
+
* @public
|
|
3965
|
+
*/
|
|
3966
|
+
export declare interface MoveRotateScale {
|
|
3967
|
+
positionStart: PBVector3 | undefined;
|
|
3968
|
+
positionEnd: PBVector3 | undefined;
|
|
3969
|
+
rotationStart: PBQuaternion | undefined;
|
|
3970
|
+
rotationEnd: PBQuaternion | undefined;
|
|
3971
|
+
scaleStart: PBVector3 | undefined;
|
|
3972
|
+
scaleEnd: PBVector3 | undefined;
|
|
3973
|
+
}
|
|
3974
|
+
|
|
3975
|
+
/**
|
|
3976
|
+
* @public
|
|
3977
|
+
*/
|
|
3978
|
+
export declare namespace MoveRotateScale {
|
|
3979
|
+
export function encode(message: MoveRotateScale, writer?: _m0.Writer): _m0.Writer;
|
|
3980
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveRotateScale;
|
|
3981
|
+
}
|
|
3982
|
+
|
|
3983
|
+
/**
|
|
3984
|
+
* @public
|
|
3985
|
+
*/
|
|
3986
|
+
export declare interface MoveRotateScaleContinuous {
|
|
3987
|
+
positionDirection: PBVector3 | undefined;
|
|
3988
|
+
rotationDirection: PBQuaternion | undefined;
|
|
3989
|
+
scaleDirection: PBVector3 | undefined;
|
|
3990
|
+
speed: number;
|
|
3991
|
+
}
|
|
3992
|
+
|
|
3993
|
+
/**
|
|
3994
|
+
* @public
|
|
3995
|
+
*/
|
|
3996
|
+
export declare namespace MoveRotateScaleContinuous {
|
|
3997
|
+
export function encode(message: MoveRotateScaleContinuous, writer?: _m0.Writer): _m0.Writer;
|
|
3998
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveRotateScaleContinuous;
|
|
3999
|
+
}
|
|
4000
|
+
|
|
4001
|
+
/**
|
|
4002
|
+
* @public
|
|
4003
|
+
* Partial params for Tween.Mode.MoveRotateScaleContinuous(). At least one of position, rotation, or scale must be provided.
|
|
4004
|
+
*/
|
|
4005
|
+
export declare interface MoveRotateScaleContinuousModeParams {
|
|
4006
|
+
/** Position direction for continuous movement. Optional. */
|
|
4007
|
+
position?: {
|
|
4008
|
+
direction: PBVector3;
|
|
4009
|
+
};
|
|
4010
|
+
/** Rotation direction for continuous rotation. Optional. */
|
|
4011
|
+
rotation?: {
|
|
4012
|
+
direction: PBQuaternion;
|
|
4013
|
+
};
|
|
4014
|
+
/** Scale direction for continuous scale change. Optional. */
|
|
4015
|
+
scale?: {
|
|
4016
|
+
direction: PBVector3;
|
|
4017
|
+
};
|
|
4018
|
+
/** Speed of the animation per second. */
|
|
4019
|
+
speed: number;
|
|
4020
|
+
}
|
|
4021
|
+
|
|
4022
|
+
/**
|
|
4023
|
+
* @public
|
|
4024
|
+
* Partial params for Tween.Mode.MoveRotateScale(). At least one of position, rotation, or scale must be provided.
|
|
4025
|
+
* Use this when building a mode for Tween.createOrReplace() or TweenSequence (e.g. only positionStart/positionEnd).
|
|
4026
|
+
*/
|
|
4027
|
+
export declare interface MoveRotateScaleModeParams {
|
|
4028
|
+
/** Position tween (start → end). Optional. */
|
|
4029
|
+
position?: {
|
|
4030
|
+
start: PBVector3;
|
|
4031
|
+
end: PBVector3;
|
|
4032
|
+
};
|
|
4033
|
+
/** Rotation tween (start → end). Optional. */
|
|
4034
|
+
rotation?: {
|
|
4035
|
+
start: PBQuaternion;
|
|
4036
|
+
end: PBQuaternion;
|
|
4037
|
+
};
|
|
4038
|
+
/** Scale tween (start → end). Optional. */
|
|
4039
|
+
scale?: {
|
|
4040
|
+
start: PBVector3;
|
|
4041
|
+
end: PBVector3;
|
|
4042
|
+
};
|
|
4043
|
+
}
|
|
4044
|
+
|
|
3894
4045
|
export declare const Name: NameComponent;
|
|
3895
4046
|
|
|
3896
4047
|
export declare type NameComponent = LastWriteWinElementSetComponentDefinition<NameType>;
|
|
@@ -4361,6 +4512,45 @@ export declare namespace PBAssetLoadLoadingState {
|
|
|
4361
4512
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAssetLoadLoadingState;
|
|
4362
4513
|
}
|
|
4363
4514
|
|
|
4515
|
+
/**
|
|
4516
|
+
* @public
|
|
4517
|
+
*/
|
|
4518
|
+
export declare interface PBAudioAnalysis {
|
|
4519
|
+
/** Parameters section */
|
|
4520
|
+
mode: PBAudioAnalysisMode;
|
|
4521
|
+
/** Used only when mode == MODE_LOGARITHMIC */
|
|
4522
|
+
amplitudeGain?: number | undefined;
|
|
4523
|
+
/** End when mode == MODE_LOGARITHMIC */
|
|
4524
|
+
bandsGain?: number | undefined;
|
|
4525
|
+
/** Result section */
|
|
4526
|
+
amplitude: number;
|
|
4527
|
+
/** Protobuf doesn't support fixed arrays -> 8 band fields */
|
|
4528
|
+
band0: number;
|
|
4529
|
+
band1: number;
|
|
4530
|
+
band2: number;
|
|
4531
|
+
band3: number;
|
|
4532
|
+
band4: number;
|
|
4533
|
+
band5: number;
|
|
4534
|
+
band6: number;
|
|
4535
|
+
band7: number;
|
|
4536
|
+
}
|
|
4537
|
+
|
|
4538
|
+
/**
|
|
4539
|
+
* @public
|
|
4540
|
+
*/
|
|
4541
|
+
export declare namespace PBAudioAnalysis {
|
|
4542
|
+
export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
|
|
4543
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
|
|
4544
|
+
}
|
|
4545
|
+
|
|
4546
|
+
/**
|
|
4547
|
+
* @public
|
|
4548
|
+
*/
|
|
4549
|
+
export declare const enum PBAudioAnalysisMode {
|
|
4550
|
+
MODE_RAW = 0,
|
|
4551
|
+
MODE_LOGARITHMIC = 1
|
|
4552
|
+
}
|
|
4553
|
+
|
|
4364
4554
|
/**
|
|
4365
4555
|
* @public
|
|
4366
4556
|
*/
|
|
@@ -4550,6 +4740,36 @@ export declare namespace PBAvatarEquippedData {
|
|
|
4550
4740
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
|
|
4551
4741
|
}
|
|
4552
4742
|
|
|
4743
|
+
/**
|
|
4744
|
+
* The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
|
|
4745
|
+
* as the avatar movement speed, jump height etc.
|
|
4746
|
+
*/
|
|
4747
|
+
/**
|
|
4748
|
+
* @public
|
|
4749
|
+
*/
|
|
4750
|
+
export declare interface PBAvatarLocomotionSettings {
|
|
4751
|
+
/** Maximum speed when walking (in meters per second) */
|
|
4752
|
+
walkSpeed?: number | undefined;
|
|
4753
|
+
/** Maximum speed when jogging (in meters per second) */
|
|
4754
|
+
jogSpeed?: number | undefined;
|
|
4755
|
+
/** Maximum speed when running (in meters per second) */
|
|
4756
|
+
runSpeed?: number | undefined;
|
|
4757
|
+
/** Height of a regular jump (in meters) */
|
|
4758
|
+
jumpHeight?: number | undefined;
|
|
4759
|
+
/** Height of a jump while running (in meters) */
|
|
4760
|
+
runJumpHeight?: number | undefined;
|
|
4761
|
+
/** Cooldown time after a hard landing before the avatar can move again (in seconds) */
|
|
4762
|
+
hardLandingCooldown?: number | undefined;
|
|
4763
|
+
}
|
|
4764
|
+
|
|
4765
|
+
/**
|
|
4766
|
+
* @public
|
|
4767
|
+
*/
|
|
4768
|
+
export declare namespace PBAvatarLocomotionSettings {
|
|
4769
|
+
export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
|
|
4770
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
|
|
4771
|
+
}
|
|
4772
|
+
|
|
4553
4773
|
/**
|
|
4554
4774
|
* The AvatarModifierArea component can be attached to an Entity to define a region of space where
|
|
4555
4775
|
* avatar behavior changes.
|
|
@@ -5402,6 +5622,8 @@ export declare interface PBPointerEvents_Entry {
|
|
|
5402
5622
|
eventType: PointerEventType;
|
|
5403
5623
|
/** additional configuration for this detection */
|
|
5404
5624
|
eventInfo: PBPointerEvents_Info | undefined;
|
|
5625
|
+
/** the type of interaction source (default 0 == CURSOR) */
|
|
5626
|
+
interactionType?: InteractionType | undefined;
|
|
5405
5627
|
}
|
|
5406
5628
|
|
|
5407
5629
|
/**
|
|
@@ -5428,6 +5650,8 @@ export declare interface PBPointerEvents_Info {
|
|
|
5428
5650
|
showHighlight?: boolean | undefined;
|
|
5429
5651
|
/** range of interaction from the avatar's position (default 0) */
|
|
5430
5652
|
maxPlayerDistance?: number | undefined;
|
|
5653
|
+
/** resolution order when multiple events overlap, higher wins (default 0) */
|
|
5654
|
+
priority?: number | undefined;
|
|
5431
5655
|
}
|
|
5432
5656
|
|
|
5433
5657
|
/**
|
|
@@ -5864,6 +6088,12 @@ export declare interface PBTween {
|
|
|
5864
6088
|
} | {
|
|
5865
6089
|
$case: "textureMoveContinuous";
|
|
5866
6090
|
textureMoveContinuous: TextureMoveContinuous;
|
|
6091
|
+
} | {
|
|
6092
|
+
$case: "moveRotateScale";
|
|
6093
|
+
moveRotateScale: MoveRotateScale;
|
|
6094
|
+
} | {
|
|
6095
|
+
$case: "moveRotateScaleContinuous";
|
|
6096
|
+
moveRotateScaleContinuous: MoveRotateScaleContinuous;
|
|
5867
6097
|
} | undefined;
|
|
5868
6098
|
/** default true (pause or running) */
|
|
5869
6099
|
playing?: boolean | undefined;
|
|
@@ -6301,6 +6531,7 @@ export declare namespace PBVideoPlayer {
|
|
|
6301
6531
|
* an 'instant' transition (like using speed/time = 0)
|
|
6302
6532
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
6303
6533
|
* the holding entity transform).
|
|
6534
|
+
* * The fov defines the Field of View of the virtual camera
|
|
6304
6535
|
*/
|
|
6305
6536
|
/**
|
|
6306
6537
|
* @public
|
|
@@ -6308,6 +6539,8 @@ export declare namespace PBVideoPlayer {
|
|
|
6308
6539
|
export declare interface PBVirtualCamera {
|
|
6309
6540
|
defaultTransition?: CameraTransition | undefined;
|
|
6310
6541
|
lookAtEntity?: number | undefined;
|
|
6542
|
+
/** default: 60 */
|
|
6543
|
+
fov?: number | undefined;
|
|
6311
6544
|
}
|
|
6312
6545
|
|
|
6313
6546
|
/**
|
|
@@ -6567,7 +6800,9 @@ export declare const enum PointerEventType {
|
|
|
6567
6800
|
PET_UP = 0,
|
|
6568
6801
|
PET_DOWN = 1,
|
|
6569
6802
|
PET_HOVER_ENTER = 2,
|
|
6570
|
-
PET_HOVER_LEAVE = 3
|
|
6803
|
+
PET_HOVER_LEAVE = 3,
|
|
6804
|
+
PET_PROXIMITY_ENTER = 4,
|
|
6805
|
+
PET_PROXIMITY_LEAVE = 5
|
|
6571
6806
|
}
|
|
6572
6807
|
|
|
6573
6808
|
/**
|
|
@@ -7784,6 +8019,26 @@ export declare namespace Schemas {
|
|
|
7784
8019
|
}) => void;
|
|
7785
8020
|
}
|
|
7786
8021
|
|
|
8022
|
+
/**
|
|
8023
|
+
* @public
|
|
8024
|
+
* Parameters for setMoveRotateScaleContinuous. At least one of position, rotation, or scale must be provided.
|
|
8025
|
+
*/
|
|
8026
|
+
export declare interface SetMoveRotateScaleContinuousParams extends MoveRotateScaleContinuousModeParams {
|
|
8027
|
+
/** Duration in milliseconds (defaults to 0 for infinite). */
|
|
8028
|
+
duration?: number;
|
|
8029
|
+
}
|
|
8030
|
+
|
|
8031
|
+
/**
|
|
8032
|
+
* @public
|
|
8033
|
+
* Parameters for setMoveRotateScale. At least one of position, rotation, or scale must be provided.
|
|
8034
|
+
*/
|
|
8035
|
+
export declare interface SetMoveRotateScaleParams extends MoveRotateScaleModeParams {
|
|
8036
|
+
/** Duration of the tween in milliseconds. */
|
|
8037
|
+
duration: number;
|
|
8038
|
+
/** Easing function (defaults to EF_LINEAR). */
|
|
8039
|
+
easingFunction?: EasingFunction;
|
|
8040
|
+
}
|
|
8041
|
+
|
|
7787
8042
|
/** @public */
|
|
7788
8043
|
export declare const SkyboxTime: LastWriteWinElementSetComponentDefinition<PBSkyboxTime>;
|
|
7789
8044
|
|
|
@@ -8380,6 +8635,26 @@ export declare interface TweenComponentDefinitionExtended extends LastWriteWinEl
|
|
|
8380
8635
|
* @param duration - duration of the tween in milliseconds (defaults to 0 for infinite)
|
|
8381
8636
|
*/
|
|
8382
8637
|
setTextureMoveContinuous(entity: Entity, direction: PBVector2, speed: number, movementType?: TextureMovementType, duration?: number): void;
|
|
8638
|
+
/**
|
|
8639
|
+
* @public
|
|
8640
|
+
*
|
|
8641
|
+
* Creates or replaces a move-rotate-scale tween component that simultaneously animates
|
|
8642
|
+
* an entity's position, rotation, and/or scale from start to end. Provide only the
|
|
8643
|
+
* properties you need (at least one of position, rotation, or scale).
|
|
8644
|
+
* @param entity - entity to apply the tween to
|
|
8645
|
+
* @param params - object with optional position, rotation, scale (each with start/end), duration, and optional easingFunction
|
|
8646
|
+
*/
|
|
8647
|
+
setMoveRotateScale(entity: Entity, params: SetMoveRotateScaleParams): void;
|
|
8648
|
+
/**
|
|
8649
|
+
* @public
|
|
8650
|
+
*
|
|
8651
|
+
* Creates or replaces a continuous move-rotate-scale tween component that simultaneously
|
|
8652
|
+
* moves, rotates, and/or scales an entity continuously. Provide only the properties
|
|
8653
|
+
* you need (at least one of position, rotation, or scale).
|
|
8654
|
+
* @param entity - entity to apply the tween to
|
|
8655
|
+
* @param params - object with optional position, rotation, scale (each with direction), speed, and optional duration
|
|
8656
|
+
*/
|
|
8657
|
+
setMoveRotateScaleContinuous(entity: Entity, params: SetMoveRotateScaleContinuousParams): void;
|
|
8383
8658
|
}
|
|
8384
8659
|
|
|
8385
8660
|
/**
|
|
@@ -8414,6 +8689,16 @@ export declare interface TweenHelper {
|
|
|
8414
8689
|
* @returns a texture-move-continuous mode tween
|
|
8415
8690
|
*/
|
|
8416
8691
|
TextureMoveContinuous: (textureMove: TextureMoveContinuous) => PBTween['mode'];
|
|
8692
|
+
/**
|
|
8693
|
+
* @returns a move-rotate-scale mode tween
|
|
8694
|
+
* @param params - partial transform (at least one of position, rotation, scale); omit axes you don't need
|
|
8695
|
+
*/
|
|
8696
|
+
MoveRotateScale: (params: MoveRotateScaleModeParams) => PBTween['mode'];
|
|
8697
|
+
/**
|
|
8698
|
+
* @returns a move-rotate-scale-continuous mode tween
|
|
8699
|
+
* @param params - partial transform (at least one of position, rotation, scale) + speed; omit axes you don't need
|
|
8700
|
+
*/
|
|
8701
|
+
MoveRotateScaleContinuous: (params: MoveRotateScaleContinuousModeParams) => PBTween['mode'];
|
|
8417
8702
|
}
|
|
8418
8703
|
|
|
8419
8704
|
/**
|