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
worldIdb3WorldId-
See the Box3D documentation.
originVector3-
See the Box3D documentation.
proxyb3ShapeProxy*-
See the Box3D documentation.
translationVector3-
See the Box3D documentation.
filterb3QueryFilter-
See the Box3D documentation.
fcndelegate* unmanaged[Cdecl]<b3ShapeId, Vector3, Vector3, float, ulong, int, int, void*, float>-
See the Box3D documentation.
contextvoid*-
See the Box3D documentation.
Returns
- b3TreeStats
-
See the Box3D documentation.
Remarks
See b3World_CastRay @see b3World_CastRay