What would the code be for making an object spin around its Y Axis. I’ve tried a few different things and can’t get it. Thanks!
Look at the Rotate() method for the Transform class. It has an example rotating round the x-axis. For the y-axis
// Slowly rotate the object arond its Y axis at 1 degree/second.
transform.Rotate(0, Time.deltaTime, 0);
To rotate faster just multiple Time.deltaTime above by how many degrees/second you want it to spin.
Oh, thanks. That’s just a little different from what I’ve been trying.