Describe the bug
i try to run enable3d in WebWorker.
create a AmmoPhysics with headless mode, and run in the WebWorker (use Comlink).
a error ReferenceError: window is not defined happend, it case from follow code :
webpack://PhantasySpatiotemporalSimulationStandaloneStarter/node_modules/@yandeu/tap/lib/eventMatrix.js
i think that, if we not init control , we not need the Tap .
seems like it's a bug ?
BTW:
i want to run the ammo.js in webworker to offload heavy task to webworker. i try to create a AmmoPhysics and a Three.Scene in worker, and write a transfor layer to sync the Mesh state between main thread and worker.
i try to find a way to direct read Geometry from ammo.js, but no way to do that (right?). then i use the way that make 2 same Scene on worker and main to do that. (only different is that the worker side not create the renderer).
is any other way to do it ?
Describe the bug
i try to run enable3d in WebWorker.
create a
AmmoPhysicswithheadlessmode, and run in the WebWorker (use Comlink).a error
ReferenceError: window is not definedhappend, it case from follow code :i think that, if we not init control , we not need the Tap .
seems like it's a bug ?
BTW:
i want to run the ammo.js in webworker to offload heavy task to webworker. i try to create a AmmoPhysics and a Three.Scene in worker, and write a transfor layer to sync the Mesh state between main thread and worker.
i try to find a way to direct read Geometry from ammo.js, but no way to do that (right?). then i use the way that make 2 same Scene on worker and main to do that. (only different is that the worker side not create the
renderer).is any other way to do it ?