Jump to content

Simulating frames/world states as quickly as possible?


Azariel
 Share

Recommended Posts

So I was wondering if it was possible to have Babylon simulate world states faster than they can be rendered to the screen. For example, if I wanted to create thousands of towers of blocks at random, and test if they were balanced or unbalanced (i.e. that they would stay upright on their own, even under the influence of gravity) I could do that with what I know of Babylon right now, but it would require leaving it to run for a very long time. Is there a way to have it step through the world state without needing to render to the screen, and without taking as long as a frame ordinarily would?

Link to comment
Share on other sites

Yes you can do that.

Just manually call the function you need (like create all your blocks, call mesh.computeWorldMatrix, etc..)

If no need to render then you can do all that you want manually

Link to comment
Share on other sites

  • 2 weeks later...

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...