#--------------------------------------------------
# Function: onSimulationBegin
#--------------------------------------------------
def onSimulationBegin():
pass
#--------------------------------------------------
# Function: onSimulationStep
#--------------------------------------------------
def onSimulationStep():
firstP = scene.getEmitter("lizi_A")
secondP = scene.getEmitter("lizi_B")
particles = firstP.getParticlesColliding()
for particle in particles:
pos = particle.getPosition()
vel = particle.getVelocity()
secondP.addParticle(pos, vel)
firstP.removeParticle(particle.getId())
#--------------------------------------------------
# Function: onSimulationFrame
#--------------------------------------------------
def onSimulationFrame():
pass
#--------------------------------------------------
# Function: onSimulationEnd
#--------------------------------------------------
def onSimulationEnd():
pass
#--------------------------------------------------
# Function: onChangeToFrame
#--------------------------------------------------
def onChangeToFrame():
pass
#--------------------------------------------------
多亏了网友 (handWheel) 帮助,在此感谢他。
评论