https://issuetracker.unity3d.com/issues/interpolation-slash-extrapolation-of-a-rigidbody-2d-stops-very-briefly-when-changing-its-parent-with-setparent-method
RESOLUTION NOTE:
If you explicitly change the position/rotation of a Rigidbody2D or change its parent/hierarchy then interpolation is stopped until the next simulation update. It has to do this, it has no other choice. It cannot continue to move from the old position to the new position. For instance, if you were to reparent it then you wouldn't want it interpolating to that new position, you want it to move to that new position instantly.
๋ฒ์ญ๊ธฐ ๋๋ ค๋ด๋ ์ดํด๊ฐ ์ ์๊ฐ๋ค
rigidbody๋ ๋ฌผ๋ฆฌ๊ณ setparent๋ transform์ด๋ผ ์๋ก ๋ค๋ฅธ ํ์ด๋ฐ์ ๋์ํ๋ฏ๋ก setparent์ ๋ค์ ๋ฌผ๋ฆฌ ์ ๋ฐ์ดํธ์๊น์ง ๋ณด๊ฐ ์๋์ํ๋ค๋๊ฑฐ์๋๊น?
๊ธฐ๋ค๋ ค๋ดค๋๋ฐ ๊ทธ๋ฅ ๋ณด๊ฐ์ด ์๋์์ค๋๋ผ
๋ณด๊ฐ์ผ๋๊ณ ๋ถ๋ชจ ๋ฐ๊ฟ๋ณธ์ ์ด์์ด์ ๋ชจ๋ฅด๊ฒ ๋ค.. ๊ป๋ค๊ฐ ๋ถ๋ชจ์ค์ ํด์ฃผ๊ณ ์ผ๋ณด๋๊ฑด์ด๋ฐ?
๊ทธ๊ฒ๋ ํด๋ดค๋๋ฐ ์๋๋๋ผ ํ๋ฒ ๋ถ๋ชจ ์๊ธฐ๊ณ ๋ถ๋ชจ๊ฐ ๋ฐ๋๊ณ ๋๋ฉด ๋ง๊ฐ์ ธ๋ฒ๋ฆผ
ํน์ ๋ฒ์ ๋ฌธ์ ์ผ์๋์์ผ๋ ๋ค๋ฅธ ๋ฒ์ ์ ๋นํ๋ก์ ํธ ํ๋ ํ์ ๋ณด๊ฐํ๊ณ ๊ณ์ธต๊ตฌ์กฐ๋ง์ค์ ํ๊ณ ์ฒดํฌํด๋ด ๋ ์ด๋ฌ๋ฉด ํด๊ฒฐ๋๋ ๋ฒ๊ทธ๊ฐ ๋ง์์์ด... ์ด๋๋ ๋๊ฐ์ผ๋ฉด ๋ฏธ์ํ์ง๋ง ๋ชจ๋ฅด๊ฒ ์ด!
๋ฒ์ ๋ฌธ์ ๋ ์๋๋ค
๋ฆฌ์ง๋๋ฐ๋์ ํฌ์ง์ /๋กํ ์ด์ ๊ฐ๋๋ฅผ ๋ฐ๋ก ๋ฐ๊พธ๊ฑฐ๋ ๋ถ๋ชจ ๋ฐ๊พธ๊ฑฐ๋ ํ์ด์ด๋ฌํค ๋ฐ๊พธ๋ฉด ๋ณด๊ฐ์ ๋ค์ ๋ฌผ๋ฆฌ ์ ๋ฐ์ดํธ ๋๊ธฐ ์ ๊น์ง ๋ฉ์ถ๊ฒ ๋์ด ์์ด์ ๋ค๋ฅธ ๋ฐฉ๋ฒ์ด ์๋ค๋๊ฑฐ๊ฐ์.
์์ง ์๋๋ฐฉ์๋๋ฌธ์ ์ ๋ ์๊ณ ์ณ์ง๋ ๊ทธ๋ฐ๊ฑฐ์ธ๋ฏ
ํน์ ๋ค์ ๋ฌผ๋ฆฌ ์ ๋ฐ์ดํธ ์กฐ๊ฑด์ด ๋ญ์ง ์?
์๋ ํ๊ฒฝ์ด 90๋ ๋์๊ฐ ์ค๋ ฅ์์ ์ฌ์ฉํด์ ๋ณด๊ฐ์ด ์ ์์๋ ์ํ๋ ๋ฌธ์ ๊ฐ ์๊ธด๊ฑฐ ๊ฐ์ ์ค๋ ฅ์ ์ ์์ ์ธ ๋ฐฉํฅ ์ ๋ฐ๋ ๋ฐฉํฅ์ผ๋ก ๋๋ฆด์์ ๋ณด๊ฐ์ด ์ ์์ ์ผ๋ก ๋์์ค๋๊ฒ์ ํ์ธํ ์๊ฐ ์์ ์ด๊ฑฐ ์ด๋ป๊ฒ ํด๊ฒฐํ๋์ง ์๋์ฌ๋ ์์?
ํด๊ฒฐ Rigidbody ๊ฐ์ฒด๋ฅผ ์์ง์ผ๋๋ Move ๋ถ์ ํจ์ ์ด์ฉํด์ ์์ง์ฌ์ผํจ