Vector3 dir = mouse.transform.position - turret.transform.position;
float angle = Mathf.Atan2(dir.y, dir.x) * Mathf.Rad2Deg;
turret.transform.rotation = Quaternion.Lerp(transform.rotation, Quaternion.Euler(new Vector3(0, 0, angle - 90)), turretRotateSpeed * Time.deltaTime);
ํฐ๋ ์ด๋ผ๋ ์ค๋ธ์ ํธ๋ฅผย ๋ง์ฐ์ค๊ฐ ์๋ ๋ฐฉํฅ์ผ๋ก ์ผ์ ์๋๋ก ์์ง์ด๊ฒ ํ๊ณ ์ถ์๋ฐ ์ด๋ ๊ฒ ์ฝ๋๋ฅผ ์ฐ๋ฉด ํ์ ์ ํ๋ค๋ง์๋ฒ๋ฆผ
์ด์บ ํด๊ฒฐํ๋์ ํ๋๋ค?
์ค์ผ๋ฌ์ ํญ์ ๊ฐ -90 ์ด๋ผ ๊ทธ๋ฐ๊ฑฐ ์๋?