Class PointAttractorForce
Forces that attracts particles to a point.
Inheritance
PointAttractorForce
  Implements
Inherited Members
Namespace: Evergine.Framework.Particles.Forces
Assembly: Evergine.Framework.dll
Syntax
public class PointAttractorForce : BaseForce, IDependencyObject
  Properties
CutoutEnabled
Gets or sets a value indicating whether the attractor has cutout.
Declaration
[RenderProperty(Tag = 2)]
public bool CutoutEnabled { get; set; }
  Property Value
| Type | Description | 
|---|---|
| bool | 
CutoutRange
Gets or sets the cutout range.
Declaration
[RenderProperty(AttachToTag = 2, AttachToValue = true)]
public float CutoutRange { get; set; }
  Property Value
| Type | Description | 
|---|---|
| float | 
CutoutStrength
Gets or sets the cutout strength.
Declaration
[RenderProperty(AttachToTag = 2, AttachToValue = true)]
public float CutoutStrength { get; set; }
  Property Value
| Type | Description | 
|---|---|
| float | 
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 emitterSimulator, TimeSpan ellapsedTime)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ComputeTaskDecorator | computeTask | The compute task to refresh.  | 
      
| CommandBuffer | commandBuffer | The command buffer.  | 
      
| ComputeEmitterSimulator | emitterSimulator | |
| 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 emitterSimulator)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ComputeTaskDecorator | computeTask | The compute task to refresh.  | 
      
| ComputeEmitterSimulator | emitterSimulator |