Hpysics

From HaskellWiki
Revision as of 11:41, 8 July 2008 by Feuerbach (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Hpysics is a physics engine to be written using Data Parallel Haskell during Google Summer of Code 2008.

If you are interested, you can follow the blog: http://physics-dph.blogspot.com/

Check out the code with

 darcs get http://code.haskell.org/hpysics

Demos

http://code.haskell.org/~feuerbach/hpysics-cubes.ogv [2.1M]

References

Worthy physics engines

  • Box2D -- 2D physics engine, notable for "contact persistence algorithm".
  • Chipmunk -- 2D physics engine, inspired by Box2D. Fast and simple, written in C.
  • Bullet -- 3D engine, shares many of the same algorithms and concepts with Box2D.
  • Haskell Bullet -- simple haskell binding for Bullet
  • ODE -- popular 3D engine, written in C++.
  • Physsim -- modular 3D engine, written in C++. Inspired by ODE.

Modular physics engine architecture

core simulator

Combines all other components to perform simulation.

integrator

Method used to integrate ODE.

Physsim implements Euler and Runge–Kutta (implicit and explicit) methods.

collision detector

Algorithm which detects whether the two bodies overlap.

See also: PQP