InteractionHand
Description
Abstract class that inherits from the MonoBehaviour and implements the IInteractor interface. The class is responsible for detecting the current input method used by the player (hand tracking or controllers) and switching between them during runtime. The class contains functionality for detecting and processing the player's interactions with objects in the game, such as grabbing and releasing objects. It also contains functionality responsible for finding the closest grabbable objects and grab points.
Public properties
LayerMask LayerMask
List<Grabbable> ObjectsInReach
List<GrabPoint> GrabPointsInReach
GrabPoint ClosestGrabPoint
Grabbable ClosestObject
Transform PalmCenter
Transform TrackingSpace
HandSkeleton HandSkeleton
bool ShouldGrab
bool IsGrabbing
Public methods
void DetectGrab()
virtual void ProcessGrab()
virtual void GrabCheck()
virtual void StartInteraction()
virtual void UpdateInteraction()
virtual void EndInteraction()
void AddGrabPoint(Collider grabPointCollider)
void AddGrabbableObject(Collider grabbableCollider)
void RemoveGrabPoint(GrabPoint[] grabPoints)
void RemoveGrabbableObject(Grabbable grabbable)
Last updated