# Day 6 - Interaction System in C++ (Unreal Engine 5)

**URL:** <https://forums.unrealengine.com/t/day-6-interaction-system-in-c-unreal-engine-5/2845656>\
**Category:** C++\
**Tags:** unreal-engine, CPP\
**Created:** [October 27, 2026, 11:22am UTC](https://forums.unrealengine.com/t/day-6-interaction-system-in-c-unreal-engine-5/2845656 "2026-10-27T11:22:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinpc\_1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kevinpc_1/32/1215238_2.png) [@kevinpc\_1](https://forums.unrealengine.com/u/kevinpc_1)\
**Post date:** [October 27, 2026, 11:22am UTC](https://forums.unrealengine.com/t/day-6-interaction-system-in-c-unreal-engine-5/2845656/1 "2026-10-27T11:22:38Z")

</div>

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](https://youtu.be/1Qdqefu5KEk)

Any feedback, suggestions, or code review comments are welcome.

Thank you!
