# Grab box problem

**URL:** <https://forums.unrealengine.com/t/grab-box-problem/2364772>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [February 28, 2025, 5:29pm UTC](https://forums.unrealengine.com/t/grab-box-problem/2364772 "2025-02-28T17:29:35Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [February 28, 2025, 5:43pm UTC](https://forums.unrealengine.com/t/grab-box-problem/2364772/4 "2025-02-28T17:43:56Z")

</div>

Have a look at this post, there are examples of moving an actor with the mouse using a specific axis:

> [@Left Mouse button pressed and released equivalent in enhanced input (or drag and drop)](https://forums.unrealengine.com/t/left-mouse-button-pressed-and-released-equivalent-in-enhanced-input-or-drag-and-drop/1633884/18):
>
> Here’s some script allowing for picking up stuff and moving it in a specific plane only we determine ourselves manually: The green debug plane visualises what’s going on. In short: shoot a beam (trace) from the screen centre towards the projected mouse cursor, when it eventually intersects that plane (which is infinitely large), place the actor at the intersect world coordinate. If I change the normal: You could derive this Normal from the actor itself instead:

* * *

The script you’re showing seems to suffer from the issue I mentioned originally, you keep tracing against the component you’re already holding so the position keeps shifting.

---

_[View the full topic](https://forums.unrealengine.com/t/grab-box-problem/2364772)._
