ULimenLineTraceInteractionComponent
Overview
ULimenLineTraceInteractionComponent is a subclass of ULimenInteractionComponent. It handles line tracing to detect nearby interactable objects. The component sets up interaction parameters, updates the interaction state based on line trace results, and manages debug drawing in editor mode.
Properties
Type | Name | Access | Description |
|---|---|---|---|
TEnumAsByte | InteractionCollisionChannel | EditAnywhere | The collision channel used for line tracing. |
Functions
Return Type | Signature | Description |
|---|---|---|
ECollisionChannel | GetTraceChannel() const | Returns the current interaction collision channel. |
void | SetupInteraction() override | Sets up the interaction parameters, ignoring the owner and setting trace properties. |
void | UpdateInteraction(const float DeltaTime) override final | Updates the interaction state by performing a line trace and detecting interactable components. |
Usage & Implementation Notes
The component uses
LineTraceMultiByChannelto detect multiple hits along a line from the owner's view point.It checks for
ULimenInteractableComponenton each hit result and sets the current interactable if found.Debug drawing is enabled in editor mode, showing the trace line and interaction sphere.