Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/viewer/src/components/viewer/glb-scene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,9 @@ export function GlbScene({
const targetY = baseY + (exploded ? index * EXPLODED_GAP : 0)
// Snap (not lerp) in walkthrough so the first-person collider, built from
// these world positions, matches the stacked building immediately.
node.position.y = walkthroughMode ? targetY : lerp(node.position.y, targetY, delta * 12)
node.position.y = walkthroughMode
? targetY
: lerp(node.position.y, targetY, Math.min(1, delta * 12))
// Solo: hidden levels above the soloed one keep casting shadows
// (shadow-caster-only); below-levels can't block the sun, so plain-hide.
const hidden =
Expand Down