Hello! I’m not understanding how rotation exactly works.
In Laser Defender, for the spinning bomb object we’ve used the method transform.Rotate(0, 0, speedOfSpin * Time.deltaTime)
From what I understood the third parameter of the Rotate method is the Z-axis which is from a 3D environment but Laser Defender is 2D, so my question is why is it done like this?
I come from a GameMakerStudio (2d engine) background and I used to do rotation by changing the angle of a sprite.
I’ve noticed there is another method in the Unity documentation (Transform section) which uses angles, I thought we were supposed to use this one.
public void Rotate(Vector3 axis, float angle)