Struct RaycastAction
- Namespace
- Box3D
- Assembly
- Box3D.NET.dll
Tells a ray cast what to do after each shape it finds.
public readonly record struct RaycastAction : IEquatable<RaycastAction>Implements
Inherited Members
Remarks
Returned from Box3D.IRaycastCallback.OnHit(Box3D.RaycastHit@). The static members cover every common case; Box3D.RaycastAction.ClipTo(System.Single) is the one that yields a closest-hit search.
Properties
- Continue
-
Records this hit and carries on looking for others, near and far.
- Ignore
-
Ignores this shape and carries on as if it were not there.
- Stop
-
Stops the cast immediately, keeping the results gathered so far.
Methods
- ClipTo(float)
-
Shortens the ray to end at this hit and carries on, so that only closer shapes are reported afterwards.