Hello everyone,
I’ve just completed Day 6 of my Unreal Engine 5 Gameplay Engineer journey.
Today I implemented a basic Interaction System entirely in C++ using Enhanced Input and Line Traces.
Features implemented:
IA_Interact Input Action
E Key Interaction
Line Trace Detection
DrawDebugLine Visualization
FHitResult Usage
Object Detection
Object Destruction
The interaction system works by casting a Line Trace from the player and detecting objects directly in front of the character.
When the player presses the E key and an object is detected, the actor is destroyed.
Current character features:
• WASD Movement
• Sprint System
• Health System
• Double Jump
• Interaction System
Video Day 6:https://youtu.be/1Qdqefu5KEk
Any feedback, suggestions, or code review comments are welcome.
Thank you!