Classes | Functions | Variables
b2_distance.cpp File Reference
#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"
Include dependency graph for b2_distance.cpp:

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
 

Function Documentation

◆ b2Distance()

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.

◆ b2ShapeCast()

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.

Returns
true if hit, false if there is no hit or an initial overlap

Definition at line 603 of file b2_distance.cpp.

Variable Documentation

◆ b2_gjkCalls

B2_API int32 b2_gjkCalls

Definition at line 30 of file b2_distance.cpp.

◆ b2_gjkIters

B2_API int32 b2_gjkIters

Definition at line 30 of file b2_distance.cpp.

◆ b2_gjkMaxIters

B2_API int32 b2_gjkMaxIters

Definition at line 30 of file b2_distance.cpp.



mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:22