# Homeworld style rts control

**URL:** <https://forums.unrealengine.com/t/homeworld-style-rts-control/1353390>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [October 30, 2023, 11:53pm UTC](https://forums.unrealengine.com/t/homeworld-style-rts-control/1353390 "2023-10-30T23:53:13Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 3, 2023, 8:56am UTC](https://forums.unrealengine.com/t/homeworld-style-rts-control/1353390/6 "2023-11-03T08:56:01Z")

</div>

- for a horizontal plane:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/3/c/33cc5621a80d650ddb6a9d2011104a1b5a68bf68.png)

- for a vertical plane:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/6/d/86d7016eac78920586c37487d59cd00205dfec29.png)

- we trace against horizontal unless a modifier key is held:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/e/4/5e450d6c810d4cbd46f8d863e4599cd3904c7b69.png)

More is needed to make it better. You could restrict axis for vertical adjustment like in @pezzott1’s example. Debug:

> **[Line Plane Intersection camera based trace for horizontal and vertical planes...](https://dev.epicgames.com/community/snippets/5zyW/unreal-engine-line-plane-intersection-camera-based-trace-for-horizontal-and-vertical-planes)**

---

_[View the full topic](https://forums.unrealengine.com/t/homeworld-style-rts-control/1353390)._
