Yes I know it's a stupid question but ever since I only know LUA I'm not so good with Java...
Is there a between command? Something like this;
Function Update () {
if (eulerAngles "Between 10 and 175")
eulerAngles = 10;
if (eulerAngles "Between 350 and 175")
eulerAngles = 350;
}
As you can see I want a maximum and minimum angle on my object. I this is what I came up with. If you have an other answer, piece of script, please give it to me. Although I would like to know a way to use some kind of between command.
Oh and, please only post a script of which you are certain that it will work. I asked similar questions like this one before but I didn't get a straight or working answer out of one of those. So I just ask again.
You never just ask people to make your own scripts. That's just rude.
– anon20566073I'm a bit confused. You said you want a min/max limit. The possible numbers are: (-infinity)-10 and 350-(infinity). Is that what you want?
– Bunny83