Answers for "rotate vector3 around point unity"

C#
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
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

C# Answers by Framework

Browse Popular Code Answers by Language