Transform 썸네일형 리스트형 3D 쿼터뷰 액션게임 - 플레이어 이동 플레이어의 기본 이동 구현 플레이어 프리팹을 씬 뷰에 넣고 rigidbody, capsule collider, player.cs 컴포넌트를 Add. 이동 중, 관성에 의한 넘어짐을 없애기 위해 rigidbody의 Freeze rotation X, Z 축을 체크. using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { public float speed; float hAxis; float vAxis; Vector3 moveVec; void Start() { } void Update() { hAxis = Input.GetAxisRaw("Horizontal").. 더보기 이전 1 다음