查看完整版本: [转]粒子表达式特效

黑不白 2006-12-17 21:10

[转]粒子表达式特效

[size=2]粒子表达式特效表达式:runtime
if(particleShape1.event==5)
particleShape1.lifespanPP=0;
float $rad=3;
if(particleShape1.event==0)
particleShape1.radiusPP=$rad;
else if(particleShape1.event==1)
particleShape1.radiusPP=$rad*0.8;
else if(particleShape1.event==2)
particleShape1.radiusPP=$rad*0.6;
else if(particleShape1.event==3)
particleShape1.radiusPP=$rad*0.4;
else if(particleShape1.event==4)
particleShape1.radiusPP=$rad*0.2;
else if(particleShape1.event==5)
particleShape1.radiusPP=$rad*0;
$rot=particleShape1.rotRate*30*(0.04*(mag(particleShape1.velocity)));
particleShape1.origRotation+=>;
表达式:creation
particleShape1.origRotation=rand(>,>);
particleShape1.rotRate=rand(-1,1);[/size]
[img]http://www.a798training.com/bbs/UploadFile/2006-10/200610121211287153.gif[/img]
页: [1]
查看完整版本: [转]粒子表达式特效
查看完整版本: [转]粒子表达式特效