How can i make a camera like in sandbox

Hello. When I zoomin the camera in the sandbox with the middle mouse button, it enters the mesh. On the babylon site I coded myself, when the arcrotatecamera gets zoomin to the mesh, it makes the meshes transparent. How do I make the camera move like in the sandbox?

Mysite:

Sandbox:

Did you try lowering your minZ-property of camera?

Example code:

camera.minZ = 0.01; // value that suits your object size
3 Likes

it solved the problem thank you very much

1 Like