fps 만들기

1. 캐릭터 좌우 회전 카메라는 상하좌우로 회전해야 되지만 캐릭터는 좌우만 회전하면 된다. 카메라를 좌우로 움직이게 만들었던 스크립트를 복붙해서 만들자. public class PlayerRotate : MonoBehaviour { // rotate speed public float roSpeed = 200f; // 회전값 미리 저장 할 변수 float mx; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { // 마우스로 입력 받기(좌우) float Mouse_X = Input.GetAxis("Mouse X"); // 값 누적시키기 mx += M..
이동식이
'fps 만들기' 태그의 글 목록