Registry / other / chipmunk

chipmunk

JSON →
library7.0.3vcpkgunverified

A fast and lightweight 2D game physics library.

vcpkg install chipmunk
INSTALL
IMPORT
SIG · CHIPMUNK
C
chipmunk
othercppv7.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

chipmunk/chipmunk.h
✓ #include <chipmunk/chipmunk.h>

Create a physics space and simulate a step

#include <chipmunk/chipmunk.h> int main() { cpSpace* space = cpSpaceNew(); cpBody* body = cpBodyNew(1.0, cpMomentForCircle(1.0, 10.0, 0.0, cpvzero)); cpSpaceAddBody(space, body); cpSpaceStep(space, 1.0/60.0); cpSpaceFree(space); return 0; }
Debug
Known issues
gotchaChipmunk2D uses its own vector type cpVect; be careful with memory management of cpSpace and cpBody objects.
fix
Always use cpSpaceFree and cpBodyFree to release resources.
affects: *
Upgrade
Version history
7.0.3latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources

No resource links recorded.

chipmunk — pip install chipmunk · libregistry