public class SpringNode extends ValueNode implements NodeCanFinish
Modifier and Type | Field and Description |
---|---|
static String |
END_INPUT |
static String |
INITIAL_INPUT |
static double |
NS_PER_SECOND |
DEFAULT_INPUT
Constructor and Description |
---|
SpringNode() |
SpringNode(SpringConfig springConfig) |
Modifier and Type | Method and Description |
---|---|
float |
calculateValue(long frameTimeNanos)
This node should calculate and set a new value based on frame time and its parents (the nodes
it depends on).
|
boolean |
isFinished()
Called by framework code to determine whether a node is finished.
|
void |
onInputsFinished()
Called once the first time all of this nodes inputs have finished.
|
public static final double NS_PER_SECOND
public static final String INITIAL_INPUT
public static final String END_INPUT
public SpringNode()
public SpringNode(SpringConfig springConfig)
public float calculateValue(long frameTimeNanos)
ValueNode
calculateValue
in class ValueNode
public boolean isFinished()
NodeCanFinish
isFinished
in interface NodeCanFinish
public void onInputsFinished()
NodeCanFinish
onInputsFinished
in interface NodeCanFinish