public class AnimatedPropertyNode extends ValueNode
If there is no input hooked up to this node, it will output the current value of this property on the current mount content. Otherwise, this node will set the property of the given mount content to that input value and pass on that value as an output.
DEFAULT_INPUT
Constructor and Description |
---|
AnimatedPropertyNode(OutputUnitsAffinityGroup<Object> mountContentGroup,
AnimatedProperty animatedProperty) |
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).
|
void |
setMountContentGroup(OutputUnitsAffinityGroup<Object> mountContentGroup)
Sets the mount content that this
AnimatedPropertyNode updates a value on. |
void |
setValue(float value)
Manually sets the current value.
|
public AnimatedPropertyNode(OutputUnitsAffinityGroup<Object> mountContentGroup, AnimatedProperty animatedProperty)
public void setMountContentGroup(OutputUnitsAffinityGroup<Object> mountContentGroup)
AnimatedPropertyNode
updates a value on.public void setValue(float value)
ValueNode
public float calculateValue(long frameTimeNanos)
ValueNode
calculateValue
in class ValueNode