[][src]Module box2d_rs::b2_distance

Structs

B2distanceInput

Input for b2Distance. You have to option to use the shape radii in the computation. Even

B2distanceOutput

Output for b2Distance.

B2distanceProxy

A distance proxy is used by the GJK algorithm. It encapsulates any shape.

B2shapeCastInput

Input parameters for b2ShapeCast

B2shapeCastOutput

Output results for b2ShapeCast

B2simplexCache

Used to warm start b2Distance. Set count to zero on first call.

Statics

B2_GJK_CALLS
B2_GJK_ITERS
B2_GJK_MAX_ITERS

Functions

b2_distance_fn

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.

b2_shape_cast

Perform a linear shape cast of shape b moving and shape A fixed. Determines the hit point, normal, and translation fraction.