How to implement Floor Navigation

Floor navigation just like this in example

how to move the marker along with the mouse pointer, this is place i am stuck

Here’s an interesting demo that I came across:

Here you have an example of dragging a clicked mesh across the surface plane. I can imagine you can use similar by just creating a flat mesh and dragging it around all the time instead of only on click.

Would love to hear other ideas if people have :smiley: