diff --git a/test/build-ecs/fixtures/sdk7-humming-birds-sync/src/create-cube.ts b/test/build-ecs/fixtures/sdk7-humming-birds-sync/src/create-cube.ts index db5f0180a..f926090e7 100644 --- a/test/build-ecs/fixtures/sdk7-humming-birds-sync/src/create-cube.ts +++ b/test/build-ecs/fixtures/sdk7-humming-birds-sync/src/create-cube.ts @@ -25,8 +25,8 @@ export function createTriangle(entityFactory: NetworkManager, x: number, y: numb export function createCircle(entityFactory: NetworkManager, x: number, y: number, z: number, sync: boolean = true) { const entity = createCube(entityFactory, x, y, z, sync) - MeshRenderer.setCylinder(entity, 3, 3) - MeshCollider.setCylinder(entity, 3, 3) + MeshRenderer.setCylinder(entity, 1, 1) + MeshCollider.setCylinder(entity, 1, 1) return entity } diff --git a/test/build-ecs/fixtures/sdk7-humming-birds-sync/src/ui.tsx b/test/build-ecs/fixtures/sdk7-humming-birds-sync/src/ui.tsx index b0b5ae1f8..4fd98d918 100644 --- a/test/build-ecs/fixtures/sdk7-humming-birds-sync/src/ui.tsx +++ b/test/build-ecs/fixtures/sdk7-humming-birds-sync/src/ui.tsx @@ -128,9 +128,10 @@ export function setupUi(userId: string) { value="Create Local (Circle)" fontSize={18} uiTransform={{ width: '100%', height: 40 }} - onMouseDown={() => - createCircle(engine, Math.random() * 24 + 23, Math.random() * 2, Math.random() * 24 + 23, false) - } + onMouseDown={() => { + const { x, y, z } = Transform.get(engine.PlayerEntity).position + createCircle(engine, x, y, z, false) + }} /> {scoreBoard.map(($) => (