Table of Contents

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

heightField b3HeightFieldData*

the height field to query

bounds b3AABB

the bounding box in local space

fcn delegate* unmanaged[Cdecl]<Vector3, Vector3, Vector3, int, void*, NativeBool>

a user function to collect triangles

context void*

the context sent to the user function.