{"id":61707,"library":"chipmunk","title":"Chipmunk2D","description":"A fast and lightweight 2D game physics library.","status":"active","version":"7.0.3","language":"cpp","source_language":null,"source_url":null,"tags":["physics","2d","game-development","lightweight"],"install":[{"cmd":"vcpkg install chipmunk","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(chipmunk CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE Chipmunk::Chipmunk)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"chipmunk/chipmunk.h","correct":"#include <chipmunk/chipmunk.h>"}],"quickstart":{"code":"#include <chipmunk/chipmunk.h>\n\nint main() {\n    cpSpace* space = cpSpaceNew();\n    cpBody* body = cpBodyNew(1.0, cpMomentForCircle(1.0, 10.0, 0.0, cpvzero));\n    cpSpaceAddBody(space, body);\n    cpSpaceStep(space, 1.0/60.0);\n    cpSpaceFree(space);\n    return 0;\n}","lang":"cpp","description":"Create a physics space and simulate a step"},"warnings":[{"fix":"Always use cpSpaceFree and cpBodyFree to release resources.","message":"Chipmunk2D uses its own vector type cpVect; be careful with memory management of cpSpace and cpBody objects.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'2d':6,11 'chipmunk2d':1 'develop':14 'fast':3 'game':7,13 'game-develop':12 'librari':9 'lightweight':5,15 'physic':8,10","created_at":"2026-06-17T05:02:08.507197+00:00","updated_at":"2026-06-17T05:02:08.507197+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}