@dcl/playground-assets 7.1.9-4800243746.commit-c0e370e → 7.1.9-4810794032.commit-8752a16

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 CHANGED
@@ -1138,7 +1138,9 @@ export declare const componentDefinitionByName: {
1138
1138
  "core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
1139
1139
  "core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
1140
1140
  "core::CameraModeArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
1141
+ "core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
1141
1142
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
1143
+ "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1142
1144
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1143
1145
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
1144
1146
  "core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
@@ -1507,6 +1509,9 @@ export declare type EngineEvent<T extends IEventNames = IEventNames, V = IEvents
1507
1509
  data: Readonly<V>;
1508
1510
  };
1509
1511
 
1512
+ /** @public */
1513
+ export declare const EngineInfo: LastWriteWinElementSetComponentDefinition<PBEngineInfo>;
1514
+
1510
1515
  /**
1511
1516
  * @public The Entity is a number type, the cast is only for typescript, the final javascript code treat as a number
1512
1517
  * version number
@@ -1710,6 +1715,9 @@ export declare type GlobalTargetRaycastSystemOptions = {
1710
1715
  /** @public */
1711
1716
  export declare const GltfContainer: LastWriteWinElementSetComponentDefinition<PBGltfContainer>;
1712
1717
 
1718
+ /** @public */
1719
+ export declare const GltfContainerLoadingState: LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>;
1720
+
1713
1721
  /**
1714
1722
  * @public
1715
1723
  */
@@ -2310,6 +2318,17 @@ export declare type Listeners = {
2310
2318
  onMouseUp?: Callback;
2311
2319
  };
2312
2320
 
2321
+ /**
2322
+ * @public
2323
+ */
2324
+ export declare const enum LoadingState {
2325
+ UNKNOWN = 0,
2326
+ LOADING = 1,
2327
+ NOT_FOUND = 2,
2328
+ FINISHED_WITH_ERROR = 3,
2329
+ FINISHED = 4
2330
+ }
2331
+
2313
2332
  export declare type LocalDirectionRaycastOptions = RaycastSystemOptions & LocalDirectionRaycastSystemOptions;
2314
2333
 
2315
2334
  export declare type LocalDirectionRaycastSystemOptions = {
@@ -3603,6 +3622,24 @@ export declare interface PBColor4 {
3603
3622
  a: number;
3604
3623
  }
3605
3624
 
3625
+ /**
3626
+ * EngineInfo provides information about the graphics engine running the scene.
3627
+ * The values of this component are written at the "physics" stage of the ADR-148. Meaning
3628
+ * the tick_number and frame_number of the same frame could be used as correlation numbers
3629
+ * for timestamps in other components.
3630
+ */
3631
+ /**
3632
+ * @public
3633
+ */
3634
+ export declare interface PBEngineInfo {
3635
+ /** frame counter of the engine */
3636
+ frameNumber: number;
3637
+ /** total runtime of this scene in seconds */
3638
+ totalRuntime: number;
3639
+ /** tick counter of the scene as per ADR-148 */
3640
+ tickNumber: number;
3641
+ }
3642
+
3606
3643
  /**
3607
3644
  * GltfContainer loads a GLTF file (and any additional files packaged inside) attached to an Entity.
3608
3645
  *
@@ -3615,6 +3652,21 @@ export declare interface PBColor4 {
3615
3652
  export declare interface PBGltfContainer {
3616
3653
  /** the GLTF file path as listed in the scene's manifest. */
3617
3654
  src: string;
3655
+ /** disable automatic physics collider creation (default: false) */
3656
+ disablePhysicsColliders?: boolean | undefined;
3657
+ /** copies the visible meshes into a virtual MeshCollider with CL_POINTER collider_mask (default: false) */
3658
+ createPointerColliders?: boolean | undefined;
3659
+ }
3660
+
3661
+ /**
3662
+ * GltfContainerLoadingState is set by the engine and provides information about
3663
+ * the current state of the GltfContainer of an entity.
3664
+ */
3665
+ /**
3666
+ * @public
3667
+ */
3668
+ export declare interface PBGltfContainerLoadingState {
3669
+ currentState: LoadingState;
3618
3670
  }
3619
3671
 
3620
3672
  /**
@@ -3725,9 +3777,9 @@ export declare interface PBMeshCollider_BoxMesh {
3725
3777
  * @public
3726
3778
  */
3727
3779
  export declare interface PBMeshCollider_CylinderMesh {
3728
- /** (default 1.0) */
3780
+ /** (default 0.5) */
3729
3781
  radiusTop?: number | undefined;
3730
- /** (default 1.0) */
3782
+ /** (default 0.5) */
3731
3783
  radiusBottom?: number | undefined;
3732
3784
  }
3733
3785
 
@@ -3788,9 +3840,9 @@ export declare interface PBMeshRenderer_BoxMesh {
3788
3840
  * @public
3789
3841
  */
3790
3842
  export declare interface PBMeshRenderer_CylinderMesh {
3791
- /** (default 1.0) */
3843
+ /** (default 0.5) */
3792
3844
  radiusTop?: number | undefined;
3793
- /** (default 1.0) */
3845
+ /** (default 0.5) */
3794
3846
  radiusBottom?: number | undefined;
3795
3847
  }
3796
3848
 
@@ -3887,10 +3939,12 @@ export declare interface PBPointerEventsResult {
3887
3939
  button: InputAction;
3888
3940
  hit: RaycastHit | undefined;
3889
3941
  state: PointerEventType;
3890
- /** could be a Lamport timestamp */
3942
+ /** monotonic counter */
3891
3943
  timestamp: number;
3892
3944
  /** if the input is analog then we store it here */
3893
3945
  analog?: number | undefined;
3946
+ /** number of tick in which the event was produced, equals to EngineInfo.tick_number */
3947
+ tickNumber: number;
3894
3948
  }
3895
3949
 
3896
3950
  /**
@@ -3976,6 +4030,8 @@ export declare interface PBRaycastResult {
3976
4030
  direction: PBVector3 | undefined;
3977
4031
  /** zero or more hits */
3978
4032
  hits: RaycastHit[];
4033
+ /** number of tick in which the event was produced, equals to EngineInfo.tick_number */
4034
+ tickNumber: number;
3979
4035
  }
3980
4036
 
3981
4037
  /**
package/dist/beta.d.ts CHANGED
@@ -1138,7 +1138,9 @@ export declare const componentDefinitionByName: {
1138
1138
  "core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
1139
1139
  "core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
1140
1140
  "core::CameraModeArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
1141
+ "core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
1141
1142
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
1143
+ "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1142
1144
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1143
1145
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
1144
1146
  "core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
@@ -1507,6 +1509,9 @@ export declare type EngineEvent<T extends IEventNames = IEventNames, V = IEvents
1507
1509
  data: Readonly<V>;
1508
1510
  };
1509
1511
 
1512
+ /** @public */
1513
+ export declare const EngineInfo: LastWriteWinElementSetComponentDefinition<PBEngineInfo>;
1514
+
1510
1515
  /**
1511
1516
  * @public The Entity is a number type, the cast is only for typescript, the final javascript code treat as a number
1512
1517
  * version number
@@ -1710,6 +1715,9 @@ export declare type GlobalTargetRaycastSystemOptions = {
1710
1715
  /** @public */
1711
1716
  export declare const GltfContainer: LastWriteWinElementSetComponentDefinition<PBGltfContainer>;
1712
1717
 
1718
+ /** @public */
1719
+ export declare const GltfContainerLoadingState: LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>;
1720
+
1713
1721
  /**
1714
1722
  * @public
1715
1723
  */
@@ -2306,6 +2314,17 @@ export declare type Listeners = {
2306
2314
  onMouseUp?: Callback;
2307
2315
  };
2308
2316
 
2317
+ /**
2318
+ * @public
2319
+ */
2320
+ export declare const enum LoadingState {
2321
+ UNKNOWN = 0,
2322
+ LOADING = 1,
2323
+ NOT_FOUND = 2,
2324
+ FINISHED_WITH_ERROR = 3,
2325
+ FINISHED = 4
2326
+ }
2327
+
2309
2328
  export declare type LocalDirectionRaycastOptions = RaycastSystemOptions & LocalDirectionRaycastSystemOptions;
2310
2329
 
2311
2330
  export declare type LocalDirectionRaycastSystemOptions = {
@@ -3599,6 +3618,24 @@ export declare interface PBColor4 {
3599
3618
  a: number;
3600
3619
  }
3601
3620
 
3621
+ /**
3622
+ * EngineInfo provides information about the graphics engine running the scene.
3623
+ * The values of this component are written at the "physics" stage of the ADR-148. Meaning
3624
+ * the tick_number and frame_number of the same frame could be used as correlation numbers
3625
+ * for timestamps in other components.
3626
+ */
3627
+ /**
3628
+ * @public
3629
+ */
3630
+ export declare interface PBEngineInfo {
3631
+ /** frame counter of the engine */
3632
+ frameNumber: number;
3633
+ /** total runtime of this scene in seconds */
3634
+ totalRuntime: number;
3635
+ /** tick counter of the scene as per ADR-148 */
3636
+ tickNumber: number;
3637
+ }
3638
+
3602
3639
  /**
3603
3640
  * GltfContainer loads a GLTF file (and any additional files packaged inside) attached to an Entity.
3604
3641
  *
@@ -3611,6 +3648,21 @@ export declare interface PBColor4 {
3611
3648
  export declare interface PBGltfContainer {
3612
3649
  /** the GLTF file path as listed in the scene's manifest. */
3613
3650
  src: string;
3651
+ /** disable automatic physics collider creation (default: false) */
3652
+ disablePhysicsColliders?: boolean | undefined;
3653
+ /** copies the visible meshes into a virtual MeshCollider with CL_POINTER collider_mask (default: false) */
3654
+ createPointerColliders?: boolean | undefined;
3655
+ }
3656
+
3657
+ /**
3658
+ * GltfContainerLoadingState is set by the engine and provides information about
3659
+ * the current state of the GltfContainer of an entity.
3660
+ */
3661
+ /**
3662
+ * @public
3663
+ */
3664
+ export declare interface PBGltfContainerLoadingState {
3665
+ currentState: LoadingState;
3614
3666
  }
3615
3667
 
3616
3668
  /**
@@ -3721,9 +3773,9 @@ export declare interface PBMeshCollider_BoxMesh {
3721
3773
  * @public
3722
3774
  */
3723
3775
  export declare interface PBMeshCollider_CylinderMesh {
3724
- /** (default 1.0) */
3776
+ /** (default 0.5) */
3725
3777
  radiusTop?: number | undefined;
3726
- /** (default 1.0) */
3778
+ /** (default 0.5) */
3727
3779
  radiusBottom?: number | undefined;
3728
3780
  }
3729
3781
 
@@ -3784,9 +3836,9 @@ export declare interface PBMeshRenderer_BoxMesh {
3784
3836
  * @public
3785
3837
  */
3786
3838
  export declare interface PBMeshRenderer_CylinderMesh {
3787
- /** (default 1.0) */
3839
+ /** (default 0.5) */
3788
3840
  radiusTop?: number | undefined;
3789
- /** (default 1.0) */
3841
+ /** (default 0.5) */
3790
3842
  radiusBottom?: number | undefined;
3791
3843
  }
3792
3844
 
@@ -3883,10 +3935,12 @@ export declare interface PBPointerEventsResult {
3883
3935
  button: InputAction;
3884
3936
  hit: RaycastHit | undefined;
3885
3937
  state: PointerEventType;
3886
- /** could be a Lamport timestamp */
3938
+ /** monotonic counter */
3887
3939
  timestamp: number;
3888
3940
  /** if the input is analog then we store it here */
3889
3941
  analog?: number | undefined;
3942
+ /** number of tick in which the event was produced, equals to EngineInfo.tick_number */
3943
+ tickNumber: number;
3890
3944
  }
3891
3945
 
3892
3946
  /**
@@ -3972,6 +4026,8 @@ export declare interface PBRaycastResult {
3972
4026
  direction: PBVector3 | undefined;
3973
4027
  /** zero or more hits */
3974
4028
  hits: RaycastHit[];
4029
+ /** number of tick in which the event was produced, equals to EngineInfo.tick_number */
4030
+ tickNumber: number;
3975
4031
  }
3976
4032
 
3977
4033
  /**
@@ -1138,7 +1138,9 @@ export declare const componentDefinitionByName: {
1138
1138
  "core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
1139
1139
  "core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
1140
1140
  "core::CameraModeArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
1141
+ "core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
1141
1142
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
1143
+ "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1142
1144
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1143
1145
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
1144
1146
  "core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
@@ -1507,6 +1509,9 @@ export declare type EngineEvent<T extends IEventNames = IEventNames, V = IEvents
1507
1509
  data: Readonly<V>;
1508
1510
  };
1509
1511
 
1512
+ /** @public */
1513
+ export declare const EngineInfo: LastWriteWinElementSetComponentDefinition<PBEngineInfo>;
1514
+
1510
1515
  /**
1511
1516
  * @public The Entity is a number type, the cast is only for typescript, the final javascript code treat as a number
1512
1517
  * version number
@@ -1710,6 +1715,9 @@ export declare type GlobalTargetRaycastSystemOptions = {
1710
1715
  /** @public */
1711
1716
  export declare const GltfContainer: LastWriteWinElementSetComponentDefinition<PBGltfContainer>;
1712
1717
 
1718
+ /** @public */
1719
+ export declare const GltfContainerLoadingState: LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>;
1720
+
1713
1721
  /**
1714
1722
  * @public
1715
1723
  */
@@ -2306,6 +2314,17 @@ export declare type Listeners = {
2306
2314
  onMouseUp?: Callback;
2307
2315
  };
2308
2316
 
2317
+ /**
2318
+ * @public
2319
+ */
2320
+ export declare const enum LoadingState {
2321
+ UNKNOWN = 0,
2322
+ LOADING = 1,
2323
+ NOT_FOUND = 2,
2324
+ FINISHED_WITH_ERROR = 3,
2325
+ FINISHED = 4
2326
+ }
2327
+
2309
2328
  export declare type LocalDirectionRaycastOptions = RaycastSystemOptions & LocalDirectionRaycastSystemOptions;
2310
2329
 
2311
2330
  export declare type LocalDirectionRaycastSystemOptions = {
@@ -3599,6 +3618,24 @@ export declare interface PBColor4 {
3599
3618
  a: number;
3600
3619
  }
3601
3620
 
3621
+ /**
3622
+ * EngineInfo provides information about the graphics engine running the scene.
3623
+ * The values of this component are written at the "physics" stage of the ADR-148. Meaning
3624
+ * the tick_number and frame_number of the same frame could be used as correlation numbers
3625
+ * for timestamps in other components.
3626
+ */
3627
+ /**
3628
+ * @public
3629
+ */
3630
+ export declare interface PBEngineInfo {
3631
+ /** frame counter of the engine */
3632
+ frameNumber: number;
3633
+ /** total runtime of this scene in seconds */
3634
+ totalRuntime: number;
3635
+ /** tick counter of the scene as per ADR-148 */
3636
+ tickNumber: number;
3637
+ }
3638
+
3602
3639
  /**
3603
3640
  * GltfContainer loads a GLTF file (and any additional files packaged inside) attached to an Entity.
3604
3641
  *
@@ -3611,6 +3648,21 @@ export declare interface PBColor4 {
3611
3648
  export declare interface PBGltfContainer {
3612
3649
  /** the GLTF file path as listed in the scene's manifest. */
3613
3650
  src: string;
3651
+ /** disable automatic physics collider creation (default: false) */
3652
+ disablePhysicsColliders?: boolean | undefined;
3653
+ /** copies the visible meshes into a virtual MeshCollider with CL_POINTER collider_mask (default: false) */
3654
+ createPointerColliders?: boolean | undefined;
3655
+ }
3656
+
3657
+ /**
3658
+ * GltfContainerLoadingState is set by the engine and provides information about
3659
+ * the current state of the GltfContainer of an entity.
3660
+ */
3661
+ /**
3662
+ * @public
3663
+ */
3664
+ export declare interface PBGltfContainerLoadingState {
3665
+ currentState: LoadingState;
3614
3666
  }
3615
3667
 
3616
3668
  /**
@@ -3721,9 +3773,9 @@ export declare interface PBMeshCollider_BoxMesh {
3721
3773
  * @public
3722
3774
  */
3723
3775
  export declare interface PBMeshCollider_CylinderMesh {
3724
- /** (default 1.0) */
3776
+ /** (default 0.5) */
3725
3777
  radiusTop?: number | undefined;
3726
- /** (default 1.0) */
3778
+ /** (default 0.5) */
3727
3779
  radiusBottom?: number | undefined;
3728
3780
  }
3729
3781
 
@@ -3784,9 +3836,9 @@ export declare interface PBMeshRenderer_BoxMesh {
3784
3836
  * @public
3785
3837
  */
3786
3838
  export declare interface PBMeshRenderer_CylinderMesh {
3787
- /** (default 1.0) */
3839
+ /** (default 0.5) */
3788
3840
  radiusTop?: number | undefined;
3789
- /** (default 1.0) */
3841
+ /** (default 0.5) */
3790
3842
  radiusBottom?: number | undefined;
3791
3843
  }
3792
3844
 
@@ -3883,10 +3935,12 @@ export declare interface PBPointerEventsResult {
3883
3935
  button: InputAction;
3884
3936
  hit: RaycastHit | undefined;
3885
3937
  state: PointerEventType;
3886
- /** could be a Lamport timestamp */
3938
+ /** monotonic counter */
3887
3939
  timestamp: number;
3888
3940
  /** if the input is analog then we store it here */
3889
3941
  analog?: number | undefined;
3942
+ /** number of tick in which the event was produced, equals to EngineInfo.tick_number */
3943
+ tickNumber: number;
3890
3944
  }
3891
3945
 
3892
3946
  /**
@@ -3972,6 +4026,8 @@ export declare interface PBRaycastResult {
3972
4026
  direction: PBVector3 | undefined;
3973
4027
  /** zero or more hits */
3974
4028
  hits: RaycastHit[];
4029
+ /** number of tick in which the event was produced, equals to EngineInfo.tick_number */
4030
+ tickNumber: number;
3975
4031
  }
3976
4032
 
3977
4033
  /**