juanmajr93 Posted February 5, 2017 Share Posted February 5, 2017 Hi all, I am using Universal Camera and I would like to improve differents features of it. This is the definition of my camera: var camera = new BABYLON.UniversalCamera("universalCamera", new BABYLON.Vector3(600, 200, -500), scene); camera.setTarget(new BABYLON.Vector3(0,0,0)); camera.speed = 1.5; camera.checkCollisions = true; camera.ellipsoid = new BABYLON.Vector3(1, 1, 1); camera.attachControl(canvas); The first question is about collisions. When I move arround the scene and I go to some building of, all the collisions are calculated and my camera is very slow. Are there any way to optimice this operation? When I am near of the different elements of my scene the movement of camera is very bad. The second question is relative to control of camera. I want change the arrow keys to "a","s","d" and "w". Do you know if is it possible? Thanks Quote Link to comment Share on other sites More sharing options...
Dad72 Posted February 5, 2017 Share Posted February 5, 2017 You will find the information on the camera here for the keys of the keyboard: http://doc.babylonjs.com/tutorials/cameras for the collision: http://doc.babylonjs.com/tutorials/cameras,_mesh_collisions_and_gravity Octree can help you optimize your http://doc.babylonjs.com/tutorials/optimizing_your_scene_with_octrees GameMonetize 1 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.