schteppe / cannon.js

A lightweight 3D physics engine written in JavaScript.

Home Page:http://schteppe.github.com/cannon.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

augus1990 opened this issue · comments

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!

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.