# Rotate an object in all directions using the mouse

**URL:** <https://forums.unrealengine.com/t/rotate-an-object-in-all-directions-using-the-mouse/463545>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [April 9, 2020, 2:26pm UTC](https://forums.unrealengine.com/t/rotate-an-object-in-all-directions-using-the-mouse/463545 "2020-04-09T14:26:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [April 9, 2020, 4:18pm UTC](https://forums.unrealengine.com/t/rotate-an-object-in-all-directions-using-the-mouse/463545/2 "2020-04-09T16:18:59Z")

</div>

Rotating an object is rather straighforward:

 ![299372-rot.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/d/97db5b7d177e584d5cbf1b5091bcb21be90906d7.png)

[![Image from Gyazo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/7/8873edf5b553854f1ad466252295aee0a1bf9a5b.gif)](https://gyazo.com/f1e0aae3a4e579adf7cb83323e43e9a1)

> After that, the user needs to be able  
> to click on certain areas of the  
> object

_Child Actors Components_ sound like the most obvious solution if the attached elements need to define their own unique logic. Depending on what is required (complexity of the shape of the object, modularity, scope) you could have sockets on a static mesh and add Child Actors Components procedurally.

> I can’t use the default templates  
> since they always start from a user  
> pawn (first person, third person etc).

I do not know what this has to do with anything.

---

_[View the full topic](https://forums.unrealengine.com/t/rotate-an-object-in-all-directions-using-the-mouse/463545)._
