class_remotetransform.rst 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the RemoteTransform.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_RemoteTransform:
  6. RemoteTransform
  7. ===============
  8. **Inherits:** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. RemoteTransform pushes its own :ref:`Transform<class_Transform>` to another :ref:`Spatial<class_Spatial>` derived Node in the scene.
  10. Description
  11. -----------
  12. RemoteTransform pushes its own :ref:`Transform<class_Transform>` to another :ref:`Spatial<class_Spatial>` derived Node (called the remote node) in the scene.
  13. It can be set to update another Node's position, rotation and/or scale. It can use either global or local coordinates.
  14. Properties
  15. ----------
  16. +---------------------------------+--------------------------------------------------------------------------------------+------------------+
  17. | :ref:`NodePath<class_NodePath>` | :ref:`remote_path<class_RemoteTransform_property_remote_path>` | ``NodePath("")`` |
  18. +---------------------------------+--------------------------------------------------------------------------------------+------------------+
  19. | :ref:`bool<class_bool>` | :ref:`update_position<class_RemoteTransform_property_update_position>` | ``true`` |
  20. +---------------------------------+--------------------------------------------------------------------------------------+------------------+
  21. | :ref:`bool<class_bool>` | :ref:`update_rotation<class_RemoteTransform_property_update_rotation>` | ``true`` |
  22. +---------------------------------+--------------------------------------------------------------------------------------+------------------+
  23. | :ref:`bool<class_bool>` | :ref:`update_scale<class_RemoteTransform_property_update_scale>` | ``true`` |
  24. +---------------------------------+--------------------------------------------------------------------------------------+------------------+
  25. | :ref:`bool<class_bool>` | :ref:`use_global_coordinates<class_RemoteTransform_property_use_global_coordinates>` | ``true`` |
  26. +---------------------------------+--------------------------------------------------------------------------------------+------------------+
  27. Methods
  28. -------
  29. +------+----------------------------------------------------------------------------------------+
  30. | void | :ref:`force_update_cache<class_RemoteTransform_method_force_update_cache>` **(** **)** |
  31. +------+----------------------------------------------------------------------------------------+
  32. Property Descriptions
  33. ---------------------
  34. .. _class_RemoteTransform_property_remote_path:
  35. - :ref:`NodePath<class_NodePath>` **remote_path**
  36. +-----------+------------------------+
  37. | *Default* | ``NodePath("")`` |
  38. +-----------+------------------------+
  39. | *Setter* | set_remote_node(value) |
  40. +-----------+------------------------+
  41. | *Getter* | get_remote_node() |
  42. +-----------+------------------------+
  43. The :ref:`NodePath<class_NodePath>` to the remote node, relative to the RemoteTransform's position in the scene.
  44. ----
  45. .. _class_RemoteTransform_property_update_position:
  46. - :ref:`bool<class_bool>` **update_position**
  47. +-----------+----------------------------+
  48. | *Default* | ``true`` |
  49. +-----------+----------------------------+
  50. | *Setter* | set_update_position(value) |
  51. +-----------+----------------------------+
  52. | *Getter* | get_update_position() |
  53. +-----------+----------------------------+
  54. If ``true``, the remote node's position is updated.
  55. ----
  56. .. _class_RemoteTransform_property_update_rotation:
  57. - :ref:`bool<class_bool>` **update_rotation**
  58. +-----------+----------------------------+
  59. | *Default* | ``true`` |
  60. +-----------+----------------------------+
  61. | *Setter* | set_update_rotation(value) |
  62. +-----------+----------------------------+
  63. | *Getter* | get_update_rotation() |
  64. +-----------+----------------------------+
  65. If ``true``, the remote node's rotation is updated.
  66. ----
  67. .. _class_RemoteTransform_property_update_scale:
  68. - :ref:`bool<class_bool>` **update_scale**
  69. +-----------+-------------------------+
  70. | *Default* | ``true`` |
  71. +-----------+-------------------------+
  72. | *Setter* | set_update_scale(value) |
  73. +-----------+-------------------------+
  74. | *Getter* | get_update_scale() |
  75. +-----------+-------------------------+
  76. If ``true``, the remote node's scale is updated.
  77. ----
  78. .. _class_RemoteTransform_property_use_global_coordinates:
  79. - :ref:`bool<class_bool>` **use_global_coordinates**
  80. +-----------+-----------------------------------+
  81. | *Default* | ``true`` |
  82. +-----------+-----------------------------------+
  83. | *Setter* | set_use_global_coordinates(value) |
  84. +-----------+-----------------------------------+
  85. | *Getter* | get_use_global_coordinates() |
  86. +-----------+-----------------------------------+
  87. If ``true``, global coordinates are used. If ``false``, local coordinates are used.
  88. Method Descriptions
  89. -------------------
  90. .. _class_RemoteTransform_method_force_update_cache:
  91. - void **force_update_cache** **(** **)**
  92. ``RemoteTransform`` caches the remote node. It may not notice if the remote node disappears; :ref:`force_update_cache<class_RemoteTransform_method_force_update_cache>` forces it to update the cache again.
  93. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  94. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  95. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`