Method b3QueryHeightField
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
b3QueryHeightField(b3HeightFieldData*, b3AABB, delegate* unmanaged[Cdecl]<Vector3, Vector3, Vector3, int, void*, NativeBool>, void*)
Query a height field for triangles overlapping a bounding box in local space. May have false positives. Useful for debug draw.
public static extern void b3QueryHeightField(b3HeightFieldData* heightField, b3AABB bounds, delegate* unmanaged[Cdecl]<Vector3, Vector3, Vector3, int, void*, NativeBool> fcn, void* context)Parameters
heightFieldb3HeightFieldData*-
the height field to query
boundsb3AABB-
the bounding box in local space
fcndelegate* unmanaged[Cdecl]<Vector3, Vector3, Vector3, int, void*, NativeBool>-
a user function to collect triangles
contextvoid*-
the context sent to the user function.