{"id":13569951,"url":"https://github.com/jakecoffman/cp","last_synced_at":"2025-04-14T15:54:25.482Z","repository":{"id":46334682,"uuid":"99392487","full_name":"jakecoffman/cp","owner":"jakecoffman","description":"A pure Go physics library with no dependencies. Unofficial Chipmunk2D port.","archived":false,"fork":false,"pushed_at":"2024-10-11T12:54:37.000Z","size":349,"stargazers_count":327,"open_issues_count":0,"forks_count":22,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-07T09:09:08.624Z","etag":null,"topics":["chipmunk2d","physics","physics-2d"],"latest_commit_sha":null,"homepage":"https://chipmunk-physics.net","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jakecoffman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-05T02:01:21.000Z","updated_at":"2025-04-02T09:42:26.000Z","dependencies_parsed_at":"2024-01-06T17:40:37.981Z","dependency_job_id":"bccd7ca9-d3ae-4adb-a70c-e52f1eb6808a","html_url":"https://github.com/jakecoffman/cp","commit_stats":{"total_commits":142,"total_committers":10,"mean_commits":14.2,"dds":"0.11267605633802813","last_synced_commit":"77433c8e0668a5c5c56420062f47346636803a12"},"previous_names":["jakecoffman/physics"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakecoffman%2Fcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakecoffman%2Fcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakecoffman%2Fcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakecoffman%2Fcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakecoffman","download_url":"https://codeload.github.com/jakecoffman/cp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248911928,"owners_count":21182179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chipmunk2d","physics","physics-2d"],"created_at":"2024-08-01T14:00:46.304Z","updated_at":"2025-04-14T15:54:25.452Z","avatar_url":"https://github.com/jakecoffman.png","language":"Go","readme":"# cp\n[![GoDoc](https://godoc.org/github.com/jakecoffman/cp?status.svg)](https://pkg.go.dev/github.com/jakecoffman/cp/v2)\n[![Sourcegraph](https://sourcegraph.com/github.com/jakecoffman/cp/-/badge.svg)](https://sourcegraph.com/github.com/jakecoffman/cp?badge)\n\nGo port of [Chipmunk2D](https://github.com/slembcke/Chipmunk2D) physics library. \n\n```Go\nimport \"github.com/jakecoffman/cp/v2\"\n```\n\n## Project status\n\nStable -- most features are implemented and the demos are very close to Chipmunk2D demos. \n\n## Examples\n\n- [github.com/jakecoffman/cp-examples](https://github.com/jakecoffman/cp-examples) contains the port of all of the Chipmunk2D demos.\n- [github.com/hajimehoshi/ebiten/blob/main/examples/chipmunk/main.go](https://github.com/hajimehoshi/ebiten/blob/main/examples/chipmunk/main.go) is an example using Ebitengine\n- [github.com/gen2brain/raylib-go/blob/master/examples/physics/chipmunk/main.go](https://github.com/gen2brain/raylib-go/blob/master/examples/physics/chipmunk/main.go) is an example with raylib's Go port\n\n## Documentation\n\nThe official chipmunk docs are a really good place to start: https://chipmunk-physics.net/release/ChipmunkLatest-Docs/\n\n## Features\n\nSame features as Chipmunk2D:\n\n- Designed specifically for 2D video games.\n- Circle, convex polygon, and beveled line segment collision primitives.\n- Multiple collision primitives can be attached to a single rigid body.\n- Fast broad phase collision detection by using a bounding box tree with great temporal coherence or a spatial hash.\n- Extremely fast impulse solving by utilizing Erin Catto’s contact persistence algorithm.\n- Supports sleeping objects that have come to rest to reduce the CPU load.\n- Support for collision event callbacks based on user definable object types types.\n- Flexible collision filtering system with layers, exclusion groups and callbacks.\n- Can be used to create all sorts of effects like one way platforms or buoyancy areas. (Examples included)\n- Supports nearest point, segment (raycasting), shape and bounding box queries to the collision detection system.\n- Collision impulses amounts can be retrieved for gameplay effects, sound effects, etc.\n- Large variety of joints – easily make vehicles, ragdolls, and more.\n- Joint callbacks.\n- Can be used to easily implement breakable or animated joints. (Examples included)\n- Maintains a contact graph of all colliding objects.\n- No external dependencies.\n- Many language bindings available.\n- Simple, read the documentation and see!\n- Unrestrictive MIT license\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakecoffman%2Fcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakecoffman%2Fcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakecoffman%2Fcp/lists"}