Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_DRAG
Default drag value.
|
Constructor and Description |
---|
Drag()
Creates a drag with the default value.
|
Drag(float drag)
Creates a drag with the given value.
|
Modifier and Type | Method and Description |
---|---|
Particle |
apply(Particle p)
Applies this drag to the given particle.
|
Drag |
setDrag(float drag)
Sets the drag to the given value.
|
public static final float DEFAULT_DRAG
public Drag()
public Drag(float drag)
drag
- Drag to apply to particles.public Drag setDrag(float drag)
drag
- Drag to apply to particles.