In unity3d, how can I set rotation angle constraints to a sphere along the x and y axis'? For example, if I want the sphere to only rotate up along the x axis 90 degrees, how can I prevent it from going any further than that? I am using a character controller to control my sphere. It can only rotate +/- a certain angle.