# Cursor like TableTop Simulator

**URL:** <https://forums.unrealengine.com/t/cursor-like-tabletop-simulator/764087>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [February 5, 2023, 1:32pm UTC](https://forums.unrealengine.com/t/cursor-like-tabletop-simulator/764087 "2023-02-05T13:32:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![raybox41](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@raybox41](https://forums.unrealengine.com/u/raybox41)\
**Post date:** [February 5, 2023, 1:32pm UTC](https://forums.unrealengine.com/t/cursor-like-tabletop-simulator/764087/1 "2023-02-05T13:32:16Z")

</div>

Any idea how to get the cursor to do this ?  
I tried to find a tutorial and couldn’t find it.

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/7/6f72fec083ed8d13d4ae35a43cc49d70b9e54973.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/7/6f72fec083ed8d13d4ae35a43cc49d70b9e54973.mp4)

( reference the Tabletop Simulator game )

---

<div class="post-metadata">

**Author:** ![Vollgaser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vollgaser](https://forums.unrealengine.com/u/Vollgaser)\
**Post date:** [February 5, 2023, 2:53pm UTC](https://forums.unrealengine.com/t/cursor-like-tabletop-simulator/764087/2 "2023-02-05T14:53:34Z")

</div>

do a linetrace from the camera to the hitlocation under mouse. depending on the length of the linestrace, scale the 2d cursor which is always facing the camera.

---

<div class="post-metadata">

**Author:** ![raybox41](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@raybox41](https://forums.unrealengine.com/u/raybox41)\
**Post date:** [February 6, 2023, 1:48pm UTC](https://forums.unrealengine.com/t/cursor-like-tabletop-simulator/764087/3 "2023-02-06T13:48:13Z")

</div>

Hello !  
I have a little trouble understanding the method.

 ![1111](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/6/8066e7f2ceb271008ad4007e1c794b59e1b51b4f.png)  
 ![dfffffffff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/1/6217612fb5d5df573ea24d04e027c2f1ab8ac4be.png)

---

<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 6, 2023, 2:25pm UTC](https://forums.unrealengine.com/t/cursor-like-tabletop-simulator/764087/4 "2023-02-06T14:25:50Z")

</div>

@Vollgaser suggested you scaled the cursor by distance. Here you’re scaling some actor by world location - making something orders of magnitude larger than it should be.

* * *

An alternative approach:

- a widget component attached to the camera pawn and using absolute location & rotation
- draw it in world space - automatic scaling
- the widget’s material ignores depth - no need to worry about occlusion
- trace on tick setting location & rotation of the component to face the camera
- if there’s no geometry to trace against (you run out of table) you can Line Plane Intersect to simulate it; or surround the room with invisible collision boxes

Worth trying, imho…

---

<div class="post-metadata">

**Author:** ![raybox41](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@raybox41](https://forums.unrealengine.com/u/raybox41)\
**Post date:** [February 6, 2023, 3:09pm UTC](https://forums.unrealengine.com/t/cursor-like-tabletop-simulator/764087/5 "2023-02-06T15:09:28Z")

</div>

I probably forgot to mention that I was a little beginner. ^^

I put a component widget attached to the camera.

 ![Capture](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/c/29c3d192f8a412537712f654e57ae83c300f3cdc.png)

EDIT :

I followed these instructions.  
what do you think ?

> [@Moving actor using mouse at specific Z at runtime](https://forums.unrealengine.com/t/moving-actor-using-mouse-at-specific-z-at-runtime/666754/3):
>
> You will need it sooner rather than later - I’d dig into it right now if I were you. But you can also do this for something truly simplistic: Just make sure the actor does not block Visiblity:

My video :
