# How to Rotate Object While Dragging Another Object? 

**URL:** <https://forums.unrealengine.com/t/how-to-rotate-object-while-dragging-another-object/2679407>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [November 27, 2025, 2:48pm UTC](https://forums.unrealengine.com/t/how-to-rotate-object-while-dragging-another-object/2679407 "2025-11-27T14:48:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![imacarapa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@imacarapa](https://forums.unrealengine.com/u/imacarapa)\
**Post date:** [November 27, 2025, 2:48pm UTC](https://forums.unrealengine.com/t/how-to-rotate-object-while-dragging-another-object/2679407/1 "2025-11-27T14:48:23Z")

</div>

I’m trying to make an object rotate when I drag a separate object in Unreal Engine. Can somene Suggest the best Blueprint approach to achieve this?

---

<div class="post-metadata">

**Author:** ![illspiritx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@illspiritx](https://forums.unrealengine.com/u/illspiritx)\
**Post date:** [November 27, 2025, 7:47pm UTC](https://forums.unrealengine.com/t/how-to-rotate-object-while-dragging-another-object/2679407/2 "2025-11-27T19:47:41Z")

</div>

What is the resulting effect supposed to look like? Is the secondary object looking at the one being dragged? Or is the rotation based on the raw distance the other object is being dragged?

In any case, you could use the tick event on the turning actor, set the moving one as a variable, and get its location to do the math to set rotation. Probably with a branch near start of event to check a bool for whether the target is being moved so it doesn’t do math when the target stops..

For example, I made a turret set thirdpersoncharacter as a var on begin play, then rotate towards player on tick like so:

 ![SetTarget](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/7/db702c4313cc8f08d9a4a2d4044b0dbbb440a71d.jpeg)

The moving bool in character is set to true when a movement key is pressed and false when the input action is finished. Teh FaceTarget function is pretty basic:

 ![FaceTarget](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/7/c17f4e477d10465998be523f398130eb083d6d20.jpeg)

---

<div class="post-metadata">

**Author:** ![imacarapa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@imacarapa](https://forums.unrealengine.com/u/imacarapa)\
**Post date:** [November 28, 2025, 3:24am UTC](https://forums.unrealengine.com/t/how-to-rotate-object-while-dragging-another-object/2679407/3 "2025-11-28T03:24:53Z")

</div>

thanks you so much 😍
