Hi guys. I use this simple code
using UnityEngine;
using System.Collections;
public class RuotaCam : MonoBehaviour {
public Transform da, to;
public float speed = 0.1F;
void Start ()
{
}
void Update () {
transform.rotation = Quaternion.Lerp(da.rotation, to.rotation, Time.time * speed);
}
}
With this script my object turns clockwise… if I want that it turns anticlockwise? How can I do?
(I’m sorry for my english)