Camera control

How can I block the camera from moving below ground level? Some existing projects have this functionality.

sure, here is an example for it: camera restriction - CodeSandbox

Thanks for the answer. That is one of the possibilities but can I do this in GH definition?

At the moment, this needs to be done using the API. We might add a way to control this in the future using viewer settings and/or Grasshopper components.