Jump to content

juanmajr93
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...