Unity Rigidbody zamraża całą obrót
rigidbody.constraints = RigidbodyConstraints.FreezeRotation;
mehmet köksal
rigidbody.constraints = RigidbodyConstraints.FreezeRotation;