Answers for "unity add spin to object"

C#
2

object spin unity

void FixedUpdate()
{
	gameObject.transform.Rotate(0, 0, +1)//Rotate(x, y, z) + = add one per update
}
Posted by: Guest on October-04-2020
0

object spin unity

transform.rotation = new Quaternion(rotx, roty, rotz, rotw);
Posted by: Guest on March-07-2022

C# Answers by Framework

Browse Popular Code Answers by Language