コード例 #1
0
 def playCrushMovie(self, crusherId, axis):
     goonPos = self.getPos()
     sx = random.uniform(0.3, 0.8) * self.scale
     sz = random.uniform(0.3, 0.8) * self.scale
     crushTrack = Sequence(GoonDeath.createGoonExplosion(self.getParent(), goonPos, VBase3(sx, 1, sz)), name=self.uniqueName('crushTrack'), autoFinish=1)
     self.dead()
     crushTrack.start()
コード例 #2
0
 def playCrushMovie(self, crusherId, axis):
     goonPos = self.getPos()
     sx = random.uniform(0.29999999999999999, 0.80000000000000004) * self.scale
     sz = random.uniform(0.29999999999999999, 0.80000000000000004) * self.scale
     crushTrack = Sequence(GoonDeath.createGoonExplosion(self.getParent(), goonPos, VBase3(sx, 1, sz)), name = self.uniqueName('crushTrack'), autoFinish = 1)
     self.dead()
     crushTrack.start()