public class TimingNode extends ValueNode implements NodeCanFinish
ValueNode
that will linearly update its value from 0 to 1.0 over the course of the
given duration.DEFAULT_INPUT
Constructor and Description |
---|
TimingNode(int durationMs) |
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.
|
public float calculateValue(long frameTimeNanos)
ValueNode
calculateValue
in class ValueNode
public boolean isFinished()
NodeCanFinish
isFinished
in interface NodeCanFinish