Limit Rotation withusing configurable joint or Rigid bodys

Hi Community

Just a simple one how do you limit a rotation around a certain Axis script wise without using configurable joints or hinge joints or rigid bodys.

As am asumeing the more Rigid bodys in the scene the more proccessor intensive it is

I am trying to limit the rotation of a rudder so it is only able to rotate 180 degrees.