Answers for "Unity how to rotate a vector"

C#
6

unity rotate vector

Vector3 rotated = Quaternion.AngleAxis(-45, Vector3.up) * vector;
Posted by: Guest on May-23-2020
1

unity rotate vector3

Quaternion rotation = Quaternion.Euler(x,y,z);
Vector3 myVector = Vector3.one;
Vector3 rotateVector = rotation * myVector;
Posted by: Guest on January-02-2021

Code answers related to "Unity how to rotate a vector"

C# Answers by Framework

Browse Popular Code Answers by Language