class_rootmotionview.rst 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/RootMotionView.xml.
  6. .. _class_RootMotionView:
  7. RootMotionView
  8. ==============
  9. **Inherits:** :ref:`VisualInstance3D<class_VisualInstance3D>` **<** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. Editor-only helper for setting up root motion in :ref:`AnimationMixer<class_AnimationMixer>`.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. *Root motion* refers to an animation technique where a mesh's skeleton is used to give impulse to a character. When working with 3D animations, a popular technique is for animators to use the root skeleton bone to give motion to the rest of the skeleton. This allows animating characters in a way where steps actually match the floor below. It also allows precise interaction with objects during cinematics. See also :ref:`AnimationMixer<class_AnimationMixer>`.
  15. \ **Note:** **RootMotionView** is only visible in the editor. It will be hidden automatically in the running project.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - `Using AnimationTree - Root motion <../tutorials/animation/animation_tree.html#root-motion>`__
  20. .. rst-class:: classref-reftable-group
  21. Properties
  22. ----------
  23. .. table::
  24. :widths: auto
  25. +---------------------------------+---------------------------------------------------------------------+---------------------------+
  26. | :ref:`NodePath<class_NodePath>` | :ref:`animation_path<class_RootMotionView_property_animation_path>` | ``NodePath("")`` |
  27. +---------------------------------+---------------------------------------------------------------------+---------------------------+
  28. | :ref:`float<class_float>` | :ref:`cell_size<class_RootMotionView_property_cell_size>` | ``1.0`` |
  29. +---------------------------------+---------------------------------------------------------------------+---------------------------+
  30. | :ref:`Color<class_Color>` | :ref:`color<class_RootMotionView_property_color>` | ``Color(0.5, 0.5, 1, 1)`` |
  31. +---------------------------------+---------------------------------------------------------------------+---------------------------+
  32. | :ref:`float<class_float>` | :ref:`radius<class_RootMotionView_property_radius>` | ``10.0`` |
  33. +---------------------------------+---------------------------------------------------------------------+---------------------------+
  34. | :ref:`bool<class_bool>` | :ref:`zero_y<class_RootMotionView_property_zero_y>` | ``true`` |
  35. +---------------------------------+---------------------------------------------------------------------+---------------------------+
  36. .. rst-class:: classref-section-separator
  37. ----
  38. .. rst-class:: classref-descriptions-group
  39. Property Descriptions
  40. ---------------------
  41. .. _class_RootMotionView_property_animation_path:
  42. .. rst-class:: classref-property
  43. :ref:`NodePath<class_NodePath>` **animation_path** = ``NodePath("")``
  44. .. rst-class:: classref-property-setget
  45. - void **set_animation_path** **(** :ref:`NodePath<class_NodePath>` value **)**
  46. - :ref:`NodePath<class_NodePath>` **get_animation_path** **(** **)**
  47. Path to an :ref:`AnimationMixer<class_AnimationMixer>` node to use as a basis for root motion.
  48. .. rst-class:: classref-item-separator
  49. ----
  50. .. _class_RootMotionView_property_cell_size:
  51. .. rst-class:: classref-property
  52. :ref:`float<class_float>` **cell_size** = ``1.0``
  53. .. rst-class:: classref-property-setget
  54. - void **set_cell_size** **(** :ref:`float<class_float>` value **)**
  55. - :ref:`float<class_float>` **get_cell_size** **(** **)**
  56. The grid's cell size in 3D units.
  57. .. rst-class:: classref-item-separator
  58. ----
  59. .. _class_RootMotionView_property_color:
  60. .. rst-class:: classref-property
  61. :ref:`Color<class_Color>` **color** = ``Color(0.5, 0.5, 1, 1)``
  62. .. rst-class:: classref-property-setget
  63. - void **set_color** **(** :ref:`Color<class_Color>` value **)**
  64. - :ref:`Color<class_Color>` **get_color** **(** **)**
  65. The grid's color.
  66. .. rst-class:: classref-item-separator
  67. ----
  68. .. _class_RootMotionView_property_radius:
  69. .. rst-class:: classref-property
  70. :ref:`float<class_float>` **radius** = ``10.0``
  71. .. rst-class:: classref-property-setget
  72. - void **set_radius** **(** :ref:`float<class_float>` value **)**
  73. - :ref:`float<class_float>` **get_radius** **(** **)**
  74. The grid's radius in 3D units. The grid's opacity will fade gradually as the distance from the origin increases until this :ref:`radius<class_RootMotionView_property_radius>` is reached.
  75. .. rst-class:: classref-item-separator
  76. ----
  77. .. _class_RootMotionView_property_zero_y:
  78. .. rst-class:: classref-property
  79. :ref:`bool<class_bool>` **zero_y** = ``true``
  80. .. rst-class:: classref-property-setget
  81. - void **set_zero_y** **(** :ref:`bool<class_bool>` value **)**
  82. - :ref:`bool<class_bool>` **get_zero_y** **(** **)**
  83. If ``true``, the grid's points will all be on the same Y coordinate (*local* Y = 0). If ``false``, the points' original Y coordinate is preserved.
  84. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  85. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  86. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  87. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  88. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  89. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  90. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`