fixed angle unity

Code Example - fixed angle unity

                
                        You must use the constraints or set freezeRotation=true