You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I understand, Ammo.js adds some of its own usability functions on top of the idl bindings such as Ammo.wrapPointer and Ammo.addFunction. If you want to use these function with TypeScript you must add definitions to them manually to the ammo.d.ts file. I was able to use these functions successfully by adding these type definitions to the ammo.d.ts manually:
Ideally, ammojs-typed would generate all of the usability functions of ammo.js automatically to the ammo.d.ts files. Could this be possible? I tried adding these functions to the idl file but there seems to be no way to add functions to the "global space", everything must be wrapped using the interface Something { ... }; syntax.
The text was updated successfully, but these errors were encountered:
As far as I understand, Ammo.js adds some of its own usability functions on top of the idl bindings such as Ammo.wrapPointer and Ammo.addFunction. If you want to use these function with TypeScript you must add definitions to them manually to the
ammo.d.ts
file. I was able to use these functions successfully by adding these type definitions to theammo.d.ts
manually:Ideally, ammojs-typed would generate all of the usability functions of ammo.js automatically to the
ammo.d.ts
files. Could this be possible? I tried adding these functions to the idl file but there seems to be no way to add functions to the "global space", everything must be wrapped using theinterface Something { ... };
syntax.The text was updated successfully, but these errors were encountered: