AnimationNodeBlendSpace1D.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="AnimationNodeBlendSpace1D" inherits="AnimationRootNode" version="3.4">
  3. <brief_description>
  4. Blends linearly between two of any number of [AnimationNode] of any type placed on a virtual axis.
  5. </brief_description>
  6. <description>
  7. A resource to add to an [AnimationNodeBlendTree].
  8. This is a virtual axis on which you can add any type of [AnimationNode] using [method add_blend_point].
  9. Outputs the linear blend of the two [AnimationNode]s closest to the node's current value.
  10. You can set the extents of the axis using the [member min_space] and [member max_space].
  11. </description>
  12. <tutorials>
  13. <link>https://docs.godotengine.org/en/3.3/tutorials/animation/animation_tree.html</link>
  14. </tutorials>
  15. <methods>
  16. <method name="add_blend_point">
  17. <return type="void">
  18. </return>
  19. <argument index="0" name="node" type="AnimationRootNode">
  20. </argument>
  21. <argument index="1" name="pos" type="float">
  22. </argument>
  23. <argument index="2" name="at_index" type="int" default="-1">
  24. </argument>
  25. <description>
  26. Adds a new point that represents a [code]node[/code] on the virtual axis at a given position set by [code]pos[/code]. You can insert it at a specific index using the [code]at_index[/code] argument. If you use the default value for [code]at_index[/code], the point is inserted at the end of the blend points array.
  27. </description>
  28. </method>
  29. <method name="get_blend_point_count" qualifiers="const">
  30. <return type="int">
  31. </return>
  32. <description>
  33. Returns the number of points on the blend axis.
  34. </description>
  35. </method>
  36. <method name="get_blend_point_node" qualifiers="const">
  37. <return type="AnimationRootNode">
  38. </return>
  39. <argument index="0" name="point" type="int">
  40. </argument>
  41. <description>
  42. Returns the [AnimationNode] referenced by the point at index [code]point[/code].
  43. </description>
  44. </method>
  45. <method name="get_blend_point_position" qualifiers="const">
  46. <return type="float">
  47. </return>
  48. <argument index="0" name="point" type="int">
  49. </argument>
  50. <description>
  51. Returns the position of the point at index [code]point[/code].
  52. </description>
  53. </method>
  54. <method name="remove_blend_point">
  55. <return type="void">
  56. </return>
  57. <argument index="0" name="point" type="int">
  58. </argument>
  59. <description>
  60. Removes the point at index [code]point[/code] from the blend axis.
  61. </description>
  62. </method>
  63. <method name="set_blend_point_node">
  64. <return type="void">
  65. </return>
  66. <argument index="0" name="point" type="int">
  67. </argument>
  68. <argument index="1" name="node" type="AnimationRootNode">
  69. </argument>
  70. <description>
  71. Changes the [AnimationNode] referenced by the point at index [code]point[/code].
  72. </description>
  73. </method>
  74. <method name="set_blend_point_position">
  75. <return type="void">
  76. </return>
  77. <argument index="0" name="point" type="int">
  78. </argument>
  79. <argument index="1" name="pos" type="float">
  80. </argument>
  81. <description>
  82. Updates the position of the point at index [code]point[/code] on the blend axis.
  83. </description>
  84. </method>
  85. </methods>
  86. <members>
  87. <member name="max_space" type="float" setter="set_max_space" getter="get_max_space" default="1.0">
  88. The blend space's axis's upper limit for the points' position. See [method add_blend_point].
  89. </member>
  90. <member name="min_space" type="float" setter="set_min_space" getter="get_min_space" default="-1.0">
  91. The blend space's axis's lower limit for the points' position. See [method add_blend_point].
  92. </member>
  93. <member name="snap" type="float" setter="set_snap" getter="get_snap" default="0.1">
  94. Position increment to snap to when moving a point on the axis.
  95. </member>
  96. <member name="value_label" type="String" setter="set_value_label" getter="get_value_label" default="&quot;value&quot;">
  97. Label of the virtual axis of the blend space.
  98. </member>
  99. </members>
  100. <constants>
  101. </constants>
  102. </class>