chandlerprall / Physijs

Physics plugin for Three.js
MIT License
2.75k stars 455 forks source link

Encounter a problem when using the setup example #301

Closed xjh666 closed 6 years ago

xjh666 commented 6 years ago

Hello, I am new to Physijs. I encountered a problem then I use the example code of BasicSetuphttps://github.com/chandlerprall/Physijs/wiki/Basic-Setup.

THREE.WebGLRenderer 88 physijs_worker.js:243 Uncaught Error: Uncaught SyntaxError: Unexpected end of input at Object.public_functions.init (physijs_worker.js:243) at self.onmessage (physijs_worker.js:1412) public_functions.init @ physijs_worker.js:243 self.onmessage @ physijs_worker.js:1412 physijs_worker.js:95 Uncaught TypeError: Cannot read property 'setIdentity' of undefined at createShape (physijs_worker.js:95) at Object.public_functions.addObject (physijs_worker.js:332) at self.onmessage (physijs_worker.js:1412)

However, I can run the code in the examples folder. Can anyone help me with it? Thanks!

xjh666 commented 6 years ago

The link is https://github.com/chandlerprall/Physijs/wiki/Basic-Setup