improved obstacle intersection testing