Exemplo n.º 1
0
 def hitSomebody(self, avId, timeStamp):
     if localAvatar.doId != avId:
         kart = DistributedVehicle.getKartFromAvId(avId)
         if kart:
             self.nodePath.hide()
             if hasattr(self, 'bnp'):
                 self.bnp.removeNode()
             kart.playSpin(timeStamp)
Exemplo n.º 2
0
 def hitSomebody(self, avId, timeStamp):
     if localAvatar.doId != avId:
         kart = DistributedVehicle.getKartFromAvId(avId)
         if kart:
             self.nodePath.hide()
             if hasattr(self, 'bnp'):
                 self.bnp.remove()
             kart.playSpin(timeStamp)