mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00:00
classref: Sync with latest 4.0-dev
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
:github_url: hide
|
||||
|
||||
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
||||
.. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
|
||||
.. DO NOT EDIT THIS FILE, but the RayCast2D.xml source instead.
|
||||
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
||||
|
||||
@@ -45,6 +45,8 @@ Properties
|
||||
+-------------------------------+--------------------------------------------------------------------------+--------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`exclude_parent<class_RayCast2D_property_exclude_parent>` | ``true`` |
|
||||
+-------------------------------+--------------------------------------------------------------------------+--------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`hit_from_inside<class_RayCast2D_property_hit_from_inside>` | ``false`` |
|
||||
+-------------------------------+--------------------------------------------------------------------------+--------------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`target_position<class_RayCast2D_property_target_position>` | ``Vector2(0, 50)`` |
|
||||
+-------------------------------+--------------------------------------------------------------------------+--------------------+
|
||||
|
||||
@@ -162,6 +164,22 @@ If ``true``, the parent node will be excluded from collision detection.
|
||||
|
||||
----
|
||||
|
||||
.. _class_RayCast2D_property_hit_from_inside:
|
||||
|
||||
- :ref:`bool<class_bool>` **hit_from_inside**
|
||||
|
||||
+-----------+------------------------------+
|
||||
| *Default* | ``false`` |
|
||||
+-----------+------------------------------+
|
||||
| *Setter* | set_hit_from_inside(value) |
|
||||
+-----------+------------------------------+
|
||||
| *Getter* | is_hit_from_inside_enabled() |
|
||||
+-----------+------------------------------+
|
||||
|
||||
If ``true``, the ray will detect a hit when starting inside shapes. In this case the collision normal will be ``Vector2(0, 0)``. Does not affect concave polygon shapes.
|
||||
|
||||
----
|
||||
|
||||
.. _class_RayCast2D_property_target_position:
|
||||
|
||||
- :ref:`Vector2<class_Vector2>` **target_position**
|
||||
@@ -241,7 +259,7 @@ Returns whether or not the specified layer of the :ref:`collision_mask<class_Ray
|
||||
|
||||
- :ref:`Vector2<class_Vector2>` **get_collision_normal** **(** **)** |const|
|
||||
|
||||
Returns the normal of the intersecting object's shape at the collision point.
|
||||
Returns the normal of the intersecting object's shape at the collision point, or ``Vector2(0, 0)`` if the ray starts inside the shape and :ref:`hit_from_inside<class_RayCast2D_property_hit_from_inside>` is ``true``.
|
||||
|
||||
----
|
||||
|
||||
|
||||
Reference in New Issue
Block a user