unity eulerangles to quantarion code example
Example: how to turn 3 floats into quartenion
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
// A rotation 30 degrees around the y-axis
Quaternion rotation = Quaternion.Euler(0, 30, 0);
}
}