Class DragForce
Force that pushes particles in its direction.
Inheritance
DragForce
Implements
Inherited Members
Namespace: Evergine.Framework.Particles.Forces
Assembly: Evergine.Framework.dll
Syntax
public class DragForce : 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 |
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 system. |
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 system. |
TimeSpan | ellapsedTime |
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 system. |