Sandbox Camera Auto Radius and Target

Hello,

I’m working on a project that renders a model based on the user input, so how can i have the camera to be in the same state is in babylonjs’s sandbox, whatever is the size of the model the radius limits get automatically set properly and the camera looks into the model’s center, is there a way to have it exactly the same as the sandbox ?

Thank you.

This is what the sandbox uses: Camera Behaviors | Babylon.js Documentation

2 Likes

Thank you for your help yes i tried using this and it worked i just needed to set the camera’s target to be the model :smiley: