class_rootmotionview.rst 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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:`AnimationTree<class_AnimationTree>`.
  11. Description
  12. -----------
  13. *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:`AnimationTree<class_AnimationTree>`.
  14. \ **Note:** ``RootMotionView`` is only visible in the editor. It will be hidden automatically in the running project, and will also be converted to a plain :ref:`Node<class_Node>` in the running project. This means a script attached to a ``RootMotionView`` node *must* have ``extends Node`` instead of ``extends RootMotionView``. Additionally, it must not be a ``@tool`` script.
  15. Tutorials
  16. ---------
  17. - `Using AnimationTree - Root motion <../tutorials/animation/animation_tree.html#root-motion>`__
  18. Properties
  19. ----------
  20. +---------------------------------+---------------------------------------------------------------------+
  21. | :ref:`NodePath<class_NodePath>` | :ref:`animation_path<class_RootMotionView_property_animation_path>` |
  22. +---------------------------------+---------------------------------------------------------------------+
  23. | :ref:`float<class_float>` | :ref:`cell_size<class_RootMotionView_property_cell_size>` |
  24. +---------------------------------+---------------------------------------------------------------------+
  25. | :ref:`Color<class_Color>` | :ref:`color<class_RootMotionView_property_color>` |
  26. +---------------------------------+---------------------------------------------------------------------+
  27. | :ref:`float<class_float>` | :ref:`radius<class_RootMotionView_property_radius>` |
  28. +---------------------------------+---------------------------------------------------------------------+
  29. | :ref:`bool<class_bool>` | :ref:`zero_y<class_RootMotionView_property_zero_y>` |
  30. +---------------------------------+---------------------------------------------------------------------+
  31. Property Descriptions
  32. ---------------------
  33. .. _class_RootMotionView_property_animation_path:
  34. - :ref:`NodePath<class_NodePath>` **animation_path**
  35. +----------+---------------------------+
  36. | *Setter* | set_animation_path(value) |
  37. +----------+---------------------------+
  38. | *Getter* | get_animation_path() |
  39. +----------+---------------------------+
  40. Path to an :ref:`AnimationTree<class_AnimationTree>` node to use as a basis for root motion.
  41. ----
  42. .. _class_RootMotionView_property_cell_size:
  43. - :ref:`float<class_float>` **cell_size**
  44. +----------+----------------------+
  45. | *Setter* | set_cell_size(value) |
  46. +----------+----------------------+
  47. | *Getter* | get_cell_size() |
  48. +----------+----------------------+
  49. The grid's cell size in 3D units.
  50. ----
  51. .. _class_RootMotionView_property_color:
  52. - :ref:`Color<class_Color>` **color**
  53. +----------+------------------+
  54. | *Setter* | set_color(value) |
  55. +----------+------------------+
  56. | *Getter* | get_color() |
  57. +----------+------------------+
  58. The grid's color.
  59. ----
  60. .. _class_RootMotionView_property_radius:
  61. - :ref:`float<class_float>` **radius**
  62. +----------+-------------------+
  63. | *Setter* | set_radius(value) |
  64. +----------+-------------------+
  65. | *Getter* | get_radius() |
  66. +----------+-------------------+
  67. 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.
  68. ----
  69. .. _class_RootMotionView_property_zero_y:
  70. - :ref:`bool<class_bool>` **zero_y**
  71. +----------+-------------------+
  72. | *Setter* | set_zero_y(value) |
  73. +----------+-------------------+
  74. | *Getter* | get_zero_y() |
  75. +----------+-------------------+
  76. 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.
  77. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  78. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  79. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  80. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  81. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  82. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`