Struct AnimationNodeBlendSpace2D

Blends linearly between three AnimationNode of any type placed in a 2D space.

struct AnimationNodeBlendSpace2D ;

A resource to add to an AnimationNodeBlendTree. This node allows you to blend linearly between three animations using a Vector2 weight. You can add vertices to the blend space with addBlendPoint and automatically triangulate it by setting autoTriangles to true. Otherwise, use addTriangle and removeTriangle to create up the blend space by hand.

Properties

NameTypeDescription
autoTriangles[get, set] boolIf true, the blend space is triangulated automatically. The mesh updates every time you add or remove points with addBlendPoint and removeBlendPoint.
blendMode[get, set] AnimationNodeBlendSpace2D.BlendModeControls the interpolation between animations. See blendmode constants.
blendPoint0Node[get, set] AnimationRootNode
blendPoint0Pos[get, set] Vector2
blendPoint10Node[get, set] AnimationRootNode
blendPoint10Pos[get, set] Vector2
blendPoint11Node[get, set] AnimationRootNode
blendPoint11Pos[get, set] Vector2
blendPoint12Node[get, set] AnimationRootNode
blendPoint12Pos[get, set] Vector2
blendPoint13Node[get, set] AnimationRootNode
blendPoint13Pos[get, set] Vector2
blendPoint14Node[get, set] AnimationRootNode
blendPoint14Pos[get, set] Vector2
blendPoint15Node[get, set] AnimationRootNode
blendPoint15Pos[get, set] Vector2
blendPoint16Node[get, set] AnimationRootNode
blendPoint16Pos[get, set] Vector2
blendPoint17Node[get, set] AnimationRootNode
blendPoint17Pos[get, set] Vector2
blendPoint18Node[get, set] AnimationRootNode
blendPoint18Pos[get, set] Vector2
blendPoint19Node[get, set] AnimationRootNode
blendPoint19Pos[get, set] Vector2
blendPoint1Node[get, set] AnimationRootNode
blendPoint1Pos[get, set] Vector2
blendPoint20Node[get, set] AnimationRootNode
blendPoint20Pos[get, set] Vector2
blendPoint21Node[get, set] AnimationRootNode
blendPoint21Pos[get, set] Vector2
blendPoint22Node[get, set] AnimationRootNode
blendPoint22Pos[get, set] Vector2
blendPoint23Node[get, set] AnimationRootNode
blendPoint23Pos[get, set] Vector2
blendPoint24Node[get, set] AnimationRootNode
blendPoint24Pos[get, set] Vector2
blendPoint25Node[get, set] AnimationRootNode
blendPoint25Pos[get, set] Vector2
blendPoint26Node[get, set] AnimationRootNode
blendPoint26Pos[get, set] Vector2
blendPoint27Node[get, set] AnimationRootNode
blendPoint27Pos[get, set] Vector2
blendPoint28Node[get, set] AnimationRootNode
blendPoint28Pos[get, set] Vector2
blendPoint29Node[get, set] AnimationRootNode
blendPoint29Pos[get, set] Vector2
blendPoint2Node[get, set] AnimationRootNode
blendPoint2Pos[get, set] Vector2
blendPoint30Node[get, set] AnimationRootNode
blendPoint30Pos[get, set] Vector2
blendPoint31Node[get, set] AnimationRootNode
blendPoint31Pos[get, set] Vector2
blendPoint32Node[get, set] AnimationRootNode
blendPoint32Pos[get, set] Vector2
blendPoint33Node[get, set] AnimationRootNode
blendPoint33Pos[get, set] Vector2
blendPoint34Node[get, set] AnimationRootNode
blendPoint34Pos[get, set] Vector2
blendPoint35Node[get, set] AnimationRootNode
blendPoint35Pos[get, set] Vector2
blendPoint36Node[get, set] AnimationRootNode
blendPoint36Pos[get, set] Vector2
blendPoint37Node[get, set] AnimationRootNode
blendPoint37Pos[get, set] Vector2
blendPoint38Node[get, set] AnimationRootNode
blendPoint38Pos[get, set] Vector2
blendPoint39Node[get, set] AnimationRootNode
blendPoint39Pos[get, set] Vector2
blendPoint3Node[get, set] AnimationRootNode
blendPoint3Pos[get, set] Vector2
blendPoint40Node[get, set] AnimationRootNode
blendPoint40Pos[get, set] Vector2
blendPoint41Node[get, set] AnimationRootNode
blendPoint41Pos[get, set] Vector2
blendPoint42Node[get, set] AnimationRootNode
blendPoint42Pos[get, set] Vector2
blendPoint43Node[get, set] AnimationRootNode
blendPoint43Pos[get, set] Vector2
blendPoint44Node[get, set] AnimationRootNode
blendPoint44Pos[get, set] Vector2
blendPoint45Node[get, set] AnimationRootNode
blendPoint45Pos[get, set] Vector2
blendPoint46Node[get, set] AnimationRootNode
blendPoint46Pos[get, set] Vector2
blendPoint47Node[get, set] AnimationRootNode
blendPoint47Pos[get, set] Vector2
blendPoint48Node[get, set] AnimationRootNode
blendPoint48Pos[get, set] Vector2
blendPoint49Node[get, set] AnimationRootNode
blendPoint49Pos[get, set] Vector2
blendPoint4Node[get, set] AnimationRootNode
blendPoint4Pos[get, set] Vector2
blendPoint50Node[get, set] AnimationRootNode
blendPoint50Pos[get, set] Vector2
blendPoint51Node[get, set] AnimationRootNode
blendPoint51Pos[get, set] Vector2
blendPoint52Node[get, set] AnimationRootNode
blendPoint52Pos[get, set] Vector2
blendPoint53Node[get, set] AnimationRootNode
blendPoint53Pos[get, set] Vector2
blendPoint54Node[get, set] AnimationRootNode
blendPoint54Pos[get, set] Vector2
blendPoint55Node[get, set] AnimationRootNode
blendPoint55Pos[get, set] Vector2
blendPoint56Node[get, set] AnimationRootNode
blendPoint56Pos[get, set] Vector2
blendPoint57Node[get, set] AnimationRootNode
blendPoint57Pos[get, set] Vector2
blendPoint58Node[get, set] AnimationRootNode
blendPoint58Pos[get, set] Vector2
blendPoint59Node[get, set] AnimationRootNode
blendPoint59Pos[get, set] Vector2
blendPoint5Node[get, set] AnimationRootNode
blendPoint5Pos[get, set] Vector2
blendPoint60Node[get, set] AnimationRootNode
blendPoint60Pos[get, set] Vector2
blendPoint61Node[get, set] AnimationRootNode
blendPoint61Pos[get, set] Vector2
blendPoint62Node[get, set] AnimationRootNode
blendPoint62Pos[get, set] Vector2
blendPoint63Node[get, set] AnimationRootNode
blendPoint63Pos[get, set] Vector2
blendPoint6Node[get, set] AnimationRootNode
blendPoint6Pos[get, set] Vector2
blendPoint7Node[get, set] AnimationRootNode
blendPoint7Pos[get, set] Vector2
blendPoint8Node[get, set] AnimationRootNode
blendPoint8Pos[get, set] Vector2
blendPoint9Node[get, set] AnimationRootNode
blendPoint9Pos[get, set] Vector2
maxSpace[get, set] Vector2The blend space's X and Y axes' upper limit for the points' position. See addBlendPoint.
minSpace[get, set] Vector2The blend space's X and Y axes' lower limit for the points' position. See addBlendPoint.
snap[get, set] Vector2Position increment to snap to when moving a point.
triangles[get, set] PoolArray!(int)
xLabel[get, set] StringName of the blend space's X axis.
yLabel[get, set] StringName of the blend space's Y axis.

Methods

NameDescription
_addBlendPoint
_getTriangles
_setTriangles
_treeChanged
_updateTriangles
addBlendPoint Adds a new point that represents a node at the 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.
addTriangle Creates a new triangle using three points x, y, and z. Triangles can overlap. You can insert the triangle 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.
getAutoTriangles
getBlendMode
getBlendPointCount Returns the number of points in the blend space.
getBlendPointNode Returns the AnimationRootNode referenced by the point at index point.
getBlendPointPosition Returns the position of the point at index point.
getMaxSpace
getMinSpace
getSnap
getTriangleCount Returns the number of triangles in the blend space.
getTrianglePoint Returns the position of the point at index point in the triangle of index triangle.
getXLabel
getYLabel
removeBlendPoint Removes the point at index point from the blend space.
removeTriangle Removes the triangle at index triangle from the blend space.
setAutoTriangles
setBlendMode
setBlendPointNode Changes the AnimationNode referenced by the point at index point.
setBlendPointPosition Updates the position of the point at index point on the blend axis.
setMaxSpace
setMinSpace
setSnap
setXLabel
setYLabel

Enums

NameDescription
BlendMode
Constants