Physijs
Physijs copied to clipboard
Uncaught TypeError: class constructors must be invoked with 'new' when trying to create Physijs Scene
I keep getting this issue when I try to create a scene using
scene =new Physijs.Scene()
The console throw an issue on line 391 of physi.js
I keep getting this issue when I try to create a scene using
scene =new Physijs.Scene()
The console throw an issue on line 391 of physi.js
I have the same issue! for me it says line 512. Any solutions yet?!
I keep getting this issue when I try to create a scene using
scene =new Physijs.Scene()
The console throw an issue on line 391 of physi.js
I know this is 29 days old but check your Three.js version. Physijs hasn't been updated in a while and only works with older versions of Three as there have been changes to parts of Three.js. The Physijs examples are made with [email protected]
so try using that version. All though I will say the latest version of Three I was able to get the Physijs example running with was [email protected]
.
Thanks @aaronrobertson222 . Here is the direct link to Three.js 0.119.0 https://unpkg.com/browse/[email protected]/