Local rotation constraint

Hi! I’m trying to lock y and z rotations of rigidbody. Using of rigidbody.constraints has no effect because it locks rotations around world axises. How can I lock rotations in the object’s space?

Thanks

I have the same problem with it :frowning: i make a new post about it in unity wishlist topic.

edit:
i made a feedback here:
http://feedback.unity3d.com/forums/15792-unity/suggestions/1563777-rigidbody-local-constraints