DragAffector
Declaration
public class Strawberry.Graphics.ParticleSystem.DragAffector
An affector applying drag/air resistance to particle velocity.
Implements: Strawberry.Graphics.ParticleSystem.IParticleAffector
Constructors
DragAffector
void DragAffector()
DragAffector
void DragAffector(float drag)
Parameters:
| Name | Type | Description |
|---|---|---|
drag |
System.Single |
Fields
Drag
float Drag
Methods
Update
void Update(ref Particle particle, float dt)
Parameters:
| Name | Type | Description |
|---|---|---|
particle |
ref Strawberry.Graphics.ParticleSystem.Particle |
|
dt |
System.Single |