This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
A simple-as-possible 2D rigid-body physics engine.
version 3.0.0
license BSD3
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 3.0.1
Committed At 2017-02-05 15:29:10 UTC
elm-lang/core 5.0.0 <= v < 5.1.1 5.1.0

README

Boxes and Bubbles

Join the chat at <a href="https://gitter.im/jastice/boxes-and-bubbles">https://gitter.im/jastice/boxes-and-bubbles</a>

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. To run the example locally, start elm-reactor in the examples directory.

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)