# How do i push a box across the ground in the direction that the player is looking at?

**URL:** <https://forums.unrealengine.com/t/how-do-i-push-a-box-across-the-ground-in-the-direction-that-the-player-is-looking-at/2655496>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [September 10, 2025, 8:00pm UTC](https://forums.unrealengine.com/t/how-do-i-push-a-box-across-the-ground-in-the-direction-that-the-player-is-looking-at/2655496 "2025-09-10T20:00:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddave104](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ddave104/32/1000318_2.png) [@ddave104](https://forums.unrealengine.com/u/ddave104)\
**Post date:** [September 10, 2025, 8:00pm UTC](https://forums.unrealengine.com/t/how-do-i-push-a-box-across-the-ground-in-the-direction-that-the-player-is-looking-at/2655496/1 "2025-09-10T20:00:26Z")

</div>

I’m trying to push a box in the direction my player is facing.

I want the player to be able to enter a box collision a widget to come up to click E key (this part I have) and for the box to move in a precise amount across direction the player is looking at. Then delay so that then the player if want can do it again.

How would I be able to do 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:** [September 11, 2025, 5:10am UTC](https://forums.unrealengine.com/t/how-do-i-push-a-box-across-the-ground-in-the-direction-that-the-player-is-looking-at/2655496/2 "2025-09-11T05:10:03Z")

</div>

Maybe something like this?

When player presses push button (teh long blue noodle is coming from an overlapped box actor):

 ![gridsnappydo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/c/8cc5b62fcb2d738848d2a03ca459f63727a2e24a.jpeg)

Call function or interface on target:

 ![moveme](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/4/b/f4b7f947872bd09950b3282e0d7e31754830a1d5.jpeg)

I can’t get it to work consistently though. The vector snap to grid math node keeps randomly failing to work for me, May be bugged?

---

<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:** [September 11, 2025, 7:16am UTC](https://forums.unrealengine.com/t/how-do-i-push-a-box-across-the-ground-in-the-direction-that-the-player-is-looking-at/2655496/3 "2025-09-11T07:16:48Z")

</div>

On second thought. instead of using vector grid snap, you could isolate the x/y direction so it only goes in straight lines:

 ![setupmove](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/e/2/ee2d2084578fd2763410ffe0961add6a78bcad01.jpeg)

That GetNSEW function does this to give a normalized cardinal direction:

 ![getcardinaldir](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/b/f5b6b7fefaf5a72403f77478ca2e73d558eecee9.jpeg)

Finally, I changed the box to use tick for the vinterp:

 ![moveit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/8/d083bcd1f06c0874ab5e299b490039ac0cc7f9fd.jpeg)

Can tweak he multiply node in first pic to change how far the box moves.

And if lots of things need to be locked to xor y movement, could toss that GetNSEW function into a library

---

<div class="post-metadata">

**Author:** ![Ram07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ram07](https://forums.unrealengine.com/u/Ram07)\
**Post date:** [September 11, 2025, 7:23am UTC](https://forums.unrealengine.com/t/how-do-i-push-a-box-across-the-ground-in-the-direction-that-the-player-is-looking-at/2655496/4 "2025-09-11T07:23:14Z")

</div>

Hi, i too checked and the solution given by @illspiritx is working. I did try this in tick but you can convert as per your requirement

 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/2/2b23fa618c819bcc5507d819420fe1b7279b12b5.png)

---

<div class="post-metadata">

**Author:** ![ddave104](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ddave104/32/1000318_2.png) [@ddave104](https://forums.unrealengine.com/u/ddave104)\
**Post date:** [September 11, 2025, 8:46pm UTC](https://forums.unrealengine.com/t/how-do-i-push-a-box-across-the-ground-in-the-direction-that-the-player-is-looking-at/2655496/5 "2025-09-11T20:46:38Z")

</div>

Thank you very much your code was what I needed, I changed something here is the final code is anyone needs it.

 ![Pic 01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/3/893f20bf94f23cf25b169a141fdff83f78c82df5.jpeg)

 ![Pic 02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/d/2/8d2d37e5c82dfc3c0896f363a208fdfd9fcb943c.jpeg)

 ![Pic 03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/6/8c6e2c9377ee223fa8b248c5bb0b7dafb08cc9ad.jpeg)

 ![Pic 04](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/0/c00c51b8a2d8fcd0d13960b2441d8e4b15d01b08.jpeg)

---

<div class="post-metadata">

**Author:** ![ddave104](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ddave104/32/1000318_2.png) [@ddave104](https://forums.unrealengine.com/u/ddave104)\
**Post date:** [September 11, 2025, 8:48pm UTC](https://forums.unrealengine.com/t/how-do-i-push-a-box-across-the-ground-in-the-direction-that-the-player-is-looking-at/2655496/6 "2025-09-11T20:48:06Z")

</div>

And this is the function

 ![Pic 05](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/7/847d5659e376f9309b97d9f502bd577b167b4801.jpeg)

 ![Pic 06](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/d/60d218c5880c68672650224fb7f4ff87db1eb469.jpeg)
