physics engine collision test fix