#include "box2d/b2_circle_shape.h"
#include "box2d/b2_distance.h"
#include "box2d/b2_edge_shape.h"
#include "box2d/b2_chain_shape.h"
#include "box2d/b2_polygon_shape.h"
Go to the source code of this file.
Classes | |
struct | b2Simplex |
struct | b2SimplexVertex |
Functions | |
void | b2Distance (b2DistanceOutput *output, b2SimplexCache *cache, const b2DistanceInput *input) |
bool | b2ShapeCast (b2ShapeCastOutput *output, const b2ShapeCastInput *input) |
Variables | |
B2_API int32 | b2_gjkCalls |
B2_API int32 | b2_gjkIters |
B2_API int32 | b2_gjkMaxIters |
void b2Distance | ( | b2DistanceOutput * | output, |
b2SimplexCache * | cache, | ||
const b2DistanceInput * | input | ||
) |
Compute the closest points between two shapes. Supports any combination of: b2CircleShape, b2PolygonShape, b2EdgeShape. The simplex cache is input/output. On the first call set b2SimplexCache.count to zero.
Definition at line 454 of file b2_distance.cpp.
bool b2ShapeCast | ( | b2ShapeCastOutput * | output, |
const b2ShapeCastInput * | input | ||
) |
Perform a linear shape cast of shape B moving and shape A fixed. Determines the hit point, normal, and translation fraction.
Definition at line 603 of file b2_distance.cpp.
Definition at line 30 of file b2_distance.cpp.
Definition at line 30 of file b2_distance.cpp.
Definition at line 30 of file b2_distance.cpp.