Answers for "unity rotate vector to direction"

C#
11

unity rotate vector

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

unity rotate vector

V1 = V2.normalized * V1.magnitude; // direction from V2, length from V1
Posted by: Guest on March-23-2022

C# Answers by Framework

Browse Popular Code Answers by Language