@dcl/sdk 7.0.0-3161135633.commit-7f143e3 → 7.0.0-3177253896.commit-bde1d88

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.
@@ -24,8 +24,11 @@ function createCube(x: number, y: number, z: number, spawner = true): Entity {
24
24
 
25
25
  // Systems
26
26
  function circularSystem(dt: number) {
27
- const entitiesWithBoxShapes = engine.getEntitiesWith(BoxShape, Transform)
28
- for (const [entity, _boxShape, _transform] of entitiesWithBoxShapes) {
27
+ const entitiesWithMeshRenderer = engine.getEntitiesWith(
28
+ MeshRenderer,
29
+ Transform
30
+ )
31
+ for (const [entity, _meshRenderer, _transform] of entitiesWithMeshRenderer) {
29
32
  const mutableTransform = Transform.getMutable(entity)
30
33
 
31
34
  mutableTransform.rotation = Quaternion.multiply(
@@ -8,6 +8,7 @@ function createCube(
8
8
  const meshEntity = engine.addEntity()
9
9
  Transform.create(meshEntity, { position: { x, y, z } })
10
10
  MeshRenderer.create(meshEntity, { box: { uvs: [] } })
11
+ MeshCollider.create(meshEntity, { box: {} })
11
12
  PointerEvents.create(meshEntity, { pointerEvents })
12
13
  return meshEntity
13
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
- "version": "7.0.0-3161135633.commit-7f143e3",
3
+ "version": "7.0.0-3177253896.commit-bde1d88",
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.9-3161135633.commit-7f143e3",
31
- "@dcl/build-ecs": "6.11.9-3161135633.commit-7f143e3",
30
+ "@dcl/amd": "6.11.9-3177253896.commit-bde1d88",
31
+ "@dcl/build-ecs": "6.11.9-3177253896.commit-bde1d88",
32
32
  "@dcl/kernel": "1.0.0-2994874542.commit-c3ae489",
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": "7f143e337d31ca3f09cc1046b2b4fb567cebca1b"
41
+ "commit": "bde1d88bf7f3bf8c682a9d7753a83ec85f04b65b"
42
42
  }
@@ -657,7 +657,21 @@ declare type IEngine = {
657
657
  * ```
658
658
  */
659
659
  getEntitiesWith<T extends [ComponentDefinition, ...ComponentDefinition[]]>(...components: T): Iterable<[Entity, ...ReadonlyComponentSchema<T>]>;
660
+ /**
661
+ * @public
662
+ * Refer to the root of the scene, all Transforms without a parent are parenting with RootEntity.
663
+ */
660
664
  RootEntity: Entity;
665
+ /**
666
+ * @public
667
+ * The current player entity
668
+ */
669
+ PlayerEntity: Entity;
670
+ /**
671
+ * @public
672
+ * Camera entity of current player.
673
+ */
674
+ CameraEntity: Entity;
661
675
  baseComponents: SdkComponents;
662
676
  };
663
677