@dcl/sdk 7.0.0-2965783764.commit-18f9e1c → 7.0.0-2966684214.commit-a567432

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.
@@ -0,0 +1,35 @@
1
+ syntax = "proto3";
2
+
3
+ import "common/id.proto";
4
+ option (ecs_component_id) = 1019;
5
+
6
+ enum ColliderLayer {
7
+ None = 0;
8
+ Pointer = 1;
9
+ Physics = 2;
10
+ }
11
+
12
+ message PBMeshCollider {
13
+ message BoxMesh {
14
+ }
15
+
16
+ message CylinderMesh {
17
+ optional float radius_top = 1; // default=1.0
18
+ optional float radius_bottom = 2; // default=1.0
19
+ }
20
+
21
+ message PlaneMesh {
22
+ }
23
+
24
+ message SphereMesh {
25
+ }
26
+
27
+ optional int32 collision_mask = 1; // default = ColliderLayer.Physics | ColliderLayer.Pointer
28
+
29
+ oneof mesh {
30
+ BoxMesh box = 2;
31
+ SphereMesh sphere = 3;
32
+ CylinderMesh cylinder = 4;
33
+ PlaneMesh plane = 5;
34
+ }
35
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
- "version": "7.0.0-2965783764.commit-18f9e1c",
3
+ "version": "7.0.0-2966684214.commit-a567432",
4
4
  "description": "",
5
5
  "main": "dist/src/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -27,8 +27,8 @@
27
27
  "src/cli/**/*.js"
28
28
  ],
29
29
  "dependencies": {
30
- "@dcl/amd": "6.11.5-2965783764.commit-18f9e1c",
31
- "@dcl/build-ecs": "6.11.5-2965783764.commit-18f9e1c",
30
+ "@dcl/amd": "6.11.5-2966684214.commit-a567432",
31
+ "@dcl/build-ecs": "6.11.5-2966684214.commit-a567432",
32
32
  "@dcl/kernel": "1.0.0-2638443584.commit-696a74b",
33
33
  "@dcl/posix": "^1.0.4",
34
34
  "@dcl/schemas": "4.8.0",
@@ -38,5 +38,5 @@
38
38
  "ignore": "^5.1.8"
39
39
  },
40
40
  "minCliVersion": "3.10.2",
41
- "commit": "18f9e1c12d82955fce52e4a1d825a3d7c9950301"
41
+ "commit": "a567432815d98b2eb5bdfd38b44f4439f938c2b3"
42
42
  }
@@ -229,6 +229,8 @@ 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>;
@@ -452,6 +454,7 @@ declare function defineSdkComponents(engine: PreEngine): {
452
454
  CylinderShape: ComponentDefinition<ISchema<PBCylinderShape>, PBCylinderShape>;
453
455
  GLTFShape: ComponentDefinition<ISchema<PBGLTFShape>, PBGLTFShape>;
454
456
  Material: ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
457
+ MeshCollider: ComponentDefinition<ISchema<PBMeshCollider>, PBMeshCollider>;
455
458
  NFTShape: ComponentDefinition<ISchema<PBNFTShape>, PBNFTShape>;
456
459
  OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>, PBOnPointerDown>;
457
460
  OnPointerDownResult: ComponentDefinition<ISchema<PBOnPointerDownResult>, PBOnPointerDownResult>;
@@ -1402,6 +1405,9 @@ declare namespace Matrix {
1402
1405
  function toggleProjectionMatrixHandInPlace(self: MutableMatrix): void;
1403
1406
  }
1404
1407
 
1408
+ /** @public */
1409
+ declare const MeshCollider: ComponentDefinition<ISchema<PBMeshCollider>, PBMeshCollider>;
1410
+
1405
1411
  /** @public */
1406
1412
  declare const MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>, Partial<PBMeshRenderer>>;
1407
1413
 
@@ -1591,6 +1597,31 @@ declare interface PBMaterial_Texture {
1591
1597
  filterMode?: FilterMode | undefined;
1592
1598
  }
1593
1599
 
1600
+ declare interface PBMeshCollider {
1601
+ /** default = ColliderLayer.Physics | ColliderLayer.Pointer */
1602
+ collisionMask?: number | undefined;
1603
+ box: PBMeshCollider_BoxMesh | undefined;
1604
+ sphere: PBMeshCollider_SphereMesh | undefined;
1605
+ cylinder: PBMeshCollider_CylinderMesh | undefined;
1606
+ plane: PBMeshCollider_PlaneMesh | undefined;
1607
+ }
1608
+
1609
+ declare interface PBMeshCollider_BoxMesh {
1610
+ }
1611
+
1612
+ declare interface PBMeshCollider_CylinderMesh {
1613
+ /** default=1.0 */
1614
+ radiusTop?: number | undefined;
1615
+ /** default=1.0 */
1616
+ radiusBottom?: number | undefined;
1617
+ }
1618
+
1619
+ declare interface PBMeshCollider_PlaneMesh {
1620
+ }
1621
+
1622
+ declare interface PBMeshCollider_SphereMesh {
1623
+ }
1624
+
1594
1625
  declare interface PBMeshRenderer {
1595
1626
  box: PBMeshRenderer_BoxMesh | undefined;
1596
1627
  sphere: PBMeshRenderer_SphereMesh | undefined;