|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.nexttext.behaviour.AbstractAction net.nexttext.behaviour.dform.DForm net.nexttext.behaviour.dform.Pull
public class Pull
A DForm which pulls the TextObject towards a target.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.nexttext.behaviour.Action |
---|
Action.ActionResult |
Constructor Summary | |
---|---|
Pull(float x,
float y)
Constructor creates a Pull at x,y with a default speed and reach. |
|
Pull(float x,
float y,
float z)
Constructor creates a Pull at x,y,z with a default speed and reach. |
|
Pull(float x,
float y,
float speed,
float reach)
Constructor creates a Pull at x,y. |
|
Pull(float x,
float y,
float z,
float speed,
float reach)
Constructor creates a Pull at x,y,z. |
|
Pull(Locatable target)
Constructor creates a Pull at a target with a default speed of 10 and reach of 2. |
|
Pull(Locatable target,
float speed,
float reach)
Constructor creates a Pull at a target with a certain speed and reach. |
Method Summary | |
---|---|
Action.ActionResult |
behave(TextObjectGlyph to)
DForms generally just make sense on TextObjectGlyphs. |
void |
setTarget(float x,
float y)
Set a new target for this action. |
void |
setTarget(float x,
float y,
float z)
Set a new target for this action. |
void |
setTarget(Locatable target)
Set a new target for this action. |
void |
setTarget(processing.core.PVector target)
Set a new target for this action. |
Methods inherited from class net.nexttext.behaviour.dform.DForm |
---|
behave, getControlPoints |
Methods inherited from class net.nexttext.behaviour.AbstractAction |
---|
behave, behave, complete, getDisplayName, getRequiredProperties, makeBehaviour, properties, setDisplayName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.nexttext.behaviour.Action |
---|
behave, behave, behave, complete, getRequiredProperties |
Constructor Detail |
---|
public Pull(Locatable target, float speed, float reach)
target
- attraction pointspeed
- is the speed with which the points are pulled.reach
- will pull farther points faster with a higher value.public Pull(Locatable target)
target
- attraction pointpublic Pull(float x, float y, float speed, float reach)
x
- y
- speed
- reach
- public Pull(float x, float y)
x
- y
- public Pull(float x, float y, float z)
x
- y
- z
- public Pull(float x, float y, float z, float speed, float reach)
x
- y
- z
- speed
- reach
- Method Detail |
---|
public Action.ActionResult behave(TextObjectGlyph to)
DForm
behave
in class DForm
public void setTarget(float x, float y)
TargetingAction
setTarget
in interface TargetingAction
public void setTarget(float x, float y, float z)
TargetingAction
setTarget
in interface TargetingAction
public void setTarget(processing.core.PVector target)
TargetingAction
setTarget
in interface TargetingAction
public void setTarget(Locatable target)
TargetingAction
setTarget
in interface TargetingAction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |