Returns a rotation that rotates z degrees around the z axis, x degrees around the x axis, and y degrees around the y axis.
// A rotation 30 degrees around the y-axis
var rotation = Quaternion.Euler(0, 30, 0);
no example available in C#
Returns a rotation that rotates z degrees around the z axis, x degrees around the x axis, and y degrees around the y axis.
// A rotation 30 degrees around the y-axis
var rotation = Quaternion.Euler(Vector3(0, 30, 0));
no example available in C#
Did you find this page useful? Please give it a rating: