Multiplying the rotation of an object

Hey, so quick question, how do i multiply rotation of an object by any number? For example, i wanna flip the rotation, just by multiplying it by -1. So bassically, i dont know how to check whats the current rotation of an object. Sounds simple, yet cant figure it out…

-Thanks!! :))

I would use EulerAngles() to know current rotation values.

Why not just add 180?

Thats the problem, i understand how eulerAngles work, but i dont know how to use it to check whats the CURRENT rotation of an object. I just simply want to see my current z rotation and multiply it by -1.

Thats not how it works for me. Yet, still i wouldnt know how to add “180”, thats my question.

Vector3 newEulerAngles = transform.eulerAngles;
newEulerAngles.z += 180f;
transform.eulerAngles = newEulerAngles;

Yes, thanks. :slight_smile:

YEEESS THANKS I´VE BEEN 3 HOURS SEARCHING FOR THIS SOLUTION XDDD