class AnimationNodeBlendSpace1D
package godot
extends AnimationRootNode › AnimationNode › Resource › Reference › Object
A resource to add to an godot.AnimationNodeBlendTree
.
This is a virtual axis on which you can add any type of godot.AnimationNode
using godot.AnimationNodeBlendSpace1D.addBlendPoint
.
Outputs the linear blend of the two godot.AnimationNode
s closest to the node's current value.
You can set the extents of the axis using the godot.AnimationNodeBlendSpace1D.minSpace
and godot.AnimationNodeBlendSpace1D.maxSpace
.
Constructor
Variables
maxSpace:Single
The blend space's axis's upper limit for the points' position. See godot.AnimationNodeBlendSpace1D.addBlendPoint
.
minSpace:Single
The blend space's axis's lower limit for the points' position. See godot.AnimationNodeBlendSpace1D.addBlendPoint
.
Methods
addBlendPoint(node:AnimationRootNode, pos:Single, ?atIndex:Int):Void
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.
getBlendPointNode(point:Int):AnimationRootNode
Returns the godot.AnimationNode
referenced by the point at index point
.
setBlendPointNode(point:Int, node:AnimationRootNode):Void
Changes the godot.AnimationNode
referenced by the point at index point
.
setBlendPointPosition(point:Int, pos:Single):Void
Updates the position of the point at index point
on the blend axis.