detect object and plane collision'