์ ์๋๋ค ๊ฒฝ์ฌ๋ฉด ๋ฒกํฐ๊ฐ ์ด์ํ๊ฒ ๊ตฌํด์ ธ์.. ๋์์ฃผ์ธ์...ใ ใ
์ฝ๋
ย ย ย ย Vector3 temp = Vector3.Cross(Vector3.Cross(hit.normal, moveDirection), hit.normal);
์ ์๋๋ค ๊ฒฝ์ฌ๋ฉด ๋ฒกํฐ๊ฐ ์ด์ํ๊ฒ ๊ตฌํด์ ธ์.. ๋์์ฃผ์ธ์...ใ ใ
์ฝ๋
ย ย ย ย Vector3 temp = Vector3.Cross(Vector3.Cross(hit.normal, moveDirection), hit.normal);
๋ญ ํ๊ณ ์ถ์๊ฑด์ง๋ฅผ ๋ชจ๋ฅด๊ฒ ๋๋ฐ;
https://gall.dcinside.com/mgallery/board/view/?id=game_dev&no=19943
์ด๋ฐ๊ฑฐ
์ํ๋๊ฑฐ ์๋?
moveDirection์ hit.normal ํ๋ฉด์ ํฌ์ํ๋ฉด ๋์ง์์?
ํ ์ ์๋๋ค ๊ฐ์ฌํฉ๋๋ค
์๋ถ์ด ๋งํ๋ moveDirection์ hit.normal ํ๋ฉด์ ์ด๋ป๊ฒ ํฌ์ํ๋๊ฑฐ์ฃ .. ์ ์ดํด๊ฐ ์๊ฐ๋ค ์ ๋ฌธ์๋ผ