# Rotating a Grabbed Object

**URL:** <https://forums.unrealengine.com/t/rotating-a-grabbed-object/404680>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [September 15, 2017, 7:10pm UTC](https://forums.unrealengine.com/t/rotating-a-grabbed-object/404680 "2017-09-15T19:10:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rymazon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rymazon](https://forums.unrealengine.com/u/Rymazon)\
**Post date:** [September 15, 2017, 7:10pm UTC](https://forums.unrealengine.com/t/rotating-a-grabbed-object/404680/1 "2017-09-15T19:10:12Z")

</div>

I know this thing has already been asked but it hasn’t gotten a clear answer and it has just been forgotten. I am making a grab system and I want to be able to rotate the object like in this video: [UE4 - Witanlore - Manipulate Physics Objects (Grab, Rotate, Drop, Use) - YouTube](https://www.youtube.com/watch?v=zWd-Z20praQ) . I am having trouble doing this. Please help me figure out how. Currently I have something like in this tutorial : [Unreal Engine 4 Tutorial - Pickup and Drop Objects (Physics Handle) - YouTube](https://www.youtube.com/watch?v=OltZ-xFz8IQ&index=7&list=WL) but I switched “Grab Component at Location” for “Grab Component at Location With Rotation” to prevent my object spinning. Please help me get this working, Thanks! 😃

---

<div class="post-metadata">

**Author:** ![BenVlodgi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/benvlodgi/32/1194567_2.png) [@BenVlodgi](https://forums.unrealengine.com/u/BenVlodgi)\
**Post date:** [September 15, 2017, 8:31pm UTC](https://forums.unrealengine.com/t/rotating-a-grabbed-object/404680/2 "2017-09-15T20:31:32Z")

</div>

I the way I do this in my game:

- My Player has a `SceneComponent` called `HeldObjectLocation` placed where the player should hold the object.
- On Pickup, I set the rotation of `HeldObjectLocation` to the same rotation as the object I’m picking up.

 ![213642-ue-answerpic37a.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/5/6/e5621b4abba8a62258d6c459be33a0937a76da62.jpeg)

- On `Tick` I call this custom event below (could be a function). This updates the physics handle to orient the desired location and rotation for the attached object.

 ![213643-ue-answerpic37b.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/2/3c22df0d7d4ffd436958648c7785d1fd99d8c1e7.png)

This should be enough for you to be able to pickup objects with their current rotation and maintain that relative rotation as you turn (which is even more than the featured video is able to do). To add more rotation with key inputs, set up those bindings, and simply add the rotation to the `HeldObjectLocation` SceneComponent, when the keys are pressed and you are holding an object.

---

<div class="post-metadata">

**Author:** ![Rymazon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rymazon](https://forums.unrealengine.com/u/Rymazon)\
**Post date:** [September 15, 2017, 10:52pm UTC](https://forums.unrealengine.com/t/rotating-a-grabbed-object/404680/3 "2017-09-15T22:52:07Z")

</div>

Thanks! It worked great!

---

<div class="post-metadata">

**Author:** ![TheFlyingCacti](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheFlyingCacti](https://forums.unrealengine.com/u/TheFlyingCacti)\
**Post date:** [December 4, 2017, 5:10am UTC](https://forums.unrealengine.com/t/rotating-a-grabbed-object/404680/4 "2017-12-04T05:10:39Z")

</div>

Wow, Thanks so much. It took me ages to search the internet for that solution! 😉

---

<div class="post-metadata">

**Author:** ![Lord\_Pol](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lord_pol/32/736974_2.png) [@Lord\_Pol](https://forums.unrealengine.com/u/Lord_Pol)\
**Post date:** [February 13, 2019, 4:24pm UTC](https://forums.unrealengine.com/t/rotating-a-grabbed-object/404680/5 "2019-02-13T16:24:19Z")

</div>

Thank you. Helped me here too.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c45d3c59](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c45d3c59](https://forums.unrealengine.com/u/anonymous_user_c45d3c59)\
**Post date:** [April 3, 2019, 11:22am UTC](https://forums.unrealengine.com/t/rotating-a-grabbed-object/404680/6 "2019-04-03T11:22:13Z")

</div>

Can anyone share the blueprint of solution? as I am new to unreal so its difficult for me to understand.

---

<div class="post-metadata">

**Author:** ![BenVlodgi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/benvlodgi/32/1194567_2.png) [@BenVlodgi](https://forums.unrealengine.com/u/BenVlodgi)\
**Post date:** [April 3, 2019, 3:03pm UTC](https://forums.unrealengine.com/t/rotating-a-grabbed-object/404680/7 "2019-04-03T15:03:52Z")

</div>

This is all very clearly explained above, I suggest reading the documentation and watching tutorials to become further familiarized with Unreal Engine.

- [Get Started with UE4](https://docs.unrealengine.com/en-us/GettingStarted)
