b2bridge /

Filename Size Date modified Message
6 B
823 B
3.2 KB
642 B
244 B
1.1 KB
131 B
164 B
757 B
738 B
1.5 KB
460 B
147 B

<!-- -- markdown -- -->

What's b2bridge

b2bridge is a set of tools to help integrate box2d with cocos2d. b2bridge simply provide a way to bind one b2Body with one cocos2d object. So it's NOT a Objective-C wrapper for Box2d.

Classes and Usage


A subclass of b2ContactListener which delegate Box2d collision callback to contact.fixture.userData. All userData(s) should be Objective-C object.

b2Node.h, b2SpaceManager.h and b2Misc.h

b2Node and b2Sprite are special cocos2d objects with a b2Body property and methods to sync position, rotation between b2Body and CocosNode.

Utils to convert unit between b2Space and CCLayer.


A CCLayer wrapper debug draw from GLESDebugDraw.


  • Box2D.h
  • cocos2d.h
  • GTMObjectSingleton.h
  • GLES-Render.h
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.