Package teilchen.behavior
Class Motor
- java.lang.Object
-
- teilchen.behavior.Motor
-
public class Motor extends java.lang.Object implements IBehavior, Verhalten
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description processing.core.PVector
AUTO_RECOVER_DIRECTION
-
Fields inherited from interface teilchen.behavior.Verhalten
SMALLEST_ACCEPTABLE_DISTANCE
-
-
Constructor Summary
Constructors Constructor Description Motor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
active()
void
active(boolean pActive)
void
auto_normalize_direction(boolean pAutoNormalizeDirection)
void
auto_update_direction(boolean pAutoUpdateDirection)
processing.core.PVector
direction()
processing.core.PVector
force()
void
setDirectionRef(processing.core.PVector pDirection)
float
strength()
void
strength(float pStrength)
void
update(float pDeltaTime, IBehaviorParticle pParent)
float
weight()
void
weight(float pWeight)
-
-
-
Method Detail
-
active
public boolean active()
-
active
public void active(boolean pActive)
-
strength
public float strength()
-
strength
public void strength(float pStrength)
-
direction
public processing.core.PVector direction()
-
setDirectionRef
public void setDirectionRef(processing.core.PVector pDirection)
-
auto_update_direction
public void auto_update_direction(boolean pAutoUpdateDirection)
-
auto_normalize_direction
public void auto_normalize_direction(boolean pAutoNormalizeDirection)
-
update
public void update(float pDeltaTime, IBehaviorParticle pParent)
-
-