Distance
Declaration
public static class tainicom.Aether.Physics2D.Collision.Distance
The Gilbert–Johnson–Keerthi distance algorithm that provides the distance between shapes.
Fields
GJKCalls static
The number of calls made to the ComputeDistance() function. Note: This is only activated when Settings.EnableDiagnostics = true
int GJKCalls
GJKIters static
The number of iterations that was made on the last call to ComputeDistance(). Note: This is only activated when Settings.EnableDiagnostics = true
int GJKIters
GJKMaxIters static
The maximum numer of iterations ever mae with calls to the CompteDistance() funtion. Note: This is only activated when Settings.EnableDiagnostics = true
int GJKMaxIters
Methods
ComputeDistance static
void ComputeDistance(out DistanceOutput output, out SimplexCache cache, DistanceInput input)
Parameters:
| Name | Type | Description |
|---|---|---|
output |
out tainicom.Aether.Physics2D.Collision.DistanceOutput |
|
cache |
out tainicom.Aether.Physics2D.Collision.SimplexCache |
|
input |
tainicom.Aether.Physics2D.Collision.DistanceInput |