Change the collisions vector to be a pointer for performance reasons.