Hello everyone, I need help with coding and I’ve no idea how to do it. Basically, I don’t want my “First Person Controller” (standart assets/character controller) to be able to turn right. Now I understand it works as X and Y but is there any way I can disable for it to turn right, and only turn left (X-wise. I want Y to stay as it is)
I’ve seen and tried changing “Minimum X, Maximum X” but it doesn’t work. It always lets player turn right and left.
Setting
– tanoshimiminimumXandmaximumXwill have no effect because they're not used in your script anywhere. You need to add a clamp statement to the rotationX in the same way that you've clamped rotationY between minimumY and maximumYThank you for your comment, I've edited my code and it's "half-working" right now but still not the result I want. Mouse doesn't turn right when we don't turn left. But if mouse turns left, we can go right. Till the point in the beginning, where mouse can't turn right. :/
– umrkygsz