physics: split findstructs into a seperate function

Chances are you might want to find structures even when integrate isn't called, so split it into another function.