Slowly copypasting collision handling from frogatto's hittable.cfg.