Namespace: DeltaEngine.Rendering3D.Particles
Assembly: DeltaEngine.Rendering3D.Particles (in DeltaEngine.Rendering3D.Particles.dll) Version: 1.1.1.0 (1.1.1)
Top
Top
Tests: DeltaEngine.Rendering3D.Particles.Tests.Particle2DEmitterTests
69 unit tests call DeltaEngine.Rendering3D.Particles.Particle
Assembly: DeltaEngine.Rendering3D.Particles (in DeltaEngine.Rendering3D.Particles.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The Particle type exposes the following members.
Methods
Name | Description | |
---|---|---|
GetVertices | ||
Lerp | ||
SetStartVelocityRandomizedFromRange | ||
UpdateEscapingParticleIfStillActive | ||
UpdateIfStillActive | ||
UpdateRoundingParticleIfStillActive |
Properties
Name | Description | |
---|---|---|
Acceleration | ||
Color | ||
CurrentFrame | ||
CurrentMovement | ||
CurrentUV | ||
ElapsedTime | ||
IsActive | ||
Material | ||
Position | ||
Rotation | ||
Size |
Remarks
Examples
[Test, Category("Slow")] public void Render1000Particles() { CreateDataAndEmitter(1000, 0.01f, 10); emitter.Position = new Vector2D(0.5f, 0.4f); Rectangle fpsDrawArea = Rectangle.FromCenter(0.5f, 0.25f, 0.2f, 0.2f); new FpsDisplay(emitter, fpsDrawArea); } //ncrunch: no coverage end
[Test] public void Render2000Particles() { var emitters = new[] { new ParticleEmitter(CreateData(1000, 0.01f, 10), new Vector2D(0.3f, 0.5f)), new ParticleEmitter(CreateData(1000, 0.01f, 10), new Vector2D(0.7f, 0.5f)) }; new FpsDisplay(emitters, Rectangle.FromCenter(0.5f, 0.25f, 0.2f, 0.2f)); }
[Test] public void ParticlesAreEmittedAtMousePosition() { CreateDataAndEmitter(1024, 0.01f, 5); new Command(position => emitter.Position = position).Add(new MouseMovementTrigger()); }
See Also