Namespace UnityEngine.XR.Interaction.Toolkit.Interactors.Casters
Classes
CurveInteractionCaster
A specialized interaction caster that extends InteractionCasterBase to support curved ray casting. This class implements the IUIModelUpdater interface to facilitate world-space UI interactions based on the generated sample points. It handles complex ray casting scenarios using curves, allowing for a more flexible interaction approach.
CurveInteractionCaster.RaycastHitComparer
Compares ray cast hits by distance, to sort in ascending order.
InteractionCasterBase
Provides an abstract base for interaction casters used by NearFarInteractor. This class serves as the foundation for casting interactions, managing initialization, and providing the fundamental mechanics for casting. It implements the IInteractionCaster interface.
SphereInteractionCaster
Implementation of InteractionCasterBase that performs a sphere cast with a set radius to find valid targets.
Interfaces
ICurveInteractionCaster
Interface containing necessary information to perform various types of casts along a curve. The caster is responsible for updating the sample points, performing the cast and returning a sorted list of colliders.
IInteractionCaster
Basic interface used to define an interaction caster, used by NearFarInteractor.
Enums
CurveInteractionCaster.HitDetectionType
Sets which shape of physics cast to use for the cast when detecting collisions.
CurveInteractionCaster.QuerySnapVolumeInteraction
Sets whether ray cast queries hit Trigger colliders and include or ignore snap volume trigger colliders.