def _destroy(self):
    if (not self.terrain):
        return
    self.world.contactListener = None
    for t in self.terrain:
        self.world.DestroyBody(t)
    self.terrain = []
    self.world.DestroyBody(self.hull)
    self.hull = None
    for leg in self.legs:
        self.world.DestroyBody(leg)
    self.legs = []
    self.joints = []
def _destroy(self):
    if (not self.terrain):
        return
    self.world.contactListener = None
    for t in self.terrain:
        self.world.DestroyBody(t)
    self.terrain = []
    self.world.DestroyBody(self.hull)
    self.hull = None
    for leg in self.legs:
        self.world.DestroyBody(leg)
    self.legs = []
    self.joints = []