Table of Contents

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

worldId b3WorldId

World to cast the mover against

origin Vector3

World position the mover capsule is relative to

mover b3Capsule*

Capsule mover, relative to the origin

translation Vector3

Desired mover translation

filter b3QueryFilter

Contains bit flags to filter unwanted shapes from the results

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

Optional callback for custom shape filtering

context void*

A user context that is passed along to the callback function

Returns

float

the translation fraction