Hi,
I am trying to implement a feature where in, the meshes need to be fit to say 80% of the canvas size.
Created a playground in order to try this, when I double click, I try to zoom all.
http://www.babylonjs-playground.com/#RXUCB#0
I require help in finding a relation between bounding info of mesh, with the width and height of canvas so that
1. the mesh should be centered in the canvas
2. the mesh should fit 80% area of the canvas.
I am not sure if this was asked in older posts, please help.
Regards
Rajkumar