낙하 속도 (1) 썸네일형 리스트형 [Unity] 캐릭터 점프 이번에는 캐릭터의 점프를 구현해보겠습니다. 먼저 초기 코드입니다. using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { public float Speed = 10.0f; public float rotateSpeed = 10.0f; public float jumpForce = 1.0f; // 점프하는 힘 Rigidbody body; // 컴포넌트에서 RigidBody를 받아올 변수 float h, v; // 유니티 실행과 동시에 한번 실행되는 함수 void Start() { body = GetComponent(); // GetComponent를 활용하여.. 이전 1 다음