AnimationNodeBlendSpace1D

Inherits: AnimationRootNode < AnimationNode < Resource < Reference < Object

Blends linearly between two of any number of AnimationNode of any type placed on a virtual axis.

Description

A resource to add to an AnimationNodeBlendTree.

This is a virtual axis on which you can add any type of AnimationNode using add_blend_point.

Outputs the linear blend of the two AnimationNodes closest to the node’s current value.

You can set the extents of the axis using the min_space and max_space.

Tutorials

Property Descriptions

Default1.0
Setterset_max_space(value)
Getterget_max_space()

The blend space’s axis’s upper limit for the points’ position. See add_blend_point.


Default-1.0
Setterset_min_space(value)
Getterget_min_space()

The blend space’s axis’s lower limit for the points’ position. See add_blend_point.


Default0.1
Setterset_snap(value)
Getterget_snap()

Position increment to snap to when moving a point on the axis.


Default"value"
Setterset_value_label(value)
Getterget_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 at_index argument. If you use the default value for at_index, the point is inserted at the end of the blend points array.


  • int get_blend_point_count ( ) const

Returns the number of points on the blend axis.


Returns the AnimationNode referenced by the point at index point.


  • float get_blend_point_position ( int point ) const

Returns the position of the point at index point.


  • void remove_blend_point ( int point )

Removes the point at index point from the blend axis.


Changes the AnimationNode referenced by the point at index point.


  • void set_blend_point_position ( int point, float pos )

Updates the position of the point at index point on the blend axis.

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.