Class Distance
- Namespace
- Alis.Core.Physic.Collision
- Assembly
- Alis.dll
The Gilbert–Johnson–Keerthi distance algorithm that provides the distance between shapes.
public static class DistanceInheritance
Inherited Members
Fields
GJKCalls
The number of calls made to the ComputeDistance() function. Note: This is only activated when Settings.EnableDiagnostics = true
[ThreadStatic]
public static int GJKCallsField Value
GJKIters
The number of iterations that was made on the last call to ComputeDistance(). Note: This is only activated when Settings.EnableDiagnostics = true
[ThreadStatic]
public static int GJKItersField Value
GJKMaxIters
The maximum numer of iterations ever mae with calls to the CompteDistance() funtion. Note: This is only activated when Settings.EnableDiagnostics = true
[ThreadStatic]
public static int GJKMaxItersField Value
Methods
ComputeDistance(out DistanceOutput, out SimplexCache, DistanceInput)
Computes the distance using the specified output
public static void ComputeDistance(out DistanceOutput output, out SimplexCache cache, DistanceInput input)Parameters
outputDistanceOutput-
The output
cacheSimplexCache-
The cache
inputDistanceInput-
The input