class_springarm.rst 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the SpringArm.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_SpringArm:
  6. SpringArm
  7. =========
  8. **Inherits:** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Properties
  13. ----------
  14. +---------------------------+----------------------------------------------------------------+------+
  15. | :ref:`int<class_int>` | :ref:`collision_mask<class_SpringArm_property_collision_mask>` | 1 |
  16. +---------------------------+----------------------------------------------------------------+------+
  17. | :ref:`float<class_float>` | :ref:`margin<class_SpringArm_property_margin>` | 0.01 |
  18. +---------------------------+----------------------------------------------------------------+------+
  19. | :ref:`Shape<class_Shape>` | :ref:`shape<class_SpringArm_property_shape>` | |
  20. +---------------------------+----------------------------------------------------------------+------+
  21. | :ref:`float<class_float>` | :ref:`spring_length<class_SpringArm_property_spring_length>` | 1.0 |
  22. +---------------------------+----------------------------------------------------------------+------+
  23. Methods
  24. -------
  25. +---------------------------+--------------------------------------------------------------------------------------------------------------------+
  26. | void | :ref:`add_excluded_object<class_SpringArm_method_add_excluded_object>` **(** :ref:`RID<class_RID>` RID **)** |
  27. +---------------------------+--------------------------------------------------------------------------------------------------------------------+
  28. | void | :ref:`clear_excluded_objects<class_SpringArm_method_clear_excluded_objects>` **(** **)** |
  29. +---------------------------+--------------------------------------------------------------------------------------------------------------------+
  30. | :ref:`float<class_float>` | :ref:`get_hit_length<class_SpringArm_method_get_hit_length>` **(** **)** |
  31. +---------------------------+--------------------------------------------------------------------------------------------------------------------+
  32. | :ref:`bool<class_bool>` | :ref:`remove_excluded_object<class_SpringArm_method_remove_excluded_object>` **(** :ref:`RID<class_RID>` RID **)** |
  33. +---------------------------+--------------------------------------------------------------------------------------------------------------------+
  34. Property Descriptions
  35. ---------------------
  36. .. _class_SpringArm_property_collision_mask:
  37. - :ref:`int<class_int>` **collision_mask**
  38. +-----------+---------------------------+
  39. | *Default* | 1 |
  40. +-----------+---------------------------+
  41. | *Setter* | set_collision_mask(value) |
  42. +-----------+---------------------------+
  43. | *Getter* | get_collision_mask() |
  44. +-----------+---------------------------+
  45. .. _class_SpringArm_property_margin:
  46. - :ref:`float<class_float>` **margin**
  47. +-----------+-------------------+
  48. | *Default* | 0.01 |
  49. +-----------+-------------------+
  50. | *Setter* | set_margin(value) |
  51. +-----------+-------------------+
  52. | *Getter* | get_margin() |
  53. +-----------+-------------------+
  54. .. _class_SpringArm_property_shape:
  55. - :ref:`Shape<class_Shape>` **shape**
  56. +----------+------------------+
  57. | *Setter* | set_shape(value) |
  58. +----------+------------------+
  59. | *Getter* | get_shape() |
  60. +----------+------------------+
  61. .. _class_SpringArm_property_spring_length:
  62. - :ref:`float<class_float>` **spring_length**
  63. +-----------+-------------------+
  64. | *Default* | 1.0 |
  65. +-----------+-------------------+
  66. | *Setter* | set_length(value) |
  67. +-----------+-------------------+
  68. | *Getter* | get_length() |
  69. +-----------+-------------------+
  70. Method Descriptions
  71. -------------------
  72. .. _class_SpringArm_method_add_excluded_object:
  73. - void **add_excluded_object** **(** :ref:`RID<class_RID>` RID **)**
  74. .. _class_SpringArm_method_clear_excluded_objects:
  75. - void **clear_excluded_objects** **(** **)**
  76. .. _class_SpringArm_method_get_hit_length:
  77. - :ref:`float<class_float>` **get_hit_length** **(** **)**
  78. .. _class_SpringArm_method_remove_excluded_object:
  79. - :ref:`bool<class_bool>` **remove_excluded_object** **(** :ref:`RID<class_RID>` RID **)**