Open Vinc3r opened 5 years ago
[{ exec: function () { new BABYLON.FreeCamera("camDev", BABYLON.Vector3.Zero(), _r.scene); } }, { "camDev": { "name": "camDev", "fov": 1.5, "speed": 0.2, "minZ": 0.01, "maxZ": 1000 } } ]
[ ] how to download file into a scene
_r.downloadScene({ scene : "scene.babylon", patch : [], ready : function() { } });
_r.downloadScene(options) options = loadingScreen? : boolean; ready? : Function; progress? : Function; error? : Function; scene? : string; assets? : string; patch? : any; addAllToScene? : boolean;
tip: set addAllToScene to true, use ready function to know when download is done
* [ ] change activeCamera on the fly
[ ] how to download file into a scene
_r.downloadScene(options) options = loadingScreen? : boolean; ready? : Function; progress? : Function; error? : Function; scene? : string; assets? : string; patch? : any; addAllToScene? : boolean;
tip: set addAllToScene to true, use ready function to know when download is done