class_interpolatedcamera.rst 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 InterpolatedCamera.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_InterpolatedCamera:
  6. InterpolatedCamera
  7. ==================
  8. **Inherits:** :ref:`Camera<class_Camera>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. *Deprecated.* Camera which moves toward another node.
  10. Description
  11. -----------
  12. *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.
  13. If it is not :ref:`enabled<class_InterpolatedCamera_property_enabled>` or does not have a valid target set, InterpolatedCamera acts like a normal Camera.
  14. Properties
  15. ----------
  16. +---------------------------------+-----------------------------------------------------------+------------------+
  17. | :ref:`bool<class_bool>` | :ref:`enabled<class_InterpolatedCamera_property_enabled>` | ``false`` |
  18. +---------------------------------+-----------------------------------------------------------+------------------+
  19. | :ref:`float<class_float>` | :ref:`speed<class_InterpolatedCamera_property_speed>` | ``1.0`` |
  20. +---------------------------------+-----------------------------------------------------------+------------------+
  21. | :ref:`NodePath<class_NodePath>` | :ref:`target<class_InterpolatedCamera_property_target>` | ``NodePath("")`` |
  22. +---------------------------------+-----------------------------------------------------------+------------------+
  23. Methods
  24. -------
  25. +------+--------------------------------------------------------------------------------------------------------------+
  26. | void | :ref:`set_target<class_InterpolatedCamera_method_set_target>` **(** :ref:`Object<class_Object>` target **)** |
  27. +------+--------------------------------------------------------------------------------------------------------------+
  28. Property Descriptions
  29. ---------------------
  30. .. _class_InterpolatedCamera_property_enabled:
  31. - :ref:`bool<class_bool>` **enabled**
  32. +-----------+----------------------------------+
  33. | *Default* | ``false`` |
  34. +-----------+----------------------------------+
  35. | *Setter* | set_interpolation_enabled(value) |
  36. +-----------+----------------------------------+
  37. | *Getter* | is_interpolation_enabled() |
  38. +-----------+----------------------------------+
  39. If ``true``, and a target is set, the camera will move automatically.
  40. ----
  41. .. _class_InterpolatedCamera_property_speed:
  42. - :ref:`float<class_float>` **speed**
  43. +-----------+------------------+
  44. | *Default* | ``1.0`` |
  45. +-----------+------------------+
  46. | *Setter* | set_speed(value) |
  47. +-----------+------------------+
  48. | *Getter* | get_speed() |
  49. +-----------+------------------+
  50. How quickly the camera moves toward its target. Higher values will result in tighter camera motion.
  51. ----
  52. .. _class_InterpolatedCamera_property_target:
  53. - :ref:`NodePath<class_NodePath>` **target**
  54. +-----------+------------------------+
  55. | *Default* | ``NodePath("")`` |
  56. +-----------+------------------------+
  57. | *Setter* | set_target_path(value) |
  58. +-----------+------------------------+
  59. | *Getter* | get_target_path() |
  60. +-----------+------------------------+
  61. The target's :ref:`NodePath<class_NodePath>`.
  62. Method Descriptions
  63. -------------------
  64. .. _class_InterpolatedCamera_method_set_target:
  65. - void **set_target** **(** :ref:`Object<class_Object>` target **)**
  66. Sets the node to move toward and orient with.
  67. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  68. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  69. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`