98BOX2D_API
b2Polygon b2MakeBox(
float hx,
float hy);
101BOX2D_API
b2Polygon b2MakeRoundedBox(
float hx,
float hy,
float radius);
104BOX2D_API
b2Polygon b2MakeOffsetBox(
float hx,
float hy,
b2Vec2 center,
float angle);
131BOX2D_API
bool b2PointInCircle(
b2Vec2 point,
const b2Circle* shape);
#define b2_maxPolygonVertices
Definition constants.h:47
A solid capsule.
Definition geometry.h:44
A solid circle.
Definition geometry.h:37
A convex hull. Used to create convex polygons.
Definition hull.h:12
This holds the mass data computed for a shape.
Definition geometry.h:16
b2Vec2 center
The position of the shape's centroid relative to the shape's origin.
Definition geometry.h:21
float mass
The mass of the shape, usually in kilograms.
Definition geometry.h:18
float minExtent
TODO_ERIN remove geometry info from this.
Definition geometry.h:29
float maxExtent
Distance from shape origin to furthest point on perimeter.
Definition geometry.h:32
float I
The rotational inertia of the shape about the local origin.
Definition geometry.h:24
A line segment with two-sided collision.
Definition geometry.h:66
b2Vec2 ghost2
The head ghost vertex.
Definition geometry.h:82
b2Segment segment
The line segment.
Definition geometry.h:79
b2Vec2 ghost1
The tail ghost vertex.
Definition geometry.h:76
types used by the Box2D API
Axis-aligned bounding box.
Definition types.h:75
Low level ray-cast or shape-cast output data.
Definition types.h:99