✅ 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 !
4 Replies
$code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
If your code is too long, post it to: https://paste.mod.gg/lol did you just $ code yourself
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.