you could make a bb struct and have a scheduler go through a list of bb dependant on its relativity to any possible collisions. i am far from an expert on physics or collision but thats where i would start if i were doing it.