I spawn a lot of moveable static mesh actors (with relations between some of them, not visible yet, will use maybe splines) from an array and I would like to have them positioned in a force-directed graph layout in the 3D space (Force-directed graph drawing - Wikipedia). How would I implement that with blueprints? Any hint would be very much welcome, since I try to figure it out by myself since a while, without success.
Got it half written, but for some reason my rotation is not working.
I looked a bit into the algorithm behind Force-directed graph layout. So I learned it works with repulsion and attraction forces between nodes. In theory I should just be able to use physics from UE in order to implement it. Hm. Any hints or experiences are welcome!
I have implemented a Cpp version instead of a blueprint ProgramIsFun/ue5-force-graphhhhhhhhh (github.com)
1 Like