change debris class to obstacle, and change some pointers