From a725b6e280bfb74719b74189e08cc03e1e9465a7 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 25 Apr 2026 18:42:51 +0200 Subject: [PATCH] Refactor active arrow initialization to iterate over the collection --- src/runtime-three/runtime-host.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index 22d32c8a..2d5d7601 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -804,12 +804,10 @@ export class RuntimeHost { this.targetingLuxGroup.add(this.targetingLuxGlowMesh); this.targetingLuxGroup.add(this.targetingLuxMesh); this.targetingLuxGroup.add(this.targetingLuxLight); - this.targetingActiveRing.renderOrder = 10001; - this.targetingActiveArrow.renderOrder = 10002; - this.targetingActiveArrow.position.y = 0.68; - this.targetingActiveArrow.rotation.x = Math.PI; - this.targetingActiveGroup.add(this.targetingActiveRing); - this.targetingActiveGroup.add(this.targetingActiveArrow); + this.targetingActiveArrows.forEach((arrow, index) => { + arrow.renderOrder = 10001 + index; + this.targetingActiveGroup.add(arrow); + }); this.targetingVisualGroup.add(this.targetingLuxGroup); this.targetingVisualGroup.add(this.targetingActiveGroup); this.targetingVisualGroup.visible = false;