def generate(self):
        DistributedSmoothNode.generate(self)

        self.activateSmoothing(True, False)
        self.startSmooth()
        self.accept("showAvId", self.__showAvId)
        self.accept("showName", self.__showName)
Пример #2
0
 def generate(self):
     DistributedSmoothNode.generate(self)
     self.name = self.uniqueName('projectile')
     self.posHprBroadcastName = self.uniqueName('projectileBroadcast')
     geom = loader.loadModel('models/smiley')
     self.geom = geom
     self.geom.reparentTo(self)
     self.startSmooth()
     self.reparentTo(render)
Пример #3
0
 def generate(self):
     DistributedSmoothNode.generate(self)
     self.name = self.uniqueName('projectile')
     self.posHprBroadcastName = self.uniqueName('projectileBroadcast')
     geom = loader.loadModel('models/smiley')
     self.geom = geom
     self.geom.reparentTo(self)
     self.startSmooth()
     self.reparentTo(render)
Пример #4
0
    def generate(self):
        """ This method is called when the object is generated: when it
        manifests for the first time on a particular client, or when it
        is pulled out of the cache after a previous manifestation.  At
        the time of this call, the object has been created, but its
        required fields have not yet been filled in. """

        # Always call up to parent class
        DistributedSmoothNode.generate(self)

        self.setPythonTag('avId', self.doId)
Пример #5
0
    def generate(self):
        DistributedSmoothNode.generate(self)
        self.name = self.uniqueName('projectile')
        self.posHprBroadcastName = self.uniqueName('projectileBroadcast')

        geom = loader.loadModel("models/smiley")
        self.geom = geom
        self.geom.reparentTo(self)
        self.startSmooth()

        #self.__enableCollisions()

        ###########################################################
        # Add the kart to the scene
        self.reparentTo(render)
Пример #6
0
    def generate(self):
        """ This method is called when the object is generated: when it
        manifests for the first time on a particular client, or when it
        is pulled out of the cache after a previous manifestation.  At
        the time of this call, the object has been created, but its
        required fields have not yet been filled in. """

        # Always call up to parent class
        DistributedSmoothNode.generate(self)

        # We can activate smoothing on this avatar as soon as it's
        # generated.
        self.activateSmoothing(True, False)

        # We also need to start the smooth task, which computes the
        # new smoothed position every frame.  Let's keep this task
        # running as long as the avatar is generated.
        self.startSmooth()
Пример #7
0
    def generate(self):
        DistributedSmoothNode.generate(self)

        self.activateSmoothing(True, False)

        self.startSmooth()        
 def generate(self):
     DistributedAvatar.generate(self)
     DistributedSmoothNode.generate(self)
Пример #9
0
 def generate(self):
     DistributedSmoothNode.generate(self)
     DistributedTargetableObject.generate(self)
     if base.config.GetBool('create-client-coll-spheres', 0) is 1:
         self.setupDebugCollisions()
Пример #10
0
 def generate(self):
     DistributedAvatar.generate(self)
     DistributedSmoothNode.generate(self)
     self.startSmooth()
 def generate(self):
     DistributedSmoothNode.generate(self)
     self.activateSmoothing(True, False)
     self.startSmooth()
Пример #12
0
 def generate(self):
     DistributedSmoothNode.generate(self)
     self.activateSmoothing(True, False)
     self.startSmooth()
     self.accept('showAvId', self.__showAvId)
     self.accept('showName', self.__showName)