From d01a8bfefcc8a15faff1d9dfaca521dc58828d55 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 4 Apr 2026 08:36:51 +0200 Subject: [PATCH] Remove unused function and related code in runtime-host.ts --- src/runtime-three/runtime-host.ts | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index 7ac06bd4..d9749b9c 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -25,7 +25,6 @@ import type { LoadedImageAsset } from "../assets/image-assets"; import type { LoadedAudioAsset } from "../assets/audio-assets"; import type { ProjectAssetRecord } from "../assets/project-assets"; import { applyBoxBrushFaceUvsToGeometry } from "../geometry/box-face-uvs"; -import { createModelColliderDebugGroup } from "../geometry/model-instance-collider-debug-mesh"; import { createStarterMaterialSignature, createStarterMaterialTexture } from "../materials/starter-material-textures"; import { applyAdvancedRenderingLightShadowFlags, @@ -65,19 +64,6 @@ interface LocalLightRenderObjects { const FALLBACK_FACE_COLOR = 0x747d89; -function findVisibleModelCollider( - colliders: RuntimeSceneDefinition["colliders"], - instanceId: string -): Extract | null { - for (const collider of colliders) { - if (collider.source === "modelInstance" && collider.instanceId === instanceId && collider.visible) { - return collider; - } - } - - return null; -} - export class RuntimeHost { private readonly scene = new Scene(); private readonly camera = new PerspectiveCamera(70, 1, 0.05, 1000); @@ -496,7 +482,7 @@ export class RuntimeHost { this.applyShadowState(); } - private rebuildModelInstances(modelInstances: RuntimeSceneDefinition["modelInstances"], colliders: RuntimeSceneDefinition["colliders"]) { + private rebuildModelInstances(modelInstances: RuntimeSceneDefinition["modelInstances"]) { this.clearModelInstances(); for (const modelInstance of modelInstances) { @@ -520,12 +506,6 @@ export class RuntimeHost { loadedAsset, false ); - const visibleCollider = findVisibleModelCollider(colliders, modelInstance.instanceId); - - if (visibleCollider !== null) { - renderGroup.add(createModelColliderDebugGroup(visibleCollider)); - } - this.modelGroup.add(renderGroup); this.modelRenderObjects.set(modelInstance.instanceId, renderGroup);