Chipmunk C++ wrapper

Share your projects and Chipmunk enhancements.
Post Reply
Irwin1138
Posts: 2
Joined: Fri Aug 08, 2008 11:27 am
Contact:

Chipmunk C++ wrapper

Post by Irwin1138 »

Here is my C++ wrapper for Chipmunk Physics.
This is a very thin layer above the chipmunk itself, mostly for convenience of auto construction\destruction.
Features:
* chipmunk in C++ style
* Kustom Accessorz functions // not a typo, intended :P
* use of powerful Boost's smart pointers (the wrapper is based upon the smart pointers, so if you dont like boost or cant use it then the wrapper is probably useless for you)
* inline implementation in headers for minimal performance impact of the wrapper and convenience

wrapped structures(with corresponding functions):
cpBody
cpShape
cpSpace
cpJoint
cpBB

IMPORTANT NOTE: Be sure to place include safeguards to chipmunk.h!

This wrapper is intended for free public use, there arent any limitations, so feel free to download, modify, use it however you like 8)
If you have any useful suggestions\feature request\modifications\patches post them here, and I will update my code.
I did NOT test every piece of the code, so there could be a few bugs. But everything I did test is working. Ill be glad to hear about the bugs if you find any 8)

The wrapper has its most use in simple games\prototypes\tests where you dont need a complicated physics framework for the chipmunk physics.
The wrapper 'assumes' chipmunk version 4.0.2
Convenience link:
ChipmunkWrapper.zip
EDIT: I've added a github repository for the ChipmunkWrapper, so you can fork it or follow. Here is the link: ChipmunkWrapper at github.com
Irwin1138
Posts: 2
Joined: Fri Aug 08, 2008 11:27 am
Contact:

Re: Chipmunk C++ wrapper

Post by Irwin1138 »

Added a github repository link.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests