Best way to get distance between two objects
Hi there! Scenario: I have a lot of objects (all of the same type) that constantly require the distance to the player character. I'm using this this blueprint to get that distance as a float.
However, is there any other better way to do it? I fear that having a lot of actors performing this calculation each frame may affect performace, badly.
asked Dec 13 '18 at 10:15 PM in Blueprint Scripting
You can get distance between any 2 vectors (does not even need to be actor location) by subtracting them to each other and checking length of resulting vector
answered Dec 13 '18 at 10:42 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here