So here is what I am trying to achieve.
-
(This part I have done) Camera pitch and yaw is controlled by mouse x and y.
-
When The camera rotates i want the head to rotate with it. Limited by human movement, ie only able to look up down left right to certain angles
-
If rotation of head is less than 90 degrees left or right then just the head rotates
-
If rotation moves beyond 90 degrees but is less than 120 degrees the upper torso rotates.
-
If rotation goes above 120 degrees then the player turns in place.
This is for when the player is idle but if the player is moving forward then they should move relative to the direction the camera is facing.