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 Distance
Inheritance
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 GJKCalls
Field 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 GJKIters
Field 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 GJKMaxIters
Field 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
output
DistanceOutput-
The output
cache
SimplexCache-
The cache
input
DistanceInput-
The input