@dcl/sdk 7.0.0-2965783764.commit-18f9e1c → 7.0.0-2979842512.commit-00b1870

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.
@@ -229,6 +229,8 @@ export declare namespace Components {
229
229
  /** @public */
230
230
  const Material: ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
231
231
  /** @public */
232
+ const MeshCollider: ComponentDefinition<ISchema<PBMeshCollider>, PBMeshCollider>;
233
+ /** @public */
232
234
  const MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>, Partial<PBMeshRenderer>>;
233
235
  /** @public */
234
236
  const NFTShape: ComponentDefinition<ISchema<PBNFTShape>, PBNFTShape>;
@@ -404,6 +406,23 @@ declare interface CreateByteBufferOptions {
404
406
  initialCapacity?: number;
405
407
  }
406
408
 
409
+ /**
410
+ * Transform parenting: cyclic dependency checker
411
+ * It checks only in modified Transforms
412
+ *
413
+ * Add this system with:
414
+ * ```ts
415
+ * engine.addSystem(cyclicParentingChecker(engine))
416
+ * ````
417
+ * And then it will check every tick the parenting.
418
+ *
419
+ * @public
420
+ *
421
+ * @params engine
422
+ * @returns a system
423
+ */
424
+ export declare function cyclicParentingChecker(engine: IEngine): () => void;
425
+
407
426
  /** @public */
408
427
  export declare const CylinderShape: ComponentDefinition<ISchema<PBCylinderShape>, PBCylinderShape>;
409
428
 
@@ -452,6 +471,7 @@ declare function defineSdkComponents(engine: PreEngine): {
452
471
  CylinderShape: ComponentDefinition<ISchema<PBCylinderShape>, PBCylinderShape>;
453
472
  GLTFShape: ComponentDefinition<ISchema<PBGLTFShape>, PBGLTFShape>;
454
473
  Material: ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
474
+ MeshCollider: ComponentDefinition<ISchema<PBMeshCollider>, PBMeshCollider>;
455
475
  NFTShape: ComponentDefinition<ISchema<PBNFTShape>, PBNFTShape>;
456
476
  OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>, PBOnPointerDown>;
457
477
  OnPointerDownResult: ComponentDefinition<ISchema<PBOnPointerDownResult>, PBOnPointerDownResult>;
@@ -1402,6 +1422,9 @@ declare namespace Matrix {
1402
1422
  function toggleProjectionMatrixHandInPlace(self: MutableMatrix): void;
1403
1423
  }
1404
1424
 
1425
+ /** @public */
1426
+ export declare const MeshCollider: ComponentDefinition<ISchema<PBMeshCollider>, PBMeshCollider>;
1427
+
1405
1428
  /** @public */
1406
1429
  export declare const MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>, Partial<PBMeshRenderer>>;
1407
1430
 
@@ -1484,17 +1507,30 @@ declare interface PBAvatarModifierArea {
1484
1507
 
1485
1508
  declare interface PBAvatarShape {
1486
1509
  id: string;
1510
+ /** default = NPC */
1487
1511
  name?: string | undefined;
1512
+ /** default = urn:decentraland:off-chain:base-avatars:BaseFemale */
1488
1513
  bodyShape?: string | undefined;
1514
+ /** default = Color3(R = 0.6f, G = 0.462f, B = 0.356f) */
1489
1515
  skinColor?: Color3 | undefined;
1516
+ /** default = Color3(R = 0.283f, G = 0.142f, B = 0f) */
1490
1517
  hairColor?: Color3 | undefined;
1518
+ /** default = Color3(R = 0.6f, G = 0.462f, B = 0.356f) */
1491
1519
  eyeColor?: Color3 | undefined;
1492
- wearables: string[];
1493
1520
  expressionTriggerId?: string | undefined;
1521
+ /** default = timestamp */
1494
1522
  expressionTriggerTimestamp?: number | undefined;
1495
- stickerTriggerId?: string | undefined;
1496
- stickerTriggerTimestamp?: number | undefined;
1497
1523
  talking?: boolean | undefined;
1524
+ /**
1525
+ * default = ["urn:decentraland:off-chain:base-avatars:f_eyes_00",
1526
+ * "urn:decentraland:off-chain:base-avatars:f_eyebrows_00",
1527
+ * "urn:decentraland:off-chain:base-avatars:f_mouth_00"
1528
+ * "urn:decentraland:off-chain:base-avatars:standard_hair",
1529
+ * "urn:decentraland:off-chain:base-avatars:f_simple_yellow_tshirt",
1530
+ * "urn:decentraland:off-chain:base-avatars:f_brown_trousers",
1531
+ * "urn:decentraland:off-chain:base-avatars:bun_shoes"]
1532
+ */
1533
+ wearables: string[];
1498
1534
  }
1499
1535
 
1500
1536
  declare interface PBBillboard {
@@ -1591,6 +1627,31 @@ declare interface PBMaterial_Texture {
1591
1627
  filterMode?: FilterMode | undefined;
1592
1628
  }
1593
1629
 
1630
+ declare interface PBMeshCollider {
1631
+ /** default = ColliderLayer.Physics | ColliderLayer.Pointer */
1632
+ collisionMask?: number | undefined;
1633
+ box: PBMeshCollider_BoxMesh | undefined;
1634
+ sphere: PBMeshCollider_SphereMesh | undefined;
1635
+ cylinder: PBMeshCollider_CylinderMesh | undefined;
1636
+ plane: PBMeshCollider_PlaneMesh | undefined;
1637
+ }
1638
+
1639
+ declare interface PBMeshCollider_BoxMesh {
1640
+ }
1641
+
1642
+ declare interface PBMeshCollider_CylinderMesh {
1643
+ /** default=1.0 */
1644
+ radiusTop?: number | undefined;
1645
+ /** default=1.0 */
1646
+ radiusBottom?: number | undefined;
1647
+ }
1648
+
1649
+ declare interface PBMeshCollider_PlaneMesh {
1650
+ }
1651
+
1652
+ declare interface PBMeshCollider_SphereMesh {
1653
+ }
1654
+
1594
1655
  declare interface PBMeshRenderer {
1595
1656
  box: PBMeshRenderer_BoxMesh | undefined;
1596
1657
  sphere: PBMeshRenderer_SphereMesh | undefined;