# Why does my Add local Rotation node only work in the center of the sphere?

**URL:** <https://forums.unrealengine.com/t/why-does-my-add-local-rotation-node-only-work-in-the-center-of-the-sphere/758820>\
**Category:** Blueprint\
**Tags:** rotation, unreal-engine, vector, Blueprint, question\
**Created:** [January 28, 2023, 10:15pm UTC](https://forums.unrealengine.com/t/why-does-my-add-local-rotation-node-only-work-in-the-center-of-the-sphere/758820 "2023-01-28T22:15:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gormonde](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gormonde](https://forums.unrealengine.com/u/Gormonde)\
**Post date:** [January 28, 2023, 10:15pm UTC](https://forums.unrealengine.com/t/why-does-my-add-local-rotation-node-only-work-in-the-center-of-the-sphere/758820/1 "2023-01-28T22:15:31Z")

</div>

I’ve been working on making a camera system that is controlled by the players mouse drag. After multiple different versions I found that if I simply attach the constantly updating mouse location from a line trace into a Add Local Rotation node it had the outcome I want but it only works at the center of the sphere and clicking close to the center of the sphere snaps the camera to the center while clicking far away from the center sends the camera into a spin.

Here is a video of it happening:

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/b/d3bfa2ace7efa8dd60482727bcbcf8e52d418999.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/b/d3bfa2ace7efa8dd60482727bcbcf8e52d418999.mp4)

Here is a copy of my blueprint:

> **[Camera rotation around sphere using Line Trace drag posted by anonymous |...](https://blueprintue.com/blueprint/x9vecch6/)**
>
> No description provided

Would appreciate any help on why the blueprint is acting that way and how I could go about having the mouse drag work all over the sphere.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 29, 2023, 10:25am UTC](https://forums.unrealengine.com/t/why-does-my-add-local-rotation-node-only-work-in-the-center-of-the-sphere/758820/2 "2023-01-29T10:25:54Z")

</div>

See this post from @Everynone

> [@Rotate an object in all directions using the mouse](https://forums.unrealengine.com/t/rotate-an-object-in-all-directions-using-the-mouse/463545/2):
>
> Rotating an object is rather straighforward: [[Image from Gyazo]](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 templa…
