AnimationNodeBlendSpace1D
Blends linearly between two of any number of AnimationNode of any type placed on a virtual axis.
A resource to add to an AnimationNodeBlendTree.
This is a virtual axis on which you can add any type of using add_blend_point.
Outputs the linear blend of the two s closest to the node’s current value.
You can set the extents of the axis using the min_space and .
Tutorials
Methods
void | add_blend_point ( node, float pos, at_index=-1 ) |
( ) const | |
get_blend_point_node ( point ) const | |
( int point ) const | |
void | ( int point ) |
void | ( int point, node ) |
void | set_blend_point_position ( point, float pos ) |
- float max_space
The blend space’s axis’s upper limit for the points’ position. See .
- float min_space
Default | |
Setter | set_min_space(value) |
Getter |
The blend space’s axis’s lower limit for the points’ position. See .
- float snap
Position increment to snap to when moving a point on the axis.
- value_label
Default |
|
Setter | set_value_label(value) |
Getter | get_value_label() |
Label of the virtual axis of the blend space.
Method Descriptions
Adds a new point that represents a node
on the virtual axis at a given position set by pos
. You can insert it at a specific index using the argument. If you use the default value for at_index
, the point is inserted at the end of the blend points array.
- get_blend_point_count ( ) const
Returns the number of points on the blend axis.
- AnimationRootNode get_blend_point_node ( point ) const
Returns the AnimationNode referenced by the point at index point
.
- get_blend_point_position ( int point ) const
Returns the position of the point at index point
.
- void remove_blend_point ( point )
Removes the point at index point
from the blend axis.
- void set_blend_point_node ( int point, node )
Changes the AnimationNode referenced by the point at index .