From 649e4ae717a24b2d7a769c93f20d93e8418d5a40 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 11 May 2026 14:00:38 +0200 Subject: [PATCH] Add scale support to RuntimeNpc and RuntimeTriggerVolume definitions --- src/runtime-three/runtime-scene-build.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/runtime-three/runtime-scene-build.ts b/src/runtime-three/runtime-scene-build.ts index eb29cc05..2f7718c7 100644 --- a/src/runtime-three/runtime-scene-build.ts +++ b/src/runtime-three/runtime-scene-build.ts @@ -374,6 +374,7 @@ export interface RuntimeNpc { visible: boolean; position: Vec3; yawDegrees: number; + scale: Vec3; modelAssetId: string | null; dialogues: ProjectDialogue[]; defaultDialogueId: string | null; @@ -419,6 +420,7 @@ export interface RuntimeSoundEmitter { export interface RuntimeTriggerVolume { entityId: string; position: Vec3; + rotationDegrees: Vec3; size: Vec3; triggerOnEnter: boolean; triggerOnExit: boolean; @@ -660,6 +662,7 @@ export function createRuntimeNpcFromDefinition( visible: npc.visible, position: cloneVec3(npc.position), yawDegrees: npc.yawDegrees, + scale: cloneVec3(npc.scale), modelAssetId: npc.modelAssetId, dialogues: npc.dialogues.map(cloneProjectDialogue), defaultDialogueId: npc.defaultDialogueId,