Optimisied fork of box2d-js with support for Springs and SVG demos
Switch branches/tags
Nothing to show
Clone or download
hrj Update README.md
Added a screenshot.
Tightened up the description.
Latest commit cc56fac Nov 22, 2014
Type Name Latest commit message Commit time
Failed to load latest commit information.
demos Some optimisations. Aug 3, 2010
images Added files for demo Jul 28, 2010
js/box2d Added the core source code Jul 27, 2010
lib Added files for demo Jul 28, 2010
style Added files for demo Jul 28, 2010
LICENSE.txt Added the license Jul 27, 2010
README.md Update README.md Nov 22, 2014
blank.svg Tried to add compatibility to IE Jul 28, 2010
index.html Added a support button Jul 30, 2010
old_index.html Added files for demo Jul 28, 2010




About this fork

The original box2d-js library is hosted on sourceforge. It seems to be currently unmaintained and uses the HTML5 Canvas element for display.

This fork has the following changes over the original:

New features

  • Spring Joint (simple version, suitable for simulation of soft bodies)

Code Optimisations

  • Removed dependency on prototype.js
  • Simple optimisations to core library
  • Avoid frequent instantiations of b2Vec2

Features in the demo

  • Use of SVGs instead of Canvas

    • Using jquery and jquery.svg
    • only create a shape for the first time, then use transformations
    • if static or sleeping then don't redraw
  • throttling of step size and inter-frame delays, to achieve a target FPS.

  • a new demo scene called drop to show off spring-joints.