.. 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` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Member Functions ---------------- +--------------------------------+---------------------------------------------------------------------------------------------------------+ | void | :ref:`set_enabled` **(** :ref:`bool` enabled **)** | +--------------------------------+---------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_enabled` **(** **)** const | +--------------------------------+---------------------------------------------------------------------------------------------------------+ | void | :ref:`set_cast_to` **(** :ref:`Vector3` local_point **)** | +--------------------------------+---------------------------------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`get_cast_to` **(** **)** const | +--------------------------------+---------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_colliding` **(** **)** const | +--------------------------------+---------------------------------------------------------------------------------------------------------+ | :ref:`Object` | :ref:`get_collider` **(** **)** const | +--------------------------------+---------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_collider_shape` **(** **)** const | +--------------------------------+---------------------------------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`get_collision_point` **(** **)** const | +--------------------------------+---------------------------------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`get_collision_normal` **(** **)** const | +--------------------------------+---------------------------------------------------------------------------------------------------------+ | void | :ref:`add_exception_rid` **(** :ref:`RID` rid **)** | +--------------------------------+---------------------------------------------------------------------------------------------------------+ | void | :ref:`add_exception` **(** :ref:`Object` node **)** | +--------------------------------+---------------------------------------------------------------------------------------------------------+ | void | :ref:`remove_exception_rid` **(** :ref:`RID` rid **)** | +--------------------------------+---------------------------------------------------------------------------------------------------------+ | void | :ref:`remove_exception` **(** :ref:`Object` node **)** | +--------------------------------+---------------------------------------------------------------------------------------------------------+ | void | :ref:`clear_exceptions` **(** **)** | +--------------------------------+---------------------------------------------------------------------------------------------------------+ Member Function Description --------------------------- .. _class_RayCast_set_enabled: - void **set_enabled** **(** :ref:`bool` enabled **)** .. _class_RayCast_is_enabled: - :ref:`bool` **is_enabled** **(** **)** const .. _class_RayCast_set_cast_to: - void **set_cast_to** **(** :ref:`Vector3` local_point **)** .. _class_RayCast_get_cast_to: - :ref:`Vector3` **get_cast_to** **(** **)** const .. _class_RayCast_is_colliding: - :ref:`bool` **is_colliding** **(** **)** const .. _class_RayCast_get_collider: - :ref:`Object` **get_collider** **(** **)** const .. _class_RayCast_get_collider_shape: - :ref:`int` **get_collider_shape** **(** **)** const .. _class_RayCast_get_collision_point: - :ref:`Vector3` **get_collision_point** **(** **)** const .. _class_RayCast_get_collision_normal: - :ref:`Vector3` **get_collision_normal** **(** **)** const .. _class_RayCast_add_exception_rid: - void **add_exception_rid** **(** :ref:`RID` rid **)** .. _class_RayCast_add_exception: - void **add_exception** **(** :ref:`Object` node **)** .. _class_RayCast_remove_exception_rid: - void **remove_exception_rid** **(** :ref:`RID` rid **)** .. _class_RayCast_remove_exception: - void **remove_exception** **(** :ref:`Object` node **)** .. _class_RayCast_clear_exceptions: - void **clear_exceptions** **(** **)**