auto-git:

[change] src/viewport-three/viewport-focus.ts
This commit is contained in:
2026-04-22 16:59:18 +02:00
parent 7e41d72295
commit fd2f5640c0

View File

@@ -426,6 +426,9 @@ function includeEntity(bounds: FocusBoundsAccumulator, entity: EntityInstance) {
case "spotLight":
includeSphereEntity(bounds, entity.position, Math.max(0.75, entity.distance));
break;
case "cameraRig":
includeTeleportTarget(bounds, entity.position);
break;
case "playerStart":
case "sceneEntry":
case "npc":
@@ -452,6 +455,8 @@ function createEntityFocusTarget(entity: EntityInstance): ViewportFocusTarget {
return createSphereEntityFocusTarget(entity.position, Math.max(0.6, entity.distance), 0.75);
case "spotLight":
return createSphereEntityFocusTarget(entity.position, Math.max(0.8, entity.distance), 0.9);
case "cameraRig":
return createTeleportTargetFocusTarget(entity.position);
case "playerStart":
case "sceneEntry":
case "npc":