Class AnimationNodeBlendSpace1D
A set of AnimationRootNodes placed on a virtual axis, crossfading between the two adjacent ones. Used by AnimationTree.
- Inheritance
-
AnimationNodeBlendSpace1D
Remarks
A resource used by AnimationNodeBlendTree.
AnimationNodeBlendSpace1D represents a virtual axis on which any type of AnimationRootNodes can be added using AnimationNodeBlendSpace1D.add_blend_point. Outputs the linear blend of the two AnimationRootNodes adjacent to the current value.
You can set the extents of the axis with min_space and max_space.
See Also
Properties
blend_mode
Controls the interpolation between animations. See BlendMode constants.
var blend_mode : int = 0
Property Value
Remarks
max_space
The blend space's axis's upper limit for the points' position. See AnimationNodeBlendSpace1D.add_blend_point.
var max_space : float = 1.0
Property Value
Remarks
min_space
The blend space's axis's lower limit for the points' position. See AnimationNodeBlendSpace1D.add_blend_point.
var min_space : float = -1.0
Property Value
Remarks
snap
Position increment to snap to when moving a point on the axis.
var snap : float = 0.1
Property Value
Remarks
sync
If false
, the blended animations' frame are stopped when the blend value is 0
.
If true
, forcing the blended animations to advance frame.
var sync : bool = false
Property Value
Remarks
value_label
Label of the virtual axis of the blend space.
var value_label : String = "value"
Property Value
Remarks
Methods
add_blend_point(AnimationRootNode, float, int)
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 at_index
argument. If you use the default value for at_index
, the point is inserted at the end of the blend points array.
void add_blend_point(AnimationRootNode node, float pos, int at_index)
Parameters
node
AnimationRootNodepos
floatat_index
int
get_blend_point_count
Qualifiers: const
Returns the number of points on the blend axis.
int get_blend_point_count
get_blend_point_node(int)
Qualifiers: const
Returns the AnimationNode referenced by the point at index point
.
AnimationRootNode get_blend_point_node(int point)
Parameters
point
int
get_blend_point_position(int)
Qualifiers: const
Returns the position of the point at index point
.
float get_blend_point_position(int point)
Parameters
point
int
remove_blend_point(int)
Removes the point at index point
from the blend axis.
void remove_blend_point(int point)
Parameters
point
int
set_blend_point_node(int, AnimationRootNode)
Changes the AnimationNode referenced by the point at index point
.
void set_blend_point_node(int point, AnimationRootNode node)
Parameters
point
intnode
AnimationRootNode
set_blend_point_position(int, float)
Updates the position of the point at index point
on the blend axis.
void set_blend_point_position(int point, float pos)