Package teilchen.force
Class Attractor
- java.lang.Object
-
- teilchen.force.Attractor
-
- All Implemented Interfaces:
IForce
- Direct Known Subclasses:
DirectedAttractor
public class Attractor extends java.lang.Object implements IForce
-
-
Constructor Summary
Constructors Constructor Description Attractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
active()
void
active(boolean pActiveState)
void
apply(float pDeltaTime, Physics pParticleSystem)
boolean
dead()
void
dead(boolean pDead)
long
ID()
processing.core.PVector
position()
float
radius()
void
radius(float pRadius)
void
setPositionRef(processing.core.PVector pPosition)
float
strength()
void
strength(float pStrength)
-
-
-
Method Detail
-
position
public processing.core.PVector position()
-
setPositionRef
public void setPositionRef(processing.core.PVector pPosition)
-
strength
public float strength()
-
strength
public void strength(float pStrength)
-
radius
public float radius()
-
radius
public void radius(float pRadius)
-
apply
public void apply(float pDeltaTime, Physics pParticleSystem)
-
-