Advertisement
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);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement