How to find the angle of a rotation?


I would like to add force depending upon the angle of rotation of the rigidbody. The rigidbody also has a hinge joint.

Hence how would I find the angle across ‘x’ or ‘y’ or ‘z’ angle.

Thanks guys.

Well the vector of rotation is available in transform.forward which is probably what you want for adding a force. You can get the angles from transform.rotation.eulerAngles