I’m trying to recreate an effect similar to the markov chain illustration in A Day in the Life of Americans | FlowingData , and as far as I can tell they’re literally just trying to move each dot to the center of its destination, and letting it collide with nearby dots and fight for position. Is there any simple way to do this with UMG, or would I want to do something less literal, like calculating each widget’s position to test if two of them ever overlap, and manually offsetting one’s position if they do?
2D Widgets have no collision boxes so i hardly doubt it is possible in this way. You can try to check for the position of a dot and if another dot wants to occupy that spot move the other one out of the way. But since those checks would happen per tick i can imagine it will be quite demanding on your cpu. But since it is written in javascript you can try Unreal.js which brings JS to UE4 and afaik it can mess with UMG so i’d say it’s worth a try. Have a look -> GitHub - ncsoft/Unreal.js: Unreal.js: Javascript runtime built for UnrealEngine 4
However you could create a BP that contains the widget and a box collision…
Hm that’s interesting, thank you!