The task manager starts with some important tasks already assigned to it. Let's go ahead and print the list of tasks so we can see what the task manager is up to.
Let's start where we left off last chapter. Open up
chp02_11.py
and resave it in theChapter03
folder aschp03_01.py
.We only need to add one line of code to the
__init__
method to accomplish our goal here. At the end of the method add the following line:print(taskMgr)
We can also remove the Render Attribute changes we have made, and we should make sure that all of our model
NodePaths
are reparented torender
instead of anything else.class World: def __init__(self): base.setBackgroundColor(0, 0, 0) self.track = loader.loadModel("../Models/Track.egg") self.track.reparentTo(render) self.track.setPos(0,0,-5) self.cycle1 = loader.loadModel("../Models/Cycle.bam") self.cycle1.reparentTo(render) self.cycle1.setPos(2,15,0) self.cycle2 = loader...