lo-th / phy

Physics for three. Game engine
https://lo-th.github.io/phy/
MIT License
509 stars 42 forks source link

Question: does this engine support convex hulls, or full mesh collisions? #4

Closed salamanders closed 1 year ago

salamanders commented 1 year ago

I was hoping to make a chain (out of hundreds of linked torus shaped objects), but that isn't a convex hull. Does this project support full mesh-based collisions? It looks like it does with the gear demo, but that may have been some creative modelling of multiple convex shapes glued together.

Thanks! This project looks amazing!

lo-th commented 1 year ago

i think last version of ammo can do that but i'm on big update soon with many new :) i think the best for torus is use compound with sphere ( much faster )

salamanders commented 1 year ago

I'm very curious to learn more about "compound with sphere", I don't quite know what you mean. I'd like to link together about 5,000 of this and see how it folds up, without it breaking or un-linking.

torus

lo-th commented 1 year ago

use sphere and place in circle but 5000 :)