Answers for "unity rotate vector3 around point"

C#
6

unity rotate vector

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

rotate vector3 around pivot point unity

public Vector3 RotatePointAroundPivot(Vector3 point, Vector3 pivot, Vector3 angles) {    return Quaternion.Euler(angles) * (point - pivot) + pivot;  }
Posted by: Guest on December-03-2020

C# Answers by Framework

Browse Popular Code Answers by Language