Skip to content

A simple-as-possible 2D physics rigid-body physics engine for Elm.

License

Notifications You must be signed in to change notification settings

winitzki/boxes-and-bubbles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boxes and Bubbles

Join the chat at https://gitter.im/jastice/boxes-and-bubbles

A simple-as-possible 2D physics rigid-body physics engine for Elm. Supports only bubbles (circles) and boxes (axis-aligned rectangles).

Here's an example (source) of the engine in action.

It does this:

  • resolve collisions between bodies of different mass and bounciness.
  • gravity (ignores mass) / global time-varying forces (mass-dependent)

It doesn't do:

  • arbitrary polygons
  • friction / drag
  • rotation
  • time-integrated movement
  • graphics
  • colliding unstoppable forces with immovable objects (infinite masses will be glitchy)

About

A simple-as-possible 2D physics rigid-body physics engine for Elm.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elm 100.0%