fabmax / physx-js-webidl

Javascript WASM bindings for Nvidia PhysX
MIT License
119 stars 28 forks source link

about Flag #19

Closed lo-th closed 1 year ago

lo-th commented 1 year ago

I see problem, is not a bug just a recommandation on Module definition you can have multiple export of same name

for example PhysX.eFORCE is Module['eFORCE'] = _emscripten_enum_PxForceModeEnum_eFORCE(); 0 but also Module['eFORCE'] = _emscripten_enum_PxArticulationCacheFlagEnum_eFORCE(); 8 Module['eFORCE'] = _emscripten_enum_PxArticulationDriveTypeEnum_eFORCE(); __ 0

so take care to always use full definition PhysX._emscripten_enum_PxForceModeEnum_eFORCE(); istead of PhysX.eFORCE

that true for many flag ( eX, eTWIST ... )

fabmax commented 1 year ago

Yes I know, unfortunately this is generated by emscripten. I opened an issue about that a while ago but it never got fixed.