Method b3ShapeDistance
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
b3ShapeDistance(b3DistanceInput*, b3SimplexCache*, b3Simplex*, int)
Compute the closest points between two shapes represented as point clouds. b3SimplexCache cache is input/output. On the first call set b3SimplexCache.count to zero. The query runs in frame A, so the witness points and normal are returned in frame A. The underlying GJK algorithm may be debugged by passing in debug simplexes and capacity. You may pass in NULL and 0 for these.
public static extern b3DistanceOutput b3ShapeDistance(b3DistanceInput* input, b3SimplexCache* cache, b3Simplex* simplexes, int simplexCapacity)Parameters
inputb3DistanceInput*-
See the Box3D documentation.
cacheb3SimplexCache*-
See the Box3D documentation.
simplexesb3Simplex*-
See the Box3D documentation.
simplexCapacityint-
See the Box3D documentation.
Returns
- b3DistanceOutput
-
See the Box3D documentation.