Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

PhysicsJS (Yes, a JavaScript Physics engine)

In today's Web Wednesday post we're highlighting something you might think a little oxymoronic, a JavaScript Physics engine.

It's still in an Alpha status, but even so, it's looking pretty cool...

PhysicsJS

A modular, extendable, and easy-to-use physics engine for javascript

image

PhysicsJS is still under development (alpha version 0.5.1), and documentation is unfinished. Feel free to use it, just be warned that the API is in flux and better documentation is on its way! (Contributors and help needed!)

Features

  • Use as an AMD Module (requireJS), or global namespace.
  • Modular! Only load what you need. The core library is only 31k minified.
  • Extendable! Don’t like the collision detection algorithm? Replace it with your own!
  • Not tied to a specific renderer. Display it in DOM, HTML5 Canvas, or whatever…
  • Easy! It’s a library written IN javascript… not C compiled into javascript. The syntax is familiar for javascript developers.
  • Extensions to support points, circles, and arbitrary convex polygons.
  • Extensions to support constant gravity, newtonian gravity, collisions, and verlet constraints.

The fastest way to get a feel for what's possible is by checking out the Demos.

Demos

image

There's even documentation already too.

https://github.com/wellcaffeinated/PhysicsJS/wiki

Introductory documentation can be found on the PhysicsJS website. The wiki contains more advanced usage instructions.

Due to the newness of this library, documentation is non-exhaustive. If there are any points of confusion, please feel free to log an issue or contact me. You can also edit the wiki yourself to fill in the gaps. Any help with documenting is appreciated.

Topics

And the source is officially available too;

https://github.com/wellcaffeinated/PhysicsJS

image

Tags:

Follow the Discussion

Remove this comment

Remove this thread

close

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.