Disallow to go inside the model in shortcode wordpress

Privet Andrei,
Question about Babylon’s, In preview sandbox, I was not able to go inside the model, but I have embed shortcode in Wordpress website and able to go inside the model when zoom in. Also background on model is different

Thanks, ALEX D.

I am not sure what you mean about the wordpress part ???

If you need to adjust camera behaviour according your scene and canvas size, use camera limits.
So in “plain” Babylon.js it would be like
camera.lowerRadiusLimit = 40; // In order to prevent camera from moving inside the model (in default position at least) camera.upperRadiusLimit = 130;

1 Like