Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

View the demohere.

About this fork

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, using for loops.
  • Tried to avoid frequent instantiations of b2Vec2

About this library

The original box2d-js library is hosted onsourceforge.

It seems to be currently unmaintained and uses the HTML5 Canvas element for display.

Demo features

  • 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 calleddrop to show off spring-joints.

About

Optimisied fork of box2d-js with support for Springs and SVG demos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp