World Object Location to Mini Map Location
So this one has been bugging me for a few weeks now and I still can't find the solution...
I am having a huge amount of trouble trying to figure out how to get the real world location of the 'Location_BP', convert that to a 2D screen space location, and then adjust that location so that it sits over the 'Location_BP' displayed on the Mini Map.
I have tried all sorts of things and haven't been able to figure this one out, so any advice/help would be greatly appreciated.
asked Mar 12 '15 at 12:15 PM in Blueprint Scripting
My spontaneous instinct would be to go with the third option and read out the locations on the map, convert it and add an icon on the minimap.
You could add a capsule to your character which has a radius as large as the area the camera captures. Then you get all your overlapping Location_BP's, get their vector from your character to that location, throw away the Z axis and apply that vector in the correct scale to your minimap.
Alternatively you could also just apply world coordinates to your minimap (so it's aware which area it captures) and directly provide the coordinates to it.
There are some optimizations to not use a lot of resources since you're doing this each tick.
For example you should just keep an array of "Location_BP" actors and update them as you get the begin and end overlap events. Also not every marker moves probably meaning you can provide this as well meaning the none moving once don't have to be updated but only moved exactly like the minimap.
answered Sep 19 '15 at 03:13 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here