유니티 Pendulum (추) 만들기
Quaternion start, end; [SerializeField, Range(0.0f, 360f)] private float angle = 90.0f; [SerializeField, Range(0.0f, 5f)] private float speed = 2.0f; [SerializeField, Range(0.0f, 10.0f)] private float startRot = 0.0f; //start position void Start() { start = PendulumRotation(angle); end = PendulumRotation(-angle); } private void FixedUpdate() { startRot += Time.deltaTime; transform.rotation = Qua..
Unity/Lab
2020. 8. 22. 21:58