ian Posted June 27, 2017 Share Posted June 27, 2017 Can anybody explain me why we have babylon.worker.js? What is differecnce betwee babylon.js? Greetings Ian Quote Link to comment Share on other sites More sharing options...
JohnK Posted June 27, 2017 Share Posted June 27, 2017 I think the babylon.worker.js uses web workers to run some routines in a background thread whereas babylon.js just runs the code without threads. This is a case where I know the right words to put in a sentence but am not entirely sure I know exactly what they mean. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 27, 2017 Share Posted June 27, 2017 This is for collision with webworker, but I find that collisions are extremely buggy. Slowing down a character who walks on the ground, and with time the character no longer advances as if he were held back by a force or extreme gravity that increases with time. In short, I came back with babylon.js and everything works fine. So I give up webworker which has a catastrophic effect. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
ian Posted June 30, 2017 Author Share Posted June 30, 2017 @RaananW RaananW can you say anything about this topic? Is babylon.worjer.js this about your blog https://blog.raananweber.com/2015/05/26/collisions-using-workers-for-babylonjs/ Do we need babylon.worjer.js or not? Is babylon.js enougt? Are physics workers implemented in babylon.js or in babylon.worker.js? Do we need both babylon.js and babylon.worker.js if we want to use scene.workerCollisions = true; greetings Ian Quote Link to comment Share on other sites More sharing options...
alexoy Posted May 31, 2018 Share Posted May 31, 2018 Hello! This is an old topic, but at this moment I'got the same question. In the repo I see that babylon.worker.js is regularly being updated, but docs say that the only thing we need to do to enable web workers is to set scene.workerCollisions = true (babylon.worker.js is mentioned nowhere). For example here: https://doc.babylonjs.com/babylon101/cameras,_mesh_collisions_and_gravity#web-worker-based-collision-system-since-21 As this topic is without answer - the question is the same - do we need babylon.worker.js and when if Yes? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 1, 2018 Share Posted June 1, 2018 You need to reference babylon.worker.js only if you use scene.workerCollisions = true I'll fix the doc to mention that Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.