Azariel

Simulating frames/world states as quickly as possible?

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?

Share this post


Link to post
Share on other sites

So assuming that I have 5 blocks in the world initially set to be in mid-air and there is gravity, if I call "mesh.computeWorldMatrix" on all of them 10 times, they will all have moved downward the equivalent of 10 frames?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.