I constantly rotate an object with
transform.Rotate(new Vector3(0,1,0));
now, how can I rotate it only with the help of a quaternion? I will be happy to help
I constantly rotate an object with
transform.Rotate(new Vector3(0,1,0));
now, how can I rotate it only with the help of a quaternion? I will be happy to help
Hi, you can try something like this:
float x;
void Update ()
{
x += Time.deltaTime * 10;
transform.rotation = Quaternion.Euler(0,x,0);
}
More Info here: