fix(bunsik): 접시가 세로로 서던 문제(원기둥 접시 기준점), 실내 분식집에 천장·지붕 추가
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -121,6 +121,9 @@ function Food.dish(menu: string, cf: CFrame, parent: Instance): Model
|
|||||||
local build = builders[menu] or builders.Tteokbokki
|
local build = builders[menu] or builders.Tteokbokki
|
||||||
build(m, cf * CFrame.new(0, 0.2, 0))
|
build(m, cf * CFrame.new(0, 0.2, 0))
|
||||||
m.PrimaryPart = plate
|
m.PrimaryPart = plate
|
||||||
|
-- 원기둥 접시는 X축이 세로라 파트 자체가 90도 돌아가 있습니다. 모델 기준점(PivotTo)을 접시 바닥 가운데의
|
||||||
|
-- 똑바른 방향으로 맞춰 둡니다. 안 그러면 손에 들거나 테이블에 놓을 때 접시가 세로로 섭니다.
|
||||||
|
plate.PivotOffset = plate.CFrame:ToObjectSpace(cf)
|
||||||
m.Parent = parent
|
m.Parent = parent
|
||||||
return m
|
return m
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -301,6 +301,24 @@ local function buildIndoor(parent: Instance, cf: CFrame)
|
|||||||
color = rgb(240, 110, 40),
|
color = rgb(240, 110, 40),
|
||||||
material = Enum.Material.Fabric,
|
material = Enum.Material.Fabric,
|
||||||
})
|
})
|
||||||
|
-- 천장과 지붕(바깥에서 보면 평지붕 + 둘레 난간)
|
||||||
|
Build.part(m, {
|
||||||
|
name = "Ceiling",
|
||||||
|
size = Vector3.new(70, 0.6, 60),
|
||||||
|
cf = at(0, Y + H + 0.3, -9),
|
||||||
|
color = rgb(255, 248, 235),
|
||||||
|
})
|
||||||
|
Build.part(m, {
|
||||||
|
name = "Roof",
|
||||||
|
size = Vector3.new(71, 0.6, 61),
|
||||||
|
cf = at(0, Y + H + 0.9, -9),
|
||||||
|
color = rgb(150, 70, 55),
|
||||||
|
material = Enum.Material.Slate,
|
||||||
|
})
|
||||||
|
for _, side in { -1, 1 } do
|
||||||
|
Build.part(m, { size = Vector3.new(1.2, 1.6, 61), cf = at(side * 35, Y + H + 2, -9), color = trim })
|
||||||
|
Build.part(m, { size = Vector3.new(71, 1.6, 1.2), cf = at(0, Y + H + 2, -9 + side * 30), color = trim })
|
||||||
|
end
|
||||||
-- 천장 들보와 조명
|
-- 천장 들보와 조명
|
||||||
for i = 0, 4 do
|
for i = 0, 4 do
|
||||||
local z = -34 + i * 13
|
local z = -34 + i * 13
|
||||||
|
|||||||
Reference in New Issue
Block a user