Table of Contents

Method b3DynamicTree_BoxCast

Namespace
Box3D.Native
Assembly
Box3D.NET.Native.dll

b3DynamicTree_BoxCast(b3DynamicTree*, b3BoxCastInput*, ulong, NativeBool, delegate* unmanaged[Cdecl]<b3BoxCastInput*, int, ulong, void*, float>, void*)

Sweep an AABB through the tree. The box is in the tree's world float frame and the callback re-differences each shape at full precision against the query origin. Used by the large world spatial queries so the tree traversal stays float while the narrow phase stays precise.

public static extern b3TreeStats b3DynamicTree_BoxCast(b3DynamicTree* tree, b3BoxCastInput* input, ulong maskBits, NativeBool requireAllBits, delegate* unmanaged[Cdecl]<b3BoxCastInput*, int, ulong, void*, float> callback, void* context)

Parameters

tree b3DynamicTree*

See the Box3D documentation.

input b3BoxCastInput*

See the Box3D documentation.

maskBits ulong

See the Box3D documentation.

requireAllBits NativeBool

See the Box3D documentation.

callback delegate* unmanaged[Cdecl]<b3BoxCastInput*, int, ulong, void*, float>

See the Box3D documentation.

context void*

See the Box3D documentation.

Returns

b3TreeStats

See the Box3D documentation.