|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kinetic.Behavior | +--kinetic.Hop
generates an upside down parabolic like offset. The speed at the start and end points are adjustable as well as the hop height. A parabola is approximated by setting in and out to both 0.7. Amount may be negative to flip the result.
Field Summary | |
kinetic.KineticProperty |
amount
property to hold the hop hieght |
kinetic.KineticProperty |
in
property to hold the starting speed |
kinetic.KineticProperty |
out
property to hold the ending speed |
Fields inherited from class kinetic.Behavior |
current_time, duration, isDone, owner, properties, timeFilters |
Constructor Summary | |
Hop()
creates a new instance of the Hop behavior |
|
Hop(double new_in,
double new_out,
double new_amount)
creates a new isntance of the Hop behavior with only Hop parameters |
|
Hop(double delay_val,
double dur_val,
double new_in,
double new_out,
double new_amount)
creates a new instance of the Hop behavior with more parameters |
Method Summary | |
void |
Process()
main routine that makes the calculation |
void |
setamount(double new_amount)
sets the peak offset amount |
void |
setInAmount(double new_in)
sets the starting speed |
void |
setOutAmount(double new_out)
sets the ending speed |
Methods inherited from class kinetic.Behavior |
addTimeFilter, apply, clear, getDuration, getPropertyList, getTimeFilterList, isDone, PrepareVariables, reset, setOwner |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public kinetic.KineticProperty in
public kinetic.KineticProperty out
public kinetic.KineticProperty amount
Constructor Detail |
public Hop()
public Hop(double new_in, double new_out, double new_amount)
new_in
- starting speednew_out
- ending speednew_amount
- offset amountpublic Hop(double delay_val, double dur_val, double new_in, double new_out, double new_amount)
delay_val
- delay - msdur_val
- duration - msnew_in
- startin speednew_out
- ending speednew_amount
- offset amountMethod Detail |
public void setInAmount(double new_in)
new_in
- starting speedpublic void setOutAmount(double new_out)
new_out
- ending speedpublic void setamount(double new_amount)
new_amount
- offset amountpublic void Process()
Process
in class Behavior
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |