use-ammojs
use-ammojs copied to clipboard
is this project still going?
looks really really interesting! would you be interested to make this pmndrs official with more help and resources?
yes, I am still looking to solve the problem of more capable physics!
I also wouldn't mind this project getting more love at all, or making the (npm) name available for a better implemetation of the idea.
Out of curiosity what is your motivation for considering ammo? Mainly asking because there are also Javascript PhysX bindings available, which I probably would have considered more closely if I knew about them earlier.
@drcmda @notrabs : What are next steps to make this "pmndrs official" with more support š
I'm loving use-cannon so far and would appreciate the support for soft bodies and other features provided by Ammo (Bullet) over Cannon-ES.
I'd also be interested in contributing, with my experience in JavaScript, TypeScript, React, and recently Three.js. Thank you both for building such awesome projects! š
there are also Javascript PhysX bindings available, which I probably would have considered more closely if I knew about them earlier.
@notrabs : Are you referring to https://www.npmjs.com/package/physx-js ?
@notrabs sorry i must have missed the notification, too much going on. the main problem with cannon is performance, it just doesn't keep up as the amount of items increases and that seems to be less of an issue with ammo. if these libraries are being developed on poimandres it might help to attract more devs, give it more attention, you can add your donation channels which might see more people chipping in, etc.
Iād love to contribute to this project, potentially this weekend. Would you be open to reviewing PRs or is this project no longer being maintained and should be forked? Regardless, thanks for getting this started!
Update: I've made progress updating use-ammojs
to be a more feature complete alternative to use-cannon
, such as adding constraints API and much, much more.
Check out:
- Examples/Demos: https://use-ammojs-git-feat-examples-glavin001.vercel.app/
- API Docs: https://use-ammojs-git-feat-examples-glavin001.vercel.app/docs/index.html
- Super rough work-in-progress Pull Request: https://github.com/Glavin001/use-ammojs/pull/1
I need this for my own project switching from Cannon-ES to Ammo.js so I've temporarily published to @glavin001/use-ammojs
After using it for the past few weeks, I do think use-ammojs
would be an awesome alternative to use-cannon
for 3D physics!
@drcmda @notrabs : Have you given any more thought to migrating the project to be pmndrs officially supported? š I'd love to continue contributing with the support of others.
Would you be open to reviewing PRs
@Glavin001 The new example interface is awesome, especially like the one with gears and the streamlining of the ammo build steps. I'd be happy to review the PR once its ready.
Have you given any more thought to migrating the project to be pmndrs officially supported?
I'd love for this project to go on, my only concern is that I currently don't have as much time for a passion project as I had last summer. At the same time moving it to pmndrs sounds like it would solve this problem, if that means having more contributions like @Glavin001's.
@drcmda What would be the requirements/next steps towards a migration?
P.S. I'm also available to chat on Discord @_seb#9739
Progress Update: I'm still working on improvements/adding features to use-ammojs
such that I can replace use-cannon
in my projects. Once the essential features & performance are good, I'll polish the Pull Request and let you know it is ready for review.
The latest, I've added InstancedMesh
support:
- Instanced: https://use-ammojs-git-feat-examples-glavin001.vercel.app/stress?size=10&height=10&instanced=true
- Not Instanced: https://use-ammojs-git-feat-examples-glavin001.vercel.app/stress?size=10&height=10&instanced=false
You can edit the query parameters to push Ammo.js & Three.js to the limits. On my machine 1000 boxes āļø was sufficient to show how InstancedMesh
is superior.
It is impressive how powerful Three.js & Ammo.js are together! A couple more examples:
- https://use-ammojs-git-feat-examples-glavin001.vercel.app/stress?size=5&height=100&instanced=true
- https://use-ammojs-git-feat-examples-glavin001.vercel.app/stress?size=20&height=10&instanced=true
@Glavin001 @drcmda @notrabs do we have any update on the migration status regarding this project becoming pmndrs official?
I recommend https://github.com/pmndrs/react-three-rapier now. I hear Rapier is faster than Bullet/Ammojs and Rapier has official support for WASM.
tbf rapier doesn't feel as snappy as ammojs