Hello.
I am wondering how to set a minimum and maximum local rotation for an object in BGE so that the object cannot rotate further than 90 degrees in either direction. Any advice is greatly appreciated.
How are you currently rotating things?
you could have used the search function.
take a look here:
I’m using a joystick to rotate things.
same principle, just the keys are controller sticks.
There’s a limit rotation option for armature under a tab with bone and a chain link that shows up once You enter a pose mode of the armature.
This one worked out very well for one of my projects armature neck bones that stops characters neck bone to turn 180 degrees if clicked behind characters back or more than a certain degrees in the same time tracking towards where is the main mouse cursor. I guess i am going to use this stuff for moving hands once a character is in a state of casting spells with their hands reaching out forward and tracking the cursor.
Think about a layer cake that is cut from the centre outwards. Stuff like sensors for collisions could be parented to the pieces of cake to make seperate body turns as the main tracking parts reach certain degrees for other body parts to make some turns and stuff in order to get it well done.