Class WindForce
Forces that pushes particles in its direction.
Inheritance
WindForce
  Implements
Inherited Members
Namespace: Evergine.Framework.Particles.Forces
Assembly: Evergine.Framework.dll
Syntax
public class WindForce : BaseForce, IDependencyObject
  Properties
ForceType
Gets the force type.
Declaration
public override ForceTypes ForceType { get; }
  Property Value
| Type | Description | 
|---|---|
| ForceTypes | 
Overrides
Methods
ApplyForce(int, ref ParticleVertex, ref ParticleStateB, float)
Apply force to a single particle.
Declaration
protected override void ApplyForce(int id, ref ParticleVertex p, ref ParticleStateB pB, float ellapsedTime)
  Parameters
| Type | Name | Description | 
|---|---|---|
| int | id | The id of the particle.  | 
      
| ParticleVertex | p | The particle pointer.  | 
      
| ParticleStateB | pB | The particle struct B pointer.  | 
      
| float | ellapsedTime | The ellapsed time in seconds.  | 
      
Overrides
CreateComputeTask(ComputeEmitterSimulator)
Creates a compute task for a particle system.
Declaration
public override ComputeTaskDecorator CreateComputeTask(ComputeEmitterSimulator particleSystem)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ComputeEmitterSimulator | particleSystem | The particle systme.  | 
      
Returns
| Type | Description | 
|---|---|
| ComputeTaskDecorator | The compute task.  | 
      
Overrides
RefreshComputeMatrices(ComputeTaskDecorator, CommandBuffer, ComputeEmitterSimulator, TimeSpan)
Refreshes a compute task matrices for a particle system.
Declaration
public override void RefreshComputeMatrices(ComputeTaskDecorator computeTask, CommandBuffer commandBuffer, ComputeEmitterSimulator particleSystem, TimeSpan ellapsedTime)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ComputeTaskDecorator | computeTask | The compute task to refresh.  | 
      
| CommandBuffer | commandBuffer | The command buffer.  | 
      
| ComputeEmitterSimulator | particleSystem | The particle systme.  | 
      
| TimeSpan | ellapsedTime | The ellapsed time.  | 
      
Overrides
RefreshComputeParams(ComputeTaskDecorator, ComputeEmitterSimulator)
Refreshes a compute task for a particle system.
Declaration
public override void RefreshComputeParams(ComputeTaskDecorator computeTask, ComputeEmitterSimulator particleSystem)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ComputeTaskDecorator | computeTask | The compute task to refresh.  | 
      
| ComputeEmitterSimulator | particleSystem | The particle systme.  |