I’m working on second version of “space”.
Wouldn’t that only need to be in n^2?
Like:
for every object A in space
for every other object B in space
compute influence of object B on A
yeah i realized that ,right after i posted this topic on dev forum.
And it is n^2 + n
You could implement some kind of space partitioning system to rule out objects which definitely don’t need to be checked against each other. This would lower the number of required checks.
This could however be a bit difficult to implement depending on your programming level.
This might help explain the concept however you will likely want to look for some videos and examples of code for further implementation detail.
Good luck with your project 
1 Like