本文整理汇总了C#中ParticleEmitter.setActive方法的典型用法代码示例。如果您正苦于以下问题:C# ParticleEmitter.setActive方法的具体用法?C# ParticleEmitter.setActive怎么用?C# ParticleEmitter.setActive使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ParticleEmitter
的用法示例。
在下文中一共展示了ParticleEmitter.setActive方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InstantExplosionWeapon
public InstantExplosionWeapon(string defaultPath, Camera camera)
{
if (sound == null)
sound = new Sound(defaultPath + "Audio/laserfire3.wav");
this.reloadTime = 1000;
this.damage = 10;
Texture t = new BasicTexture(defaultPath + "Texture/Particle/p.png");
this.position = new Vector3f();
this.direction = new Vector3f();
pe = new PointEmitter(position);
Vector3f maxV = new Vector3f(10.0f, 10.0f, 10.0f);
Vector3f minV = maxV * -1.0f;
Vector3f g = new Vector3f(0.0f, -0.001f, 0.0f);
Color4f minC = new Color4f(1.0f, 0.7f, 0.7f, 0.0f);
Color4f maxC = new Color4f(1.0f, 1.0f, 1.0f, 1.0f);
pf = new BillboardedParticleFactory(t, minV, maxV, g, 0.0f, 1.0f, minC, maxC, 0.2f);
ps = new ParticleSystem(pe, pf, camera, false, 0.1f, 1000);
pe.setActive(false);
ps.reset();
}