saharan/OimoPhysics

How to integrate

Dev-MarkoF opened this issue · 0 comments

I want to use/integrate OimoPhysics within a certain typescript game engine, but i have some difficulties using it properly.

I want to use the type definition file so as i see it i have to use the javascript module export of OimoPhysics. But if i use it that way i either get errors like "unexpected token 'export'" from the last line of the OimoPhysics.js or if i import it as type="module" i get no errors but i can only run it on a server but it does nothing.

If i use the standard OimoPhysics.min.js and use window.OIMO instead of importing it. I can use Oimo and test it and i really like it. But in that case i have no Type Definitions.

I would appreciate every help. I tried many things revolving around typescript modules but it might be a specific thing with OimoPhysics since the Typedefintion part seems quite recent.