Rotate to a set degree then reverse and repeat in Unity
- by Ryan
and thank you for your time.
I'm making my first project in Unity, a simple game where touching objects adds points to the players score.
I'd like the objects to have a pleasant back and forth swaying animation on the Z axis. Nodding to the right 30 degrees, then to the left 30 degrees, on and on.
Here's what I've got...
public class Rotator…