ackb2d 0.9
3D Gamestudio Box 2d Wraper

b2Collision.h File Reference

Go to the source code of this file.

Functions

void b2CollideCircles (b2Manifold *manifold, const b2CircleShape *circle1, const b2Transform *xf1, const b2CircleShape *circle2, const b2Transform *xf2)
 Compute the collision manifold between two circles.
void b2CollidePolygonAndCircle (b2Manifold *manifold, const b2PolygonShape *polygon, const b2Transform *xf1, const b2CircleShape *circle, const b2Transform *xf2)
 Compute the collision manifold between a polygon and a circle.
void b2CollidePolygons (b2Manifold *manifold, const b2PolygonShape *polygon1, const b2Transform *xf1, const b2PolygonShape *polygon2, const b2Transform *xf2)
 Compute the collision manifold between two polygons.
var b2ClipSegmentToLine (b2ClipVertex **vOut, const b2ClipVertex **vIn, const VECTOR *normal, var offset)
 Clipping for contact manifolds.
void b2GetPointStates (var *state1, var *state2, const b2Manifold *manifold1, const b2Manifold *manifold2)
 Compute the point states given two manifolds.
var b2Testb2ShapeOverlap (const b2Shape *shapeA, const b2Shape *shapeB, const b2Transform *xfA, const b2Transform *xfB)
 Determine if two generic shapes overlap.
var b2Testb2AABBOverlap (const b2AABB *a, const b2AABB *b)
 Test b2AABB overlap.

Function Documentation

var b2ClipSegmentToLine ( b2ClipVertex **  vOut,
const b2ClipVertex **  vIn,
const VECTOR *  normal,
var  offset 
)

Clipping for contact manifolds.

void b2CollideCircles ( b2Manifold manifold,
const b2CircleShape circle1,
const b2Transform xf1,
const b2CircleShape circle2,
const b2Transform xf2 
)

Compute the collision manifold between two circles.

void b2CollidePolygonAndCircle ( b2Manifold manifold,
const b2PolygonShape polygon,
const b2Transform xf1,
const b2CircleShape circle,
const b2Transform xf2 
)

Compute the collision manifold between a polygon and a circle.

void b2CollidePolygons ( b2Manifold manifold,
const b2PolygonShape polygon1,
const b2Transform xf1,
const b2PolygonShape polygon2,
const b2Transform xf2 
)

Compute the collision manifold between two polygons.

void b2GetPointStates ( var *  state1,
var *  state2,
const b2Manifold manifold1,
const b2Manifold manifold2 
)

Compute the point states given two manifolds.

The states pertain to the transition from manifold1 to manifold2. So state1 is either persist or remove while state2 is either add or persist.

var b2Testb2AABBOverlap ( const b2AABB a,
const b2AABB b 
)

Test b2AABB overlap.

var b2Testb2ShapeOverlap ( const b2Shape shapeA,
const b2Shape shapeB,
const b2Transform xfA,
const b2Transform xfB 
)

Determine if two generic shapes overlap.

 All Data Structures Files Functions Variables Typedefs Defines