Table of Contents

Method b3World_CastRayClosest

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

b3World_CastRayClosest(b3WorldId, Vector3, Vector3, b3QueryFilter)

Cast a ray into the world to collect the closest hit. This is a convenience function. Ignores initial overlap. This is less general than b3World_CastRay() and does not allow for custom filtering.

public static extern b3RayResult b3World_CastRayClosest(b3WorldId worldId, Vector3 origin, Vector3 translation, b3QueryFilter filter)

Parameters

worldId b3WorldId

See the Box3D documentation.

origin Vector3

See the Box3D documentation.

translation Vector3

See the Box3D documentation.

filter b3QueryFilter

See the Box3D documentation.

Returns

b3RayResult

See the Box3D documentation.