์์์ ๋ถ์ด์๋ ์คํฌ๋ฆฝํธ์์ ํน์ ์กฐ๊ฑด์ด ๋๋ฉดย
๋ถ๋ชจ์ transform์ ๋ณ๊ฒฝ์ํค๊ณ ์ถ์๋ฐ
์ด๋ค ํจ์ ์จ์ผํ๋ ;; ๋ชจ๋ฅด๊ฒ ์ ใ ใ
๋ถ๋ชจ transform ๋ณ๊ฒฝ๋ฐฉ๋ฒ์ ์์ ๋ชจ๋ฅด๊ฒ ์ด ใ ใ
์์์ ๋ถ์ด์๋ ์คํฌ๋ฆฝํธ์์ ํน์ ์กฐ๊ฑด์ด ๋๋ฉดย
๋ถ๋ชจ์ transform์ ๋ณ๊ฒฝ์ํค๊ณ ์ถ์๋ฐ
์ด๋ค ํจ์ ์จ์ผํ๋ ;; ๋ชจ๋ฅด๊ฒ ์ ใ ใ
๋ถ๋ชจ transform ๋ณ๊ฒฝ๋ฐฉ๋ฒ์ ์์ ๋ชจ๋ฅด๊ฒ ์ด ใ ใ
๊ทธ๋ฅ parent๋๊ฐ ์๋ parent.transform ํ๋ฉด ๋์๋
๋ถ๋ชจ๊ฐ ์์ด๋ก ๋ญ๋...
์ผ๋จ์ - this.transform.parent.position += moveVelocity * climbPower * Time.deltaTime;
์ด๋ ๊ฒ์ป๋๋ฐ
์๋จ
this.transform.parent.position ์ผ๋ก ๋ถ๋ชจ์ ํฌ์ง์ ๊ฐ์ด ๋ณ๊ฒฝ์ด ์๋จ
์ ๋๋ค ใ ใฑ