@dcl/sdk 7.0.0-3175157853.commit-5773687 → 7.0.0-3181686137.commit-114a2bd

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-3181686137.commit-114a2bd",
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-3181686137.commit-114a2bd",
31
+ "@dcl/build-ecs": "6.11.9-3181686137.commit-114a2bd",
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": "114a2bd6bf69d034dacf8c88b15708a646db9519"
42
42
  }
@@ -164,7 +164,7 @@ declare type ComponentDefinition<T extends ISchema = ISchema<any>, ConstructorTy
164
164
  * Transform.createOrReplace(myEntity, { ...Transform.default(), position: {x: 4, y: 0, z: 4} }) // ok!
165
165
  * ````
166
166
  */
167
- createOrReplace(entity: Entity, val?: ComponentType<T>): ComponentType<T>;
167
+ createOrReplace(entity: Entity, val?: ConstructorType): ComponentType<T>;
168
168
  /**
169
169
  * Delete the current component to an entity, return null if the entity doesn't have the current component.
170
170
  * - Internal comment: This method adds the <entity,component> to the list to be reviewed next frame