Smooth rotation?

Hi, I am using this code to rotate an object based on touch.
MovementSign = 1 for anti-clockwise , -1 for clockwise and 0 for no rotation.

	// Update is called once per frame
	void Update () {
		transform.Rotate(0,0,(speed * touchScript.MovementSign) * Time.deltaTime);

It works fine but its not smooth at all, how can I make the object rotate smoothly?

void FixedUpdate () {
// Script stuff

This should work, but I’ve never worked on a mobile game, so I’m not 100% sure. Let me know if this helps :slight_smile:

You can use

transform.rotation = Quaternion.Slerp(from.rotation, to.rotation, Time.time * speed);