Answers for "unity rotate around pivot on an angle"

C#
1

unity rotate around pivot c#

public Transform customPivot;

void Update()
{
    transform.RotateAround(customPivot.position, Vector3.up, 20 * Time.deltaTime);
}
Posted by: Guest on August-03-2020
0

unity rotate direction by angle

vector = Quaternion.AngleAxis(-45, Vector3.up) * vector;
Posted by: Guest on June-17-2021

C# Answers by Framework

Browse Popular Code Answers by Language