class_interpolatedcamera.rst 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/InterpolatedCamera.xml.
  6. .. _class_InterpolatedCamera:
  7. InterpolatedCamera
  8. ==================
  9. **Inherits:** :ref:`Camera<class_Camera>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. *Deprecated.* Camera which moves toward another node.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. *Deprecated (will be removed in Godot 4.0).* InterpolatedCamera is a :ref:`Camera<class_Camera>` which smoothly moves to match a target node's position and rotation.
  15. If it is not :ref:`enabled<class_InterpolatedCamera_property_enabled>` or does not have a valid target set, InterpolatedCamera acts like a normal Camera.
  16. .. rst-class:: classref-reftable-group
  17. Properties
  18. ----------
  19. .. table::
  20. :widths: auto
  21. +---------------------------------------------------------------------------------------------+---------------------------------------------------------------------+------------------+
  22. | :ref:`bool<class_bool>` | :ref:`enabled<class_InterpolatedCamera_property_enabled>` | ``false`` |
  23. +---------------------------------------------------------------------------------------------+---------------------------------------------------------------------+------------------+
  24. | :ref:`InterpolatedCameraProcessMode<enum_InterpolatedCamera_InterpolatedCameraProcessMode>` | :ref:`process_mode<class_InterpolatedCamera_property_process_mode>` | ``1`` |
  25. +---------------------------------------------------------------------------------------------+---------------------------------------------------------------------+------------------+
  26. | :ref:`float<class_float>` | :ref:`speed<class_InterpolatedCamera_property_speed>` | ``1.0`` |
  27. +---------------------------------------------------------------------------------------------+---------------------------------------------------------------------+------------------+
  28. | :ref:`NodePath<class_NodePath>` | :ref:`target<class_InterpolatedCamera_property_target>` | ``NodePath("")`` |
  29. +---------------------------------------------------------------------------------------------+---------------------------------------------------------------------+------------------+
  30. .. rst-class:: classref-reftable-group
  31. Methods
  32. -------
  33. .. table::
  34. :widths: auto
  35. +------+--------------------------------------------------------------------------------------------------------------+
  36. | void | :ref:`set_target<class_InterpolatedCamera_method_set_target>` **(** :ref:`Object<class_Object>` target **)** |
  37. +------+--------------------------------------------------------------------------------------------------------------+
  38. .. rst-class:: classref-section-separator
  39. ----
  40. .. rst-class:: classref-descriptions-group
  41. Enumerations
  42. ------------
  43. .. _enum_InterpolatedCamera_InterpolatedCameraProcessMode:
  44. .. rst-class:: classref-enumeration
  45. enum **InterpolatedCameraProcessMode**:
  46. .. _class_InterpolatedCamera_constant_INTERPOLATED_CAMERA_PROCESS_PHYSICS:
  47. .. rst-class:: classref-enumeration-constant
  48. :ref:`InterpolatedCameraProcessMode<enum_InterpolatedCamera_InterpolatedCameraProcessMode>` **INTERPOLATED_CAMERA_PROCESS_PHYSICS** = ``0``
  49. The camera updates with the ``_physics_process`` callback.
  50. .. _class_InterpolatedCamera_constant_INTERPOLATED_CAMERA_PROCESS_IDLE:
  51. .. rst-class:: classref-enumeration-constant
  52. :ref:`InterpolatedCameraProcessMode<enum_InterpolatedCamera_InterpolatedCameraProcessMode>` **INTERPOLATED_CAMERA_PROCESS_IDLE** = ``1``
  53. The camera updates with the ``_process`` callback.
  54. .. rst-class:: classref-section-separator
  55. ----
  56. .. rst-class:: classref-descriptions-group
  57. Property Descriptions
  58. ---------------------
  59. .. _class_InterpolatedCamera_property_enabled:
  60. .. rst-class:: classref-property
  61. :ref:`bool<class_bool>` **enabled** = ``false``
  62. .. rst-class:: classref-property-setget
  63. - void **set_interpolation_enabled** **(** :ref:`bool<class_bool>` value **)**
  64. - :ref:`bool<class_bool>` **is_interpolation_enabled** **(** **)**
  65. If ``true``, and a target is set, the camera will move automatically.
  66. .. rst-class:: classref-item-separator
  67. ----
  68. .. _class_InterpolatedCamera_property_process_mode:
  69. .. rst-class:: classref-property
  70. :ref:`InterpolatedCameraProcessMode<enum_InterpolatedCamera_InterpolatedCameraProcessMode>` **process_mode** = ``1``
  71. .. rst-class:: classref-property-setget
  72. - void **set_process_mode** **(** :ref:`InterpolatedCameraProcessMode<enum_InterpolatedCamera_InterpolatedCameraProcessMode>` value **)**
  73. - :ref:`InterpolatedCameraProcessMode<enum_InterpolatedCamera_InterpolatedCameraProcessMode>` **get_process_mode** **(** **)**
  74. The camera's process callback. See :ref:`InterpolatedCameraProcessMode<enum_InterpolatedCamera_InterpolatedCameraProcessMode>`.
  75. .. rst-class:: classref-item-separator
  76. ----
  77. .. _class_InterpolatedCamera_property_speed:
  78. .. rst-class:: classref-property
  79. :ref:`float<class_float>` **speed** = ``1.0``
  80. .. rst-class:: classref-property-setget
  81. - void **set_speed** **(** :ref:`float<class_float>` value **)**
  82. - :ref:`float<class_float>` **get_speed** **(** **)**
  83. How quickly the camera moves toward its target. Higher values will result in tighter camera motion.
  84. .. rst-class:: classref-item-separator
  85. ----
  86. .. _class_InterpolatedCamera_property_target:
  87. .. rst-class:: classref-property
  88. :ref:`NodePath<class_NodePath>` **target** = ``NodePath("")``
  89. .. rst-class:: classref-property-setget
  90. - void **set_target_path** **(** :ref:`NodePath<class_NodePath>` value **)**
  91. - :ref:`NodePath<class_NodePath>` **get_target_path** **(** **)**
  92. The target's :ref:`NodePath<class_NodePath>`.
  93. .. rst-class:: classref-section-separator
  94. ----
  95. .. rst-class:: classref-descriptions-group
  96. Method Descriptions
  97. -------------------
  98. .. _class_InterpolatedCamera_method_set_target:
  99. .. rst-class:: classref-method
  100. void **set_target** **(** :ref:`Object<class_Object>` target **)**
  101. Sets the node to move toward and orient with.
  102. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  103. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  104. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  105. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`