mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
139 lines
7.5 KiB
ReStructuredText
139 lines
7.5 KiB
ReStructuredText
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
|
|
|
|
.. _class_RayCast:
|
|
|
|
RayCast
|
|
=======
|
|
|
|
**Inherits:** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
|
|
|
|
Member Functions
|
|
----------------
|
|
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`add_exception<class_RayCast_add_exception>` **(** :ref:`Object<class_object>` node **)** |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`add_exception_rid<class_RayCast_add_exception_rid>` **(** :ref:`RID<class_rid>` rid **)** |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`clear_exceptions<class_RayCast_clear_exceptions>` **(** **)** |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------+
|
|
| :ref:`Vector3<class_vector3>` | :ref:`get_cast_to<class_RayCast_get_cast_to>` **(** **)** const |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------+
|
|
| :ref:`Object<class_object>` | :ref:`get_collider<class_RayCast_get_collider>` **(** **)** const |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`get_collider_shape<class_RayCast_get_collider_shape>` **(** **)** const |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------+
|
|
| :ref:`Vector3<class_vector3>` | :ref:`get_collision_normal<class_RayCast_get_collision_normal>` **(** **)** const |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------+
|
|
| :ref:`Vector3<class_vector3>` | :ref:`get_collision_point<class_RayCast_get_collision_point>` **(** **)** const |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`get_layer_mask<class_RayCast_get_layer_mask>` **(** **)** const |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`get_type_mask<class_RayCast_get_type_mask>` **(** **)** const |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------+
|
|
| :ref:`bool<class_bool>` | :ref:`is_colliding<class_RayCast_is_colliding>` **(** **)** const |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------+
|
|
| :ref:`bool<class_bool>` | :ref:`is_enabled<class_RayCast_is_enabled>` **(** **)** const |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`remove_exception<class_RayCast_remove_exception>` **(** :ref:`Object<class_object>` node **)** |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`remove_exception_rid<class_RayCast_remove_exception_rid>` **(** :ref:`RID<class_rid>` rid **)** |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_cast_to<class_RayCast_set_cast_to>` **(** :ref:`Vector3<class_vector3>` local_point **)** |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_enabled<class_RayCast_set_enabled>` **(** :ref:`bool<class_bool>` enabled **)** |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_layer_mask<class_RayCast_set_layer_mask>` **(** :ref:`int<class_int>` mask **)** |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_type_mask<class_RayCast_set_type_mask>` **(** :ref:`int<class_int>` mask **)** |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------+
|
|
|
|
Member Function Description
|
|
---------------------------
|
|
|
|
.. _class_RayCast_add_exception:
|
|
|
|
- void **add_exception** **(** :ref:`Object<class_object>` node **)**
|
|
|
|
.. _class_RayCast_add_exception_rid:
|
|
|
|
- void **add_exception_rid** **(** :ref:`RID<class_rid>` rid **)**
|
|
|
|
.. _class_RayCast_clear_exceptions:
|
|
|
|
- void **clear_exceptions** **(** **)**
|
|
|
|
.. _class_RayCast_get_cast_to:
|
|
|
|
- :ref:`Vector3<class_vector3>` **get_cast_to** **(** **)** const
|
|
|
|
.. _class_RayCast_get_collider:
|
|
|
|
- :ref:`Object<class_object>` **get_collider** **(** **)** const
|
|
|
|
.. _class_RayCast_get_collider_shape:
|
|
|
|
- :ref:`int<class_int>` **get_collider_shape** **(** **)** const
|
|
|
|
.. _class_RayCast_get_collision_normal:
|
|
|
|
- :ref:`Vector3<class_vector3>` **get_collision_normal** **(** **)** const
|
|
|
|
.. _class_RayCast_get_collision_point:
|
|
|
|
- :ref:`Vector3<class_vector3>` **get_collision_point** **(** **)** const
|
|
|
|
Returns collision point. This point is in **global** coordinate system.
|
|
|
|
.. _class_RayCast_get_layer_mask:
|
|
|
|
- :ref:`int<class_int>` **get_layer_mask** **(** **)** const
|
|
|
|
.. _class_RayCast_get_type_mask:
|
|
|
|
- :ref:`int<class_int>` **get_type_mask** **(** **)** const
|
|
|
|
.. _class_RayCast_is_colliding:
|
|
|
|
- :ref:`bool<class_bool>` **is_colliding** **(** **)** const
|
|
|
|
.. _class_RayCast_is_enabled:
|
|
|
|
- :ref:`bool<class_bool>` **is_enabled** **(** **)** const
|
|
|
|
.. _class_RayCast_remove_exception:
|
|
|
|
- void **remove_exception** **(** :ref:`Object<class_object>` node **)**
|
|
|
|
.. _class_RayCast_remove_exception_rid:
|
|
|
|
- void **remove_exception_rid** **(** :ref:`RID<class_rid>` rid **)**
|
|
|
|
.. _class_RayCast_set_cast_to:
|
|
|
|
- void **set_cast_to** **(** :ref:`Vector3<class_vector3>` local_point **)**
|
|
|
|
Sets to which point ray should be casted. This point is in **local** coordinate system.
|
|
|
|
.. _class_RayCast_set_enabled:
|
|
|
|
- void **set_enabled** **(** :ref:`bool<class_bool>` enabled **)**
|
|
|
|
.. _class_RayCast_set_layer_mask:
|
|
|
|
- void **set_layer_mask** **(** :ref:`int<class_int>` mask **)**
|
|
|
|
.. _class_RayCast_set_type_mask:
|
|
|
|
- void **set_type_mask** **(** :ref:`int<class_int>` mask **)**
|
|
|
|
|