|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kinetic.Behavior | +--kinetic.HopSecondary
contains the derivative equation for the Hop behavior. It can be used by itself. However, if used in combination, it can drive secondary effect such as squash and stretch. All parameters with the exception of amount should match to synchronize with an existing Hop behavior
Field Summary | |
kinetic.KineticProperty |
amount
property to hold the offset amount |
kinetic.KineticProperty |
in
property to hold in starting speed |
kinetic.KineticProperty |
out
property to hold the endin speed |
Fields inherited from class kinetic.Behavior |
current_time, duration, isDone, owner, properties, timeFilters |
Constructor Summary | |
HopSecondary()
constructs a new instance of the HopSecondary behavior |
|
HopSecondary(double new_in,
double new_out,
double new_amount)
constructs a new instance of the HopSecondary behavior |
|
HopSecondary(double delay_val,
double dur_val,
double new_in,
double new_out,
double new_amount)
constructs a new instance of the HopSecondary behavior |
Method Summary | |
void |
Process()
main routine used to perfomr calculation |
void |
setamount(double new_amount)
sets the 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 HopSecondary()
public HopSecondary(double new_in, double new_out, double new_amount)
new_in
- startin speednew_out
- ending speednew_amount
- offset amountpublic HopSecondary(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
- new starting speedpublic void setOutAmount(double new_out)
new_out
- new ending speedpublic void setamount(double new_amount)
new_amount
- new offset amountpublic void Process()
Process
in class Behavior
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |