Setting Camera Limits
CreatiCode last edited by info-creaticode
You can set limits to an orbit camera using this block:
- Radius Min/Max: These 2 numbers set the minimum and maximum distance between the camera and its target point. For example, if you set them to 300 and 400, then you can not zoom the camera towards the target point closer than 300 units, or further away than 400 units.
- Visible Range Min/Max: These 2 numbers control the range of objects in the scene that are displayed in the camera. For example, if we set them to be 5 to 1000, then any object that is closer than 5 units to the camera or further away than 1000 units from the camera will not be shown in the camera.
- V-angle Min/Max: These 2 numbers control the V-angle of the camera. By default it is between 0 and 180, which covers all angles. However, if you set it to a smaller range, such as between 45 and 90 degrees, then the camera can not tilt above or below this range:
- Pan/Rotate Speed: The last 2 inputs control how fast you can manually shift or rotate the camera. The larger these numbers, the faster the camera will move. For example, here is the difference between a panning speed of 500 vs 5000: