How to limit the maximum value of camera zoom

There is such a scene, I don’t want the user to zoom very much through the mouse wheel, I want the camera to always keep a certain distance from the target model, can anyone give me detailed help in this regard? What I am currently using is: camera.wheelDeltaPercentage = 0.01,this has a little effect, at least to ensure that the lens will not zoom through the ground, but there is still a problem of wearing the mold

Hello and welcome to the Babylon community! :smiley:

You can use lower/upperRadiusLimit, and even add BouncingBehavior for a cool “bumping” effect: Camera Behaviors | Babylon.js Documentation (babylonjs.com)

1 Like

The bouncing behavior does take effect,thanks~

1 Like