Physics in a separate worker process
See original GitHub issueOk, 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 withwebpack 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:
- Created 5 years ago
- Comments:19 (17 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://playground.babylonjs.com/#N7PGG3#2
Closing for no-activity. Feel free to re-open.