Page 1 of 1

Javascript physic engine

PostPosted: Thu Jan 09, 2014 5:11 pm
by Gianmichele
Hi Ashley,

are there any plan in the future to support a different physic engine other than box2dweb?

p2js for example is a pure javascript, super lightweight engine, that has some really nice performance.

http://schteppe.github.io/p2.js/

I wonder if it could be integrated as a plug-in.

Just asking as it performs really well on mobile too




Re: Javascript physic engine

PostPosted: Thu Jan 09, 2014 6:36 pm
by spongehammer
Thats really nice

Re: Javascript physic engine

PostPosted: Thu Jan 09, 2014 7:47 pm
by jayderyu
Who knows. It would be nice. But you can always create a behaviour now if you need it.

Re: Javascript physic engine

PostPosted: Thu Jan 09, 2014 8:02 pm
by digera
Some really cool features there... However, I'm seeing worse clipping than in box2d... and I feel as though Box2D's amount of clipping is a crippling defect...

Re: Javascript physic engine

PostPosted: Thu Jan 09, 2014 8:24 pm
by Ashley
We already support a new physics engine, the asm.js compiled version of box2d, available in the latest beta. I doubt any non-asm.js library could beat it performance-wise, it's close to native engines in speed.

Re: Javascript physic engine

PostPosted: Thu Jan 09, 2014 11:53 pm
by spongehammer
Still doesnt offer some of the features shown though, springs, other joints etc.