Jump to content

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

Link to comment
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.



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.

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.


  • Recently Browsing   0 members

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