Skip to content

Function: Distance()

Distance(output, cache, input): void

Compute the closest points between two shapes. Supports any combination of: CircleShape, PolygonShape, EdgeShape. The simplex cache is input/output. On the first call set SimplexCache.count to zero.

Parameters

output

DistanceOutput

cache

SimplexCache

input

DistanceInput

Returns

void