Skip to content

Commit 8e2977c

Browse files
committed
remove unused viewerEntity reference in UpdateSystem
1 parent 5e0e2b0 commit 8e2977c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/CustomLocationPage.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ const UpdateSystem = defineSystem({
4242
const elapsedSeconds = getState(ECSState).elapsedSeconds
4343
const transformComponent = getComponent(entity, TransformComponent)
4444
transformComponent.rotation.setFromAxisAngle(Vector3_Up, elapsedSeconds)
45-
46-
const viewerEntity = getState(ReferenceSpaceState).viewerEntity
47-
48-
// console.log(getComponent(viewerEntity, TransformComponent).rotation.toArray())
4945
},
5046
reactor: function () {
5147
const { originEntity, viewerEntity } = useMutableState(ReferenceSpaceState).value

0 commit comments

Comments
 (0)