Method b3World_CastMover
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
b3World_CastMover(b3WorldId, Vector3, b3Capsule*, Vector3, b3QueryFilter, delegate* unmanaged[Cdecl]<b3ShapeId, void*, NativeBool>, void*)
Cast a capsule mover through the world. This is a special shape cast that handles sliding along other shapes while reducing clipping. This is not a good source of information about what the mover is touching. Instead use the planes returned by b3World_CollideMover.
public static extern float b3World_CastMover(b3WorldId worldId, Vector3 origin, b3Capsule* mover, Vector3 translation, b3QueryFilter filter, delegate* unmanaged[Cdecl]<b3ShapeId, void*, NativeBool> fcn, void* context)Parameters
worldIdb3WorldId-
World to cast the mover against
originVector3-
World position the mover capsule is relative to
moverb3Capsule*-
Capsule mover, relative to the origin
translationVector3-
Desired mover translation
filterb3QueryFilter-
Contains bit flags to filter unwanted shapes from the results
fcndelegate* unmanaged[Cdecl]<b3ShapeId, void*, NativeBool>-
Optional callback for custom shape filtering
contextvoid*-
A user context that is passed along to the callback function
Returns
- float
-
the translation fraction