optimized the physics to only take into account objects around the frame