-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browserify Integration is not working (PhysijsWorker is not a constructor
)
#2
Comments
Ah, I think I may have misconfigured the Browserify variant -- per the current docs at least, calling This was primarily used in LTLMoPWeb3D which has been using Webpack in recent years, so I didn't extensively test the Browserify integration, my bad. Should probably add some small unit tests to cover this. I'm not at my computer right now, but if you need a quick fix and want to try on your own you can edit the Also I don't believe the issue on the physijs core repo is relevant since this issue is with this library's browserify integration (and physijs core does not have one, hence the existence of this library) |
Okay, I have a flight leaving from Kathmandu, Nepal today to San Francisco, USA. Including layover its, a day and a half. If I have time or after I get back into San Francisco I will investigate further if it isn't fixed and see if I can fix it myself and do a PR. Physijs is perfect for my Three.js project and I look forward to getting this problem solved for myself and everyone else! Thanks for making the NPM Module. :) |
PhysijsWorker is not a constructor
)
Thanks for the effort and you're welcome! |
Hello I followed the instructions to install for browserfy via npm module.
npm install -S physijs-webpack
npm install -D webworkify
const Physijs = require('physijs-webpack/browserify');
...
const scene = new Physijs.Scene({ reportSize: 4, fixedTimeStep: 1/60 });
However, I get the following error:
Uncaught TypeError: PhysijsWorker is not a constructor at new Physijs.Scene (bundle.js:61514) at Object.2../src/classes/audio (bundle.js:207) at o (bundle.js:1) at r (bundle.js:1) at bundle.js:1
The error occurs here:
Really looking for a solution here!
I am building this project https://github.com/mpaccione/everest_flight_sim and have found building my own physics engine is beyond my current skills.
The text was updated successfully, but these errors were encountered: