How to clamp the rotation between two values in unity 3d How can i clamp the rotation of cube between two values and then rotate between them gradually Details Of what i Want When I press A or D keys cube should Rotate On Y Axis from 0 to 13 deg gradually and when key is released cube back to straight position