I'm struggling to rotate gameObject with joystick. The joystick send the json data included value of angle to gameObject. The gameOjbect should rotate itself when receive the Jsondata. However, i'm wondering how to rotate it by angle (0 to 360 degree) in unity because all i do know is using (Vector3) position below.
Quaternion.LookRotation
public static Quaternion LookRotation(Vector3 forward,
Vector3 upwards = Vector3.up);
In conclusion, all i want to know is rotating the gameObject by the angle.