a guest Mar 26th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- float speed = 0.1f;
- Vector3 destinationRotation = new Vector3(100.0f, 203.0f, 202.0f);
- private void Update()
- transform.rotation = Quaternion.Lerp(transform.rotation, Quaternion.Euler(target), Time.deltaTime * speed);
RAW Paste Data