# Map motion controller rotation onto object for laser pointer type manipulation (rotator math)

**URL:** <https://forums.unrealengine.com/t/map-motion-controller-rotation-onto-object-for-laser-pointer-type-manipulation-rotator-math/500024>\
**Category:** Blueprint\
**Tags:** math, rotator, Virtual-Reality, unreal-engine, UE4-26, question\
**Created:** [February 19, 2022, 8:39pm UTC](https://forums.unrealengine.com/t/map-motion-controller-rotation-onto-object-for-laser-pointer-type-manipulation-rotator-math/500024 "2022-02-19T20:39:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![2oftware](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@2oftware](https://forums.unrealengine.com/u/2oftware)\
**Post date:** [February 19, 2022, 8:39pm UTC](https://forums.unrealengine.com/t/map-motion-controller-rotation-onto-object-for-laser-pointer-type-manipulation-rotator-math/500024/1 "2022-02-19T20:39:33Z")

</div>

![02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/e/21ef3bf3dfc5ae6a61ee2081c6b3c8c55a53bf42.gif)

 ![rotate-object-with-motion-controller-1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/8/b68de76285b7a44523b3c872e99e23be2469b913.png)

Hi, everyone. I’m trying to rotate an object using motion controller rotation. It works from one direction, but if I move to the side or the back of the object, it doesn’t rotate as expected.

I have bumped into this math problem a few times where I need to ‘rotate a rotator’, like you can rotate a vector. I have seen other people asking about this over the years, but haven’t found a solution.

There are a few possible workarounds like attaching the object to the laser or giving the object a parent object that aligns to the controller on grab. But if possible, I would like to find a solution using rotator math.

Many thanks.

---

<div class="post-metadata">

**Author:** ![OrbitalZones](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/orbitalzones/32/1214470_2.png) [@OrbitalZones](https://forums.unrealengine.com/u/OrbitalZones)\
**Post date:** [September 3, 2024, 9:59am UTC](https://forums.unrealengine.com/t/map-motion-controller-rotation-onto-object-for-laser-pointer-type-manipulation-rotator-math/500024/2 "2024-09-03T09:59:35Z")

</div>

Did you find a solution for that?
