์๊ฐํด๋ณธ ๋ฐฉ๋ฒ์ด position์์น x,y,z๋ฒ์ ์์ ์๋๊ฐ ๊ฐ๊ฐ ์กฐ๊ฑด ๋ฐ์ง๋๊ฑฐ๊ณ
๋ํ๋๋ empty ํ๋ ๋ง๋ค์ด์ ๊ทธ ์์ญํฌ๊ธฐ๋งํผ ๋ง๋ค๊ณ ย ์ฝ๋ผ์ด๋ ์ค์ ํ๋ค์์.....์ด๋ป๊ฒ ํ๋ ๋ฐฉ๋ฒ์ด ์์ง์์๊น๋ ์๊ฐํด๋ดฃ๋๋ฐ
ใ
๊ฐ๋จํ ๋ฐฉ๋ฒ์์๊ฑฐ๊ฐ์์ ํน์ ๋ฌผ์ด๋ดค์ด์ ์๋ ค์ฃผ์ธ์ ๊ณ ์๋๋ค
(min.x >= x || max.x < x) ์ด๊ฑฐ?
void onColliderEnter/Exit์ bool๊ฐ ์ฒดํฌ ์ฒ๋ฆฌํ๋ ๋ฐฉ๋ฒ๋ ์์
๊ฐ์ฌํฉ๋๋ค์ผ์ธ
https://docs.unity3d.com/ScriptReference/Physics.BoxCastAll.html
์ด๊ฑฐ
๋ง์ํ์๋๊ฒ ๊ฐ์๋ฐ - dc App
๋ฐ์ค ์ซ์ผ๋ฉด ๊ตฌํ์ผ๋ก๋ ๋๊ณ 2d๋ ์์์ - dc App
๊ฐ์ฌํฉ๋๋ค ์ผ์ธ
OverlapPoint / OverlapCollider ๋ ์์ด์ผ - dc App
์์น๋ ๋ฒ์ ์ ๋ณด๊ฐ ๋ชจ๋ ์๋ ์ํฉ์ด๋ฉด
https://docs.unity3d.com/ScriptReference/Bounds.html
https://docs.unity3d.com/ScriptReference/Bounds.ClosestPoint.html
https://docs.unity3d.com/ScriptReference/Physics.OverlapSphere.html