addforce๋ก ํ๋ฉด ์๋๊ฐ ์ ์ ๋นจ๋ผ์ ธ์ ๊ฒฐ๊ตญ velocity๋ก ์ ํํด์ผ ๋๊ณ velocity๋ก ํ๋ฉด ๋๋ฐฑ์ ๋ฌด์ํด์ ์ผ์์ ์ผ๋ก ์กฐ์์ ๊บผ์ผ ๋๋๋ฐ ๋ณดํต ๋์ค์ ๋ฉ๋กํจ
movePosition
ใฑใ
์๋ ฅ์ ํ๋๊ฐ์ผ๋ก ์ฃผ๊ณ ์ํฅ์ ์ฃผ๋ ๋๋ฐฑ์ ๋ํ๊ธฐ
Vector3 velocity; void FixedUpdate() Input(ref Velocity); Collision(ref Velocity); rb.velocity = Velocity
์ฒด๊ณ ๋ค
๊ฐ ์ ์ผ๋ก velocity๊ฐ ํธํจ ์ง์ ๊ฐ์๋๋ ์กฐ์ ํ ์ ์๊ณ
ใฑใ