So this is what I have scripted, and it more or less works for now.
I was just trying to make it work in playmaker.
public class Controller : MonoBehaviour {
public Transform target;
public float speed;
void Update()
{
float step = speed * Time.deltaTime;
transform.rotation = Quaternion.RotateTowards(transform.rotation, target.rotation, step);
}
}
The target is controlled by gui sliders right now and the below script.
transform.rotation = Quaternion.Euler(-Rot_X, -Rot_Y, -Rot_Z);