def cleanup(self): self.__disableCollisions(cleanup=True) for sphere in self._colSpheres: sphere.remove() self._colSpheres = [] PhasedObject.cleanup(self)
def cleanup(self): """ Disables all collisions. Ignores all owned event listeners. Unloads all unloaded phases. """ self.__disableCollisions(cleanup = True) for sphere in self._colSpheres: sphere.remove() self._colSpheres = [] PhasedObject.cleanup(self)
def cleanup(self): """ Disables all collisions. Ignores all owned event listeners. Unloads all unloaded phases. """ self.__disableCollisions(cleanup=True) for sphere in self._colSpheres: sphere.remove() self._colSpheres = [] PhasedObject.cleanup(self)