Sign in to follow this  
Alex10

Optimization "height map" while driving and FreeCamera

Recommended Posts

I tried to make a simple FPS on the "height map".
I put an example  http://www.babylonjs-playground.com/?14#  freeCamera and set her property:

camera.checkCollisions = true;

then begin terrible brakes. Everything starts to work very slowly.

 

Is it possible as it is optimized?
 

Example:ws http://www.babylonjs-playground.com/#QHWP

Share this post


Link to post
Share on other sites
I have edite your scene.
that more your scene grow up with a lot of accidents (mountain, hill ...) and a very strong subdivision, detection of collision will be very costly calculated.
with what I did, the fps is still correct and you forget to apply gravity to the scene too.

 

http://www.babylonjs-playground.com/#QHWP#2

Share this post


Link to post
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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.