[email protected] Posted November 6, 2014 Share Posted November 6, 2014 There is no zooming on scrolling mouse wheel in the Editor. I added the following code to the beginning of createReleaseScene() (which is called in index.html): //Adding an Arc Rotate Camera var canvas = document.getElementById("renderCanvas"); var camera = new BABYLON.ArcRotateCamera("Camera", 0, 0.8, 100, new BABYLON.Vector3.Zero(), scene); camera.attachControl(canvas, true); But it does not work. Any advice? -Thanks Quote Link to comment Share on other sites More sharing options...
Do_it Posted November 6, 2014 Share Posted November 6, 2014 hi, try scene.activeCamera = camera;scene.activeCamera.attachControl(canvas); Quote Link to comment Share on other sites More sharing options...
[email protected] Posted November 6, 2014 Author Share Posted November 6, 2014 Hi Do_it, It works! Thanks a lot for the suggestion. Now, do you or anyone know if Babylon.js has a built-support for Panning operation? i.e., Pan while mousewheel is being held down and dragged? Thanks,Dan Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.