The Roblox Camera Controller clips with Terrain if you go close enough.
How can I fix this? Is there a way to increase the “Size” of the Camera for Collision purposes?
The Roblox Camera Controller clips with Terrain if you go close enough.
How can I fix this? Is there a way to increase the “Size” of the Camera for Collision purposes?
There’s no way to increase the ‘size’ of the camera, but I think you could probably achieve a fix for this with some calculations that offset the camera from things it collides with slightly.
You could raycast from the player to the camera’s current position, and if anything is hit, set the player’s CameraMaxZoomDistance to the magnitude of the ray, with a slight reduction (something like .25 - .5 studs) to account for the clipping.
You could create a small checkpart that is always positioned at the camera’s cframe and if it is in the ground then make it go up or move it until its good and then change the camera’s cframe to the part’s cframe (after changing it). That’s how i would do it