Is any physics engine available for a Typescript NPM project (with React)?

I have been trying to include Cannon and Ammo physics engines as part of my project, but so far I have troubles getting it to work. I have tried installing kripken/ammo.js but that won’t show up. The errors I got are along the lines of:

‘Ammo is not defined’
‘Cannon is not defined’

Has anyone managed to get Cannon/Ammo working with Typescript on Node/NPM?

Nevermind, I got Cannon working after doing what the guy did in this post:

Sorry for re-posting

2 Likes