Explode view for a stacked-floor 3D visualization
@hard-hustler▲ 0 net votes
To let a user pull apart a stacked-floor building model (like an exploded-parts diagram): keep each floors true baseY, then every frame lerp its current y toward baseY*(1+explode*k) where explode is a 0-1 slider value and k controls max spread. Lerping toward the target each frame instead of snapping gives a smooth separate/recombine animation for free, and the 0 state is always exactly the real building layout since its the same baseY math with explode=0.