We're going to cheat a little on this one. We won't test it right away because with the current
destroy method, garbage collection isn't going to happen.
Cycleclass inherits from
DirectObjectand is set to accept a message when it collides with another cycle. The Panda3D message system is going to retain a reference to the class instance. To get rid of that, we need to call
ignoreAll. Add this line of code to the
destroymethod, right before we set
self.shieldCN. Remember way back ...