#can i prevent camera to go through model?
5 messages · Page 1 of 1 (latest)
you can do that if, instead of default "zooming" in (which actually moves the camera closer), you decrease camera fov
You can also use a raycast and stop the camera if it hits something.
If it's an object which doesn't change size then find a constant minimal distance. Otherwise you might update minimal distance every frame to appriopriate number
fixed with min and maxdistance