Skip to content

What is a good JavaScript Physics Engine?

3 pointsbl00djack3 comments
On HN

I am trying to write a small interactive physics simulation where students can learn by clicking, dragging or swinging a pendulum, etc.... I found a lot of JScript Physics Engine out there, but I don't know where to start. Any suggestions?

Comments

http://box2d-js.sourceforge.net/

box2d has good documentation and plenty of examples available. You can start with this.

Thank you so much :)

If you want to use box2d, use box2dweb[0]. It's much smaller and faster and is actually up to date. However if you want your game to run smoothly on mobile phones your best bet is Chimpunk-js[1].

[0] https://code.google.com/p/box2dweb/

[1] https://github.com/josephg/Chipmunk-js

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.