Physijs icon indicating copy to clipboard operation
Physijs copied to clipboard

Uncaught TypeError: class constructors must be invoked with 'new' when trying to create Physijs Scene

Open NabeelUppel opened this issue 3 years ago • 3 comments

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

NabeelUppel avatar May 19 '21 21:05 NabeelUppel

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?!

jas-singh-code avatar May 28 '21 21:05 jas-singh-code

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

aaronrobertson222 avatar Jun 18 '21 01:06 aaronrobertson222

Thanks @aaronrobertson222 . Here is the direct link to Three.js 0.119.0 https://unpkg.com/browse/[email protected]/

Biswayan375 avatar Sep 18 '21 04:09 Biswayan375