Jump to content

Physics Worker


Recommended Posts

SetTimeStep 1/10 on phone with WebView Works smooth as 1/50 on desktop !!! Accuracy of physics work same. I verified this on My Project Perplexus. I have WebView for Android perplexus Project and with 1/10 It Works brilliant. On desktop It Works as fast as Real Perplexus If you ever try this Game. Try experiment on different devices with setTimeStep 1/10 or 1/5 for slower devices.

Link to comment
Share on other sites

7 minutes ago, Dad72 said:

Yes since version 2.1 Workers is supported for the Physics engines (oimo and cannon)  :

Tutorial: https://blog.raananweber.com/2015/05/26/collisions-using-workers-for-babylonjs/

To enable it to do:

scene.workerCollisions = true;  


Hello, but this if for the build in collisions right ?
I asking for the oimo or cannon plug-in is the "world.step()" function called inside a Worker ?

Link to comment
Share on other sites



Here is example of setTimeStep for physics. I did also as Dad72 say. But default 1/50 Works slow. The Real speed was when I add slider gui setings for setTimeStep. SetTimeStep is realy qul staff for slow phones WebView beleave me. If you dont try it

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