forked fromhrj/box2d-js
- Notifications
You must be signed in to change notification settings - Fork1
Optimisied fork of box2d-js with support for Springs and SVG demos
License
NotificationsYou must be signed in to change notification settings
GG-coder889/box2d-js
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
View the demohere.
This fork has the following changes over the original:
- Spring Joint (simple version, suitable for simulation of soft bodies)
- Removed dependency on prototype.js
- Simple optimisations to core library, using for loops.
- Tried to avoid frequent instantiations of b2Vec2
The original box2d-js library is hosted onsourceforge.
It seems to be currently unmaintained and uses the HTML5 Canvas element for display.
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.
About
Optimisied fork of box2d-js with support for Springs and SVG demos
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published