Box2D 2.4.1
A 2D physics engine for games
|
#include "b2_types.h"
#include "b2_api.h"
#include <stdarg.h>
#include <stdint.h>
#include "b2_common.h"
Go to the source code of this file.
Classes | |
struct | b2BodyUserData |
You can define this to inject whatever data you want in b2Body. More... | |
struct | b2FixtureUserData |
You can define this to inject whatever data you want in b2Fixture. More... | |
struct | b2JointUserData |
You can define this to inject whatever data you want in b2Joint. More... | |
Macros | |
#define | b2_lengthUnitsPerMeter 1.0f |
Define this macro in your build if you want to override settings. | |
#define | b2_maxPolygonVertices 8 |
Settings that can be overriden for your application
#define b2_lengthUnitsPerMeter 1.0f |
Define this macro in your build if you want to override settings.
You can use this to change the length scale used by your game. For example for inches you could use 39.4.
#define b2_maxPolygonVertices 8 |
The maximum number of vertices on a convex polygon. You cannot increase this too much because b2BlockAllocator has a maximum object size.