Answers for "unity rotate vector around axis"

C#
6

unity rotate vector

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

unity rotate around axis

transform.Rotate(axis, degrees);
Posted by: Guest on June-08-2020

C# Answers by Framework

Browse Popular Code Answers by Language