Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to use cannon.js with a 2D graphic engine? #457

Open
augus1990 opened this issue Mar 9, 2021 · 1 comment
Open

Is it possible to use cannon.js with a 2D graphic engine? #457

augus1990 opened this issue Mar 9, 2021 · 1 comment

Comments

@augus1990
Copy link

Hi! I'm was searching for a javascript 2D physics engine with SPH support, but I only found cannon.js which is for 3D. I would like to know if it's possible to use cannon.js with 2D game engines like pixi.js for example. Any tutorial, specific documentation, tips, etc to achive this would be useful too.

Thanks!

@marcofugaro
Copy link

Hey! SPH is used mostly for 3d simulations.
I don't know what you're trying to do, but foro 2d I'd suggest you using Verlet Physics instead. There are a couple libraries that do this already in javascript, check out Verly.js or verlet-system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants