question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Physics in a separate worker process

See original GitHub issue

Ok, I’m probably not the only thinking about that idea, but I would still like to hear the feedback/ideas/concerns of others who may have had the same thought.

I did actually got started on it, but haven’t made it far yet. Still, I would like to hear the feedback first, before I spend hours and hours on it, later realising it’s not possible because of xyz.

The issues I can think of right now:

  • Async data (position, rotation, linear & angular velocity) – I guess that could be simply solved by having a dummy/proxy physics impostors on the main thread, that would only update the data
  • Duplicate code - it would need to require to create separate version of each PhysicsPlugin as a worker version – not really sure if it would be possible to just simply reuse the PhysicsEngine container/wrapper on the worker side? Technically it seems it would be possible with webpack worker-loader (https://github.com/webpack-contrib/worker-loader#examples), but not fully sure yet.

I’m sure there were/must have been more issues related to workers, as I remember babylon having a worker for the native collisions, which were discontinued I think?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:19 (17 by maintainers)

github_iconTop GitHub Comments

0reactions
thomlucccommented, May 14, 2020

Closing for no-activity. Feel free to re-open.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Definition and Mathematics of Work - The Physics Classroom
When a force acts upon an object while it is moving, work is said to have been done upon the object by that...
Read more >
arXiv:2207.08598v1 [physics.data-an] 18 Jul 2022
of 10 different nodes are used of which three nodes are for service and 7 nodes are utilized as worker nodes. Central processing...
Read more >
construction physics–understanding the flows in a ...
This paper introduces the concept of Construction Physics as a more comprehensive way of understanding the construction process from a flow perspective.
Read more >
How to use Process and Physics Process correctly - YouTube
Ever been confused about Process and Physics Process with Godot? It can be confusing. I have tried to shed some light on it....
Read more >
Process Physics: A short introduction - YouTube
This is a 4 minute introduction to Process Physics -- a way of doing physics in which nature is being modeled as one...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found