Table of Contents

Method b3World_CastShape

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

b3World_CastShape(b3WorldId, Vector3, b3ShapeProxy*, Vector3, b3QueryFilter, delegate* unmanaged[Cdecl]<b3ShapeId, Vector3, Vector3, float, ulong, int, int, void*, float>, void*)

Cast a shape through the world. Similar to a cast ray except that a shape is cast instead of a point. The proxy points are relative to the origin and the hit points come back as world positions, so the cast stays precise far from the world origin.

public static extern b3TreeStats b3World_CastShape(b3WorldId worldId, Vector3 origin, b3ShapeProxy* proxy, Vector3 translation, b3QueryFilter filter, delegate* unmanaged[Cdecl]<b3ShapeId, Vector3, Vector3, float, ulong, int, int, void*, float> fcn, void* context)

Parameters

worldId b3WorldId

See the Box3D documentation.

origin Vector3

See the Box3D documentation.

proxy b3ShapeProxy*

See the Box3D documentation.

translation Vector3

See the Box3D documentation.

filter b3QueryFilter

See the Box3D documentation.

fcn delegate* unmanaged[Cdecl]<b3ShapeId, Vector3, Vector3, float, ulong, int, int, void*, float>

See the Box3D documentation.

context void*

See the Box3D documentation.

Returns

b3TreeStats

See the Box3D documentation.

Remarks

See b3World_CastRay @see b3World_CastRay