Need help in camera zoom

Hi,

In this sample,
https://www.babylonjs-playground.com/#ICZEXW#5

After particular point camera zooms into the object and shows the other side of the object.
I want to restrict zooming, so that it doesnot zoom into the object.
How to do this.? any camera API’s available for this?

hi
camera.lowerRadiusLimit = 5.1; for limit Radius
https://www.babylonjs-playground.com/#ICZEXW#217

Hi @nasimiasl ,
Thanks for the help.
How to arrive at the value of 5.1?
Because, I have different models with different depth values.

Thanks
Gopinath Vellingiri

that depend to target and mesh bounding box