Answers for "convert vector3 to quaternion unity"

3

how to convert vector3 to quaternion

Quaternion rot = Quaternion.Euler(V3.x, V3.y, V3.z);
Posted by: Guest on July-05-2020
0

get quaternion from vector unity

Quaternion rotation = Quaternion.LookRotation(Vector3 forward, Vector3 up);
Posted by: Guest on July-18-2021
0

Convert vector3 to Quaternion Unity

using UnityEngine;
public class rotation_demo : MonoBehaviour
{
    Quaternion rot;
  
    void Start()
    {
        rot.eulerAngles=new Vector3(45,0,90);
    }
}
Posted by: GonaRip on June-22-2022

Browse Popular Code Answers by Language