Download

Get player position inside a box collision

Hi,

I’m trying to make a paper map where the player’s position will be displayed based on their location in the world.

To mark the boundaries of the map in the world I’m using a blueprint with a box collision in it. I want to retrieve the player’s coordinates (vector 2D) X, Y axis relative to the box. Does anyone know how I would go about doing that?

Is there a better way of doing this? I saw a tutorial on YouTube where the guy was using the X,Y input the mouse to move the player marker on the map but the problem with that is it doesn’t work when you’re jumping and not holding the up arrow key for example.

Thanks :wink:

The relative position, is just literally the player location minus the box location.

I don’t know which node to drag out of the box to get it’s dimensions. :flushed:

Just wire it up like this:

1 Like