mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
classref: Add property overview and setter/getter like in editor docs
Output from godotengine/godot#22013. Fixes #1729.
This commit is contained in:
@@ -8,6 +8,7 @@ RayShape
|
||||
========
|
||||
|
||||
**Inherits:** :ref:`Shape<class_Shape>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||
|
||||
**Category:** Core
|
||||
|
||||
Brief Description
|
||||
@@ -15,6 +16,15 @@ Brief Description
|
||||
|
||||
Ray shape for 3D collisions.
|
||||
|
||||
Properties
|
||||
----------
|
||||
|
||||
+---------------------------+------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`length<class_RayShape_length>` |
|
||||
+---------------------------+------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`slips_on_slope<class_RayShape_slips_on_slope>` |
|
||||
+---------------------------+------------------------------------------------------+
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -25,10 +35,25 @@ Property Descriptions
|
||||
|
||||
.. _class_RayShape_length:
|
||||
|
||||
- :ref:`float<class_float>` **length** - The ray's length.
|
||||
- :ref:`float<class_float>` **length**
|
||||
|
||||
+----------+-------------------+
|
||||
| *Setter* | set_length(value) |
|
||||
+----------+-------------------+
|
||||
| *Getter* | get_length() |
|
||||
+----------+-------------------+
|
||||
|
||||
The ray's length.
|
||||
|
||||
.. _class_RayShape_slips_on_slope:
|
||||
|
||||
- :ref:`bool<class_bool>` **slips_on_slope** - If ``true`` allow the shape to return the correct normal. Default value: ``false``.
|
||||
- :ref:`bool<class_bool>` **slips_on_slope**
|
||||
|
||||
+----------+---------------------------+
|
||||
| *Setter* | set_slips_on_slope(value) |
|
||||
+----------+---------------------------+
|
||||
| *Getter* | get_slips_on_slope() |
|
||||
+----------+---------------------------+
|
||||
|
||||
If ``true`` allow the shape to return the correct normal. Default value: ``false``.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user