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
Methods
| Name | Description |
|---|---|
_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
| Name | Description |
|---|---|
BlendMode
|
|
Constants
|