Jump to content

Chipmunk (software)

From Wikipedia, the free encyclopedia
Chipmunk physics engine
Original author(s)Scott Lembcke
Developer(s)Howling Moon Software
Stable release
7.0.3 / June 7, 2019;5 years ago(2019-06-07)
Repository
Written inC,Objective-C
Operating systemCross-platform
TypePhysics enginemiddleware
LicenseMIT License,formerlyopen core
Websitechipmunk-physics.net

Chipmunk2Dis a 2-dimensionalreal-timerigid bodyphysics enginewritten by Scott Lembcke that is designed to be portable, lightweight, fast, and easy to use.[1]Prior to version 7, two main versions of the library existed.Chipmunk2D Freewas written purely inC99,and freely available under the terms of theMIT License.Chipmunk2D Prowas a proprietary upgrade designed for development on mobile devices. It included several high-level subroutines inObjective-C,and floating-point optimizations for theARMprocessor.[2]However, after version 7 the project was fully open-sourced.[3]

Aside from Objective-C, there are official bindings forRuby,and third party interfaces exist forPython,[4]Haskell,[5]OCaml,[6]and others.[7]Chipmunk is endorsed by a number of game libraries, includingAerosol,Gosu,[8]andCocos2d.[9]

Features

[edit]

Chipmunk supports multiple collision primitives attached to one rigid body, and bodies may be joined by constraints. It has a flexiblecollision detectionsystem with layers, exclusion groups and collision callbacks. Callbacks are defined based on user definable "collision types" and may reject collisions and even override the calculation of friction and elasticity coefficients.

Version 7 of the library introduced "Autogeometry", animage tracingfeature that transforms a raster graphic into a polygonal shape usable by the library. This feature is currently only available in theObjective-Cversion of the library.

Chipmunk has been widely used on theiPhone,Mac/Windows/Linux, and other platforms, includingNintendo WiiandSony PSP.[10]

See also

[edit]

References

[edit]
  1. ^Chipmunk2d update reduced CPU hits for sleeping items
  2. ^"Chipmunk2D Physics Pro".Howling Moon Software.Retrieved2014-05-26.
  3. ^Korth, Andy."Chipmunk 7 released- Pro tools open sourced".Howling Moon Software.Retrieved2015-07-21.
  4. ^Pymunk
  5. ^Hipmunk: A Haskell binding for Chipmunk
  6. ^"ocaml-chipmunk".Archived fromthe originalon 2009-01-16.Retrieved2009-05-04.
  7. ^Bindings and Ports
  8. ^Johnson, Dirk."Gosu Chipmunk Integration".GitHub.Retrieved2014-05-26.
  9. ^"Cocos2d".Archived fromthe originalon 2011-07-25.Retrieved2010-10-02.
  10. ^"Chipmunk Physics ported to the PSP"
[edit]