LookAt
[์ ๋ํฐ ๊ธฐ์ด] #1. ํธ๋์คํผ(transform) ์ปดํฌ๋ํธ ๊ธฐ๋ณธ ๋ฉ์๋ ์ฝ๋ ์ ๋ฆฌ (C#)
์ ๋ํฐ์์ ๋ํ์ ์ผ๋ก ๋ง์ด ์ฐ์ด๋ ํธ๋์คํผ์ ์ปดํฌ๋ํธ๋ฅผ ์ ๋ฆฌํด ๋ณด์์ต๋๋ค. ์ด ๊ธ์ ์ผ์ดํฐ ๋์ '์ ๋ํฐ ์ ๋ฌธ ๊ฐ์ข part 2 - ํธ๋์คํผ' ๊ฐ์๋ฅผ ๋ฐํ์ผ๋ก ์์ฑํ ๊ธ์ ๋๋ค. ๊ฐ์ ์์์ ๊ธ ์ ์ผ ํ๋จ์ ์ฐธ๊ณ ์ฉ์ผ๋ก ์ฌ๋ ค๋จ์ต๋๋ค. ์ค๋ธ์ ํธ ์ด๋ (๊ฐ ์ง์ ์์ , Translate) using System.Collections; using System.Collections.Generic; using UnityEngine; public class Test : MonoBehaviour { // Update is called once per frame void Update() { if(Input.GetKey(KeyCode.W)) { // Transform์ ํฌ์ง์ ๊ฐ ์ง์ ์์ this.transform.pos..