✅ C# unity rotation clamping.
So I want it to be able to rotate in a 180 degree angle from the left side and 180degree from the right side.. depending on where my mouse is at and which direction i'm facing. Basically limiting the angles the player can have depending on which side hes facing.
The right side (changeDirection.x == 1) works.
The left side (changeDireciton.x == -1) doesn't work.
Any help or code rewrite suggestion appreciated !
The right side (changeDirection.x == 1) works.
The left side (changeDireciton.x == -1) doesn't work.
Any help or code rewrite suggestion appreciated !