little question(transform.rotate)

hello guys, i have a little question to ask,
when this(script line) is called, the gameObject rotation in the inspector shows 0,180,0
when it’s called back, the gameObject rotation in the inspector shows 0,0,0
nothing is wrong (or maybe it is lol) but I just wonder why

transform.Rotate(new Vector3(0f,180f,0f));

Because rotate does not mean “set the rotation,” it means “rotate whatever it is by this amount”

oh ok thanks dude

1 Like