From 8b7191825213eb13c0b355abbd5d954cb6763179 Mon Sep 17 00:00:00 2001 From: Nicolas Earnshaw Date: Fri, 15 Sep 2023 09:33:43 -0300 Subject: [PATCH 1/2] simplify avatar attach (#102) --- beer-dispenser/src/modules/beerGlass.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/beer-dispenser/src/modules/beerGlass.ts b/beer-dispenser/src/modules/beerGlass.ts index 3124c19cb..16e9e15ae 100644 --- a/beer-dispenser/src/modules/beerGlass.ts +++ b/beer-dispenser/src/modules/beerGlass.ts @@ -71,7 +71,6 @@ export function pickingGlassSystem() { }) AvatarAttach.create(parentBeer, { - avatarId: currentPlayerId, anchorPointId: AvatarAnchorPointType.AAPT_RIGHT_HAND }) Transform.createOrReplace(entity, { From 150240c6eb76ab2228d3049c1ba694968f561b32 Mon Sep 17 00:00:00 2001 From: Gonzalo DCL Date: Tue, 19 Sep 2023 15:19:35 -0300 Subject: [PATCH 2/2] remove dynamic entity --- cube-wave-16x16/src/index.ts | 4 ++-- cube-wave-32x32/src/index.ts | 4 ++-- scene-bounds-check/src/index.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cube-wave-16x16/src/index.ts b/cube-wave-16x16/src/index.ts index eacc25ca6..fccccb1f2 100644 --- a/cube-wave-16x16/src/index.ts +++ b/cube-wave-16x16/src/index.ts @@ -8,7 +8,7 @@ export function main() { } } - const sign = engine.addEntity(true) + const sign = engine.addEntity() Transform.create(sign, { position: { x: 8, y: 6, z: 8 }, scale: { x: 1.2, y: 1.2, z: 1.2 } @@ -33,7 +33,7 @@ engine.addSystem(CircleHoverSystem) // My cube generator function createCube(x: number, y: number, z: number) { // Dynamic entity because we aren't loading static entities out of this scene code - const myEntity = engine.addEntity(true) + const myEntity = engine.addEntity() Transform.create(myEntity, { position: { x, y, z } diff --git a/cube-wave-32x32/src/index.ts b/cube-wave-32x32/src/index.ts index f88b5d59f..fa9495dba 100644 --- a/cube-wave-32x32/src/index.ts +++ b/cube-wave-32x32/src/index.ts @@ -8,7 +8,7 @@ export function main() { } } - const sign = engine.addEntity(true) + const sign = engine.addEntity() Transform.create(sign, { position: { x: 8, y: 6, z: 8 }, scale: { x: 1.2, y: 1.2, z: 1.2 } @@ -33,7 +33,7 @@ engine.addSystem(CircleHoverSystem) // My cube generator function createCube(x: number, y: number, z: number) { // Dynamic entity because we aren't loading static entities out of this scene code - const myEntity = engine.addEntity(true) + const myEntity = engine.addEntity() Transform.create(myEntity, { position: { x, y, z }, diff --git a/scene-bounds-check/src/index.ts b/scene-bounds-check/src/index.ts index fa2a2b3d6..8195746af 100644 --- a/scene-bounds-check/src/index.ts +++ b/scene-bounds-check/src/index.ts @@ -168,7 +168,7 @@ export function main() { setAsMovingPlatform(audioSourceEntity, [Vector3.create(24, 1, -31), Vector3.create(24, 1, -33)], 10) // TEXT SHAPE - const textShapeEntity = engine.addEntity(true) + const textShapeEntity = engine.addEntity() TextShape.create(textShapeEntity, { text: 'IA IA CTHULHU FHTAGN!', fontSize: 2