@dcl/sdk 7.0.0-3175157853.commit-5773687 → 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-3175157853.commit-5773687",
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-3175157853.commit-5773687",
31
- "@dcl/build-ecs": "6.11.9-3175157853.commit-5773687",
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": "5773687c9c68d6bc2b30a79f867a10a2a168e8b3"
41
+ "commit": "bde1d88bf7f3bf8c682a9d7753a83ec85f04b65b"
42
42
  }