my code is this
Quaternion q = Quaternion.AngleAxis(Time.deltaTime * 10f, Vector3.up);
transform.rotation *= q;
but this rotate local y axis, how convert this code to rotation global y axis?
my code is this
Quaternion q = Quaternion.AngleAxis(Time.deltaTime * 10f, Vector3.up);
transform.rotation *= q;
but this rotate local y axis, how convert this code to rotation global y axis?
resolved.
Quaternion q = Quaternion.AngleAxis(Time.deltaTime * 10f, Vector3.up);
transform.rotation = q * transform.rotation;
function Update() {
transform.RotateAround (Vector3(0, 0, 0), Vector3(0, 1, 0), 1);
}
to do what your saying this would be my method but i wouldn't know how to do it using quaternion
hope it helps anyway