fix(bunsik): 접시가 세로로 서던 문제(원기둥 접시 기준점), 실내 분식집에 천장·지붕 추가

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-14 01:08:25 +09:00
parent 2b64bfc392
commit 8d29656aa3
2 changed files with 21 additions and 0 deletions

View File

@@ -121,6 +121,9 @@ function Food.dish(menu: string, cf: CFrame, parent: Instance): Model
local build = builders[menu] or builders.Tteokbokki
build(m, cf * CFrame.new(0, 0.2, 0))
m.PrimaryPart = plate
-- 원기둥 접시는 X축이 세로라 파트 자체가 90도 돌아가 있습니다. 모델 기준점(PivotTo)을 접시 바닥 가운데의
-- 똑바른 방향으로 맞춰 둡니다. 안 그러면 손에 들거나 테이블에 놓을 때 접시가 세로로 섭니다.
plate.PivotOffset = plate.CFrame:ToObjectSpace(cf)
m.Parent = parent
return m
end