2018-07-26 09:56:21 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-03-01 00:44:37 +00:00
<class name= "AnimationNodeBlendSpace1D" inherits= "AnimationRootNode" version= "4.1" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2018-07-26 09:56:21 +00:00
<brief_description >
2019-06-04 00:01:24 +00:00
Blends linearly between two of any number of [AnimationNode] of any type placed on a virtual axis.
2018-07-26 09:56:21 +00:00
</brief_description>
<description >
2019-06-04 00:01:24 +00:00
A resource to add to an [AnimationNodeBlendTree].
This is a virtual axis on which you can add any type of [AnimationNode] using [method add_blend_point].
2020-01-23 10:14:14 +00:00
Outputs the linear blend of the two [AnimationNode]s closest to the node's current value.
2019-06-04 00:01:24 +00:00
You can set the extents of the axis using the [member min_space] and [member max_space].
2018-07-26 09:56:21 +00:00
</description>
<tutorials >
2021-11-15 09:43:07 +00:00
<link title= "AnimationTree" > $DOCS_URL/tutorials/animation/animation_tree.html</link>
2018-07-26 09:56:21 +00:00
</tutorials>
<methods >
<method name= "add_blend_point" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "node" type= "AnimationRootNode" />
<param index= "1" name= "pos" type= "float" />
<param index= "2" name= "at_index" type= "int" default= "-1" />
2018-07-26 09:56:21 +00:00
<description >
2022-08-12 17:51:01 +00:00
Adds a new point that represents a [param node] on the virtual axis at a given position set by [param pos]. You can insert it at a specific index using the [param at_index] argument. If you use the default value for [param at_index], the point is inserted at the end of the blend points array.
2018-07-26 09:56:21 +00:00
</description>
</method>
<method name= "get_blend_point_count" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
2018-07-26 09:56:21 +00:00
<description >
2019-06-04 00:01:24 +00:00
Returns the number of points on the blend axis.
2018-07-26 09:56:21 +00:00
</description>
</method>
<method name= "get_blend_point_node" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "AnimationRootNode" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "point" type= "int" />
2018-07-26 09:56:21 +00:00
<description >
2022-08-12 17:51:01 +00:00
Returns the [AnimationNode] referenced by the point at index [param point].
2018-07-26 09:56:21 +00:00
</description>
</method>
<method name= "get_blend_point_position" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "point" type= "int" />
2018-07-26 09:56:21 +00:00
<description >
2022-08-12 17:51:01 +00:00
Returns the position of the point at index [param point].
2018-07-26 09:56:21 +00:00
</description>
</method>
<method name= "remove_blend_point" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "point" type= "int" />
2018-07-26 09:56:21 +00:00
<description >
2022-08-12 17:51:01 +00:00
Removes the point at index [param point] from the blend axis.
2018-07-26 09:56:21 +00:00
</description>
</method>
<method name= "set_blend_point_node" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "point" type= "int" />
<param index= "1" name= "node" type= "AnimationRootNode" />
2018-07-26 09:56:21 +00:00
<description >
2022-08-12 17:51:01 +00:00
Changes the [AnimationNode] referenced by the point at index [param point].
2018-07-26 09:56:21 +00:00
</description>
</method>
<method name= "set_blend_point_position" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "point" type= "int" />
<param index= "1" name= "pos" type= "float" />
2018-07-26 09:56:21 +00:00
<description >
2022-08-12 17:51:01 +00:00
Updates the position of the point at index [param point] on the blend axis.
2018-07-26 09:56:21 +00:00
</description>
</method>
</methods>
<members >
2023-01-30 17:12:31 +00:00
<member name= "blend_mode" type= "int" setter= "set_blend_mode" getter= "get_blend_mode" enum= "AnimationNodeBlendSpace1D.BlendMode" default= "0" >
Controls the interpolation between animations. See [enum BlendMode] constants.
</member>
2019-06-29 10:38:01 +00:00
<member name= "max_space" type= "float" setter= "set_max_space" getter= "get_max_space" default= "1.0" >
2019-06-04 00:01:24 +00:00
The blend space's axis's upper limit for the points' position. See [method add_blend_point].
2018-07-26 09:56:21 +00:00
</member>
2019-06-29 10:38:01 +00:00
<member name= "min_space" type= "float" setter= "set_min_space" getter= "get_min_space" default= "-1.0" >
2019-06-04 00:01:24 +00:00
The blend space's axis's lower limit for the points' position. See [method add_blend_point].
2018-07-26 09:56:21 +00:00
</member>
2019-06-29 10:38:01 +00:00
<member name= "snap" type= "float" setter= "set_snap" getter= "get_snap" default= "0.1" >
2019-06-04 00:01:24 +00:00
Position increment to snap to when moving a point on the axis.
2018-07-26 09:56:21 +00:00
</member>
2022-06-29 06:35:29 +00:00
<member name= "sync" type= "bool" setter= "set_use_sync" getter= "is_using_sync" default= "false" >
If [code]false[/code], the blended animations' frame are stopped when the blend value is [code]0[/code].
If [code]true[/code], forcing the blended animations to advance frame.
</member>
2019-06-29 10:38:01 +00:00
<member name= "value_label" type= "String" setter= "set_value_label" getter= "get_value_label" default= ""value"" >
2019-06-04 00:01:24 +00:00
Label of the virtual axis of the blend space.
2018-07-26 09:56:21 +00:00
</member>
</members>
2023-01-30 17:12:31 +00:00
<constants >
<constant name= "BLEND_MODE_INTERPOLATED" value= "0" enum= "BlendMode" >
The interpolation between animations is linear.
</constant>
<constant name= "BLEND_MODE_DISCRETE" value= "1" enum= "BlendMode" >
The blend space plays the animation of the node the blending position is closest to. Useful for frame-by-frame 2D animations.
</constant>
<constant name= "BLEND_MODE_DISCRETE_CARRY" value= "2" enum= "BlendMode" >
Similar to [constant BLEND_MODE_DISCRETE], but starts the new animation at the last animation's playback position.
</constant>
</constants>
2018-07-26 09:56:21 +00:00
</class>