dimforge / rapier

2D and 3D physics engines focused on performance.
https://rapier.rs
Apache License 2.0
3.97k stars 248 forks source link

Bug when importing Cylinder or any shape in JS #504

Closed Luis-Enrique93 closed 1 year ago

Luis-Enrique93 commented 1 year ago

just this line of code will break the website

const shape = new RAPIER.Cylinder(0.1, 0.1)

i've tried many ways to import like

import { Cylinder, Rotation, Vector } from '@dimforge/rapier3d'

or

import * as RAPIER from '@dimforge/rapier3d'

or different webpack configurations, but the error it's always the same

rapier

Luis-Enrique93 commented 1 year ago

nevermind i fixed some classes can be imported, but others must necessarily be accessed from the instance. i can live with that.