public class SpringNode extends ValueNode implements NodeCanFinish
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
END_INPUT |
static java.lang.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.
|
public static final double NS_PER_SECOND
public static final java.lang.String INITIAL_INPUT
public static final java.lang.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