We're going to add two kinds of animation to our cycle. We'll make the discs at the front and rear of the cycle rotate in accordance with the throttle setting, and we'll make the cycle lean left and right when it turns. Because we don't want the
CollisionRays attached to the cycle to lean as well, we'll have to make accommodations for that.
importstatements to give us access to
from direct.actor.Actor import Actor
setupVarsNPs()method and look for the section where we use
ifstatements to position
self.rootand load the correct model. That section looks like the following code:
if(startPos == 1): self.root.setPos(5,0,0) ...