Jump to content

WebWorker error


Recommended Posts

Hi, today I want to test webworkers in my game, but after enable webworker in scene i got error:

Uncaught TypeError: Failed to execute 'postMessage' on 'DedicatedWorkerGlobalScope': The 2nd argument is neither an array, nor does it have indexed properties.
    at r.onInit (blob:http://localhost:3000/97cbf9d7-d3d9-4f64-87d0-f42891dbe7b6:1)
    at s (blob:http://localhost:3000/97cbf9d7-d3d9-4f64-87d0-f42891dbe7b6:1)


Link to comment
Share on other sites

I just saw next problem with webworkers. I using moveWithCollision method to player movement. After set flag to enable on workerCollisons on scene my mesh don't run. after set disable mesh moving without any problem. I can not reproduce that on PH, brcause i don't know how i can include bjs with workers.


Link to comment
Share on other sites

  • 6 months later...

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