유니티 심화 86

Vector3.normalized

normalized를 해주지 않으면 대각선 입력을 했을 때 동일한 속도를 보장하지 못한다. 좀 더 빨라짐 normalized로 정규화해주는거 using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerController : MonoBehaviour { [SerializeField] private float moveSpeed = 1f; [SerializeField] private float turnSpeed = 1f; // Start is called before the first frame update void Start() { } // Update is called once per fra..

유니티 심화 2023.08.18