From 3d03a4f6b986af56fd095724e6fa515d585f4d79 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 11 May 2026 14:01:21 +0200 Subject: [PATCH] Apply NPC scale to render and collision groups --- src/runtime-three/runtime-host.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index b998f4c2..ff81d7a4 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -1989,6 +1989,7 @@ export class RuntimeHost { private syncNpcRenderGroupTransform(renderGroup: Group, npc: RuntimeNpc) { renderGroup.position.set(npc.position.x, npc.position.y, npc.position.z); + renderGroup.scale.set(npc.scale.x, npc.scale.y, npc.scale.z); const facingGroup = renderGroup.getObjectByName("npcFacingGroup"); if (facingGroup !== undefined) { @@ -4306,6 +4307,7 @@ export class RuntimeHost { }); group.position.set(npc.position.x, npc.position.y, npc.position.z); + group.scale.set(npc.scale.x, npc.scale.y, npc.scale.z); switch (npc.collider.mode) { case "capsule": { @@ -4461,11 +4463,7 @@ export class RuntimeHost { y: npc.yawDegrees, z: 0 }, - scale: { - x: 1, - y: 1, - z: 1 - }, + scale: npc.scale, collision: { mode: "none", visible: false