class_raycast.rst 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_RayCast:
  4. RayCast
  5. =======
  6. **Inherits:** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Member Functions
  11. ----------------
  12. +--------------------------------+---------------------------------------------------------------------------------------------------------+
  13. | void | :ref:`set_enabled<class_RayCast_set_enabled>` **(** :ref:`bool<class_bool>` enabled **)** |
  14. +--------------------------------+---------------------------------------------------------------------------------------------------------+
  15. | :ref:`bool<class_bool>` | :ref:`is_enabled<class_RayCast_is_enabled>` **(** **)** const |
  16. +--------------------------------+---------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`set_cast_to<class_RayCast_set_cast_to>` **(** :ref:`Vector3<class_vector3>` local_point **)** |
  18. +--------------------------------+---------------------------------------------------------------------------------------------------------+
  19. | :ref:`Vector3<class_vector3>` | :ref:`get_cast_to<class_RayCast_get_cast_to>` **(** **)** const |
  20. +--------------------------------+---------------------------------------------------------------------------------------------------------+
  21. | :ref:`bool<class_bool>` | :ref:`is_colliding<class_RayCast_is_colliding>` **(** **)** const |
  22. +--------------------------------+---------------------------------------------------------------------------------------------------------+
  23. | :ref:`Object<class_object>` | :ref:`get_collider<class_RayCast_get_collider>` **(** **)** const |
  24. +--------------------------------+---------------------------------------------------------------------------------------------------------+
  25. | :ref:`int<class_int>` | :ref:`get_collider_shape<class_RayCast_get_collider_shape>` **(** **)** const |
  26. +--------------------------------+---------------------------------------------------------------------------------------------------------+
  27. | :ref:`Vector3<class_vector3>` | :ref:`get_collision_point<class_RayCast_get_collision_point>` **(** **)** const |
  28. +--------------------------------+---------------------------------------------------------------------------------------------------------+
  29. | :ref:`Vector3<class_vector3>` | :ref:`get_collision_normal<class_RayCast_get_collision_normal>` **(** **)** const |
  30. +--------------------------------+---------------------------------------------------------------------------------------------------------+
  31. | void | :ref:`add_exception_rid<class_RayCast_add_exception_rid>` **(** :ref:`RID<class_rid>` rid **)** |
  32. +--------------------------------+---------------------------------------------------------------------------------------------------------+
  33. | void | :ref:`add_exception<class_RayCast_add_exception>` **(** :ref:`Object<class_object>` node **)** |
  34. +--------------------------------+---------------------------------------------------------------------------------------------------------+
  35. | void | :ref:`remove_exception_rid<class_RayCast_remove_exception_rid>` **(** :ref:`RID<class_rid>` rid **)** |
  36. +--------------------------------+---------------------------------------------------------------------------------------------------------+
  37. | void | :ref:`remove_exception<class_RayCast_remove_exception>` **(** :ref:`Object<class_object>` node **)** |
  38. +--------------------------------+---------------------------------------------------------------------------------------------------------+
  39. | void | :ref:`clear_exceptions<class_RayCast_clear_exceptions>` **(** **)** |
  40. +--------------------------------+---------------------------------------------------------------------------------------------------------+
  41. Member Function Description
  42. ---------------------------
  43. .. _class_RayCast_set_enabled:
  44. - void **set_enabled** **(** :ref:`bool<class_bool>` enabled **)**
  45. .. _class_RayCast_is_enabled:
  46. - :ref:`bool<class_bool>` **is_enabled** **(** **)** const
  47. .. _class_RayCast_set_cast_to:
  48. - void **set_cast_to** **(** :ref:`Vector3<class_vector3>` local_point **)**
  49. .. _class_RayCast_get_cast_to:
  50. - :ref:`Vector3<class_vector3>` **get_cast_to** **(** **)** const
  51. .. _class_RayCast_is_colliding:
  52. - :ref:`bool<class_bool>` **is_colliding** **(** **)** const
  53. .. _class_RayCast_get_collider:
  54. - :ref:`Object<class_object>` **get_collider** **(** **)** const
  55. .. _class_RayCast_get_collider_shape:
  56. - :ref:`int<class_int>` **get_collider_shape** **(** **)** const
  57. .. _class_RayCast_get_collision_point:
  58. - :ref:`Vector3<class_vector3>` **get_collision_point** **(** **)** const
  59. .. _class_RayCast_get_collision_normal:
  60. - :ref:`Vector3<class_vector3>` **get_collision_normal** **(** **)** const
  61. .. _class_RayCast_add_exception_rid:
  62. - void **add_exception_rid** **(** :ref:`RID<class_rid>` rid **)**
  63. .. _class_RayCast_add_exception:
  64. - void **add_exception** **(** :ref:`Object<class_object>` node **)**
  65. .. _class_RayCast_remove_exception_rid:
  66. - void **remove_exception_rid** **(** :ref:`RID<class_rid>` rid **)**
  67. .. _class_RayCast_remove_exception:
  68. - void **remove_exception** **(** :ref:`Object<class_object>` node **)**
  69. .. _class_RayCast_clear_exceptions:
  70. - void **clear_exceptions** **(** **)**