# Make an angled Top-Down Camera follow the mouse?

**URL:** <https://forums.unrealengine.com/t/make-an-angled-top-down-camera-follow-the-mouse/2289389>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [January 19, 2025, 3:51pm UTC](https://forums.unrealengine.com/t/make-an-angled-top-down-camera-follow-the-mouse/2289389 "2025-01-19T15:51:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tensdale](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tensdale](https://forums.unrealengine.com/u/Tensdale)\
**Post date:** [January 19, 2025, 3:51pm UTC](https://forums.unrealengine.com/t/make-an-angled-top-down-camera-follow-the-mouse/2289389/1 "2025-01-19T15:51:39Z")

</div>

Hello

I am trying to recreate the mouse control / camera control / aiming method from the game Running With Rifles.  
Example here:  
[https://youtu.be/-JTE7Qi3X18?si=5-LK\_eUKgDZkI3MR&t=891](https://youtu.be/-JTE7Qi3X18?si=5-LK_eUKgDZkI3MR&t=891)

So the MainPlayer\_BP stays in center screen at all times and I can move the mouse around the main player freely with a fixed distance so the player is always in view.

The camera setup is like this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/3/9030a7e549bf84f20d940caf2c2b39a106791659.jpeg)

Camera is at a 40 degree angle, which is causing me a headache with my attempt here:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/c/f/acf891bd6f2cd4ca5384f30beb7b213c372b7ef3.png)

This doesn’t currently work.  
I think it’s my attempt at using Get Mouse Positions.

So I’m trying to create a clamped square around the player using the MaxCameraOffset.

I’m not sure of it’s the correct way to do it by I’m trying to just plug Actor Location and the clamped square into VinterpTo to have the camera move smoothly to the new location.

At the bottom I had it connected up with Convert Mouse Location To World Space instead of …Scaled by DPI.

I had that made into a vector together with Actor Location and that set into Vector Clamp Size 2D., but it didn’t work. Just moved the camera in opposite direction of mainplayer forward vector.

Am I on the right track here or is this the complete wrong approach?

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [January 19, 2025, 7:11pm UTC](https://forums.unrealengine.com/t/make-an-angled-top-down-camera-follow-the-mouse/2289389/2 "2025-01-19T19:11:03Z")

</div>

Hey @Tensdale!

You can check out [this](https://forums.unrealengine.com/t/use-the-mouse-in-2d-to-pan-a-large-image-or-top-down-scene/2235395/4) approach of mine from another topic on the same subject!

The only difference from your objective would be that this approach expects an input to drag the camera, which you can easily change by triggering the logic after Event Tick instead of an IA.

Hope this helps! 😇

---

<div class="post-metadata">

**Author:** ![Tensdale](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tensdale](https://forums.unrealengine.com/u/Tensdale)\
**Post date:** [January 22, 2025, 3:13pm UTC](https://forums.unrealengine.com/t/make-an-angled-top-down-camera-follow-the-mouse/2289389/3 "2025-01-22T15:13:40Z")

</div>

@VisAgilis  
Okay, I’m trying. But I’m still not sure the correct way to trigger it with the mouse position yet. Any tips on that?

This is what I’ve created so far, and it clamps my spaceships movement in space itself to the 1000x1000 square I defined.

 ![Screenshot 2025-01-22 161855](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/4/534756e61577b9099c248f7614ed0a44e10528c9.png)

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [January 22, 2025, 4:04pm UTC](https://forums.unrealengine.com/t/make-an-angled-top-down-camera-follow-the-mouse/2289389/4 "2025-01-22T16:04:14Z")

</div>

You can get the hit result under cursor by dragging the `Get Hit Result Under Cursor by Channel` node out of the `Get Player Controller` node, break the hit result, get the location pin’s x & y values and constantly set the camera’s location to them while keeping it’s own z value 😊

---

<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:** [January 22, 2025, 4:05pm UTC](https://forums.unrealengine.com/t/make-an-angled-top-down-camera-follow-the-mouse/2289389/5 "2025-01-22T16:05:35Z")

</div>

How about this as a base:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/7/8e7a640707b4022b29b28adbe0dc412012a881d2.jpeg)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/1/eb1d08218efd3eca7fdedbffadad7f5462733d9f.png)

The above does not rely on geometry - can be handy when making a space game and there’s little to trace against.

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [January 22, 2025, 4:07pm UTC](https://forums.unrealengine.com/t/make-an-angled-top-down-camera-follow-the-mouse/2289389/6 "2025-01-22T16:07:52Z")

</div>

Good point 🤩

---

<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:** [January 22, 2025, 4:14pm UTC](https://forums.unrealengine.com/t/make-an-angled-top-down-camera-follow-the-mouse/2289389/7 "2025-01-22T16:14:37Z")

</div>

I really enjoy how this part is unapologetically **and** technically OK:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/7/2/b720e8614f62af01fefbaafcf0e2004ac80201e9.png)

Happy little accidents.

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [January 22, 2025, 4:27pm UTC](https://forums.unrealengine.com/t/make-an-angled-top-down-camera-follow-the-mouse/2289389/8 "2025-01-22T16:27:10Z")

</div>

I think that was a social experiment 🤣
