Answers for "unity quaternion euler"

C#
1

Quaternion.Euler not working in unity

Quaternion initialRot = objToRotate.transform.rotation;     
     objToRotate.transform.rotation = initialRot * Quaternion.Euler(90f, 0, 0);
Posted by: Guest on December-18-2020
0

quaternion euler

using UnityEngine;public class Example : MonoBehaviour
{
    void Start()
    {
        // A rotation 30 degrees around the y-axis
        Quaternion rotation = Quaternion.Euler(0, 30, 0);
    }
}
Posted by: Guest on February-09-2020

C# Answers by Framework

Browse Popular Code Answers by Language