class_rayshape.rst 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the RayShape.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_RayShape:
  6. RayShape
  7. ========
  8. **Inherits:** :ref:`Shape<class_Shape>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Ray shape for 3D collisions.
  13. Properties
  14. ----------
  15. +---------------------------+---------------------------------------------------------------+
  16. | :ref:`float<class_float>` | :ref:`length<class_RayShape_property_length>` |
  17. +---------------------------+---------------------------------------------------------------+
  18. | :ref:`bool<class_bool>` | :ref:`slips_on_slope<class_RayShape_property_slips_on_slope>` |
  19. +---------------------------+---------------------------------------------------------------+
  20. Description
  21. -----------
  22. Ray shape for 3D collisions, which can be set into a :ref:`PhysicsBody<class_PhysicsBody>` or :ref:`Area<class_Area>`. A ray is not really a collision body, instead it tries to separate itself from whatever is touching its far endpoint. It's often useful for characters.
  23. Property Descriptions
  24. ---------------------
  25. .. _class_RayShape_property_length:
  26. - :ref:`float<class_float>` **length**
  27. +----------+-------------------+
  28. | *Setter* | set_length(value) |
  29. +----------+-------------------+
  30. | *Getter* | get_length() |
  31. +----------+-------------------+
  32. The ray's length.
  33. ----
  34. .. _class_RayShape_property_slips_on_slope:
  35. - :ref:`bool<class_bool>` **slips_on_slope**
  36. +----------+---------------------------+
  37. | *Setter* | set_slips_on_slope(value) |
  38. +----------+---------------------------+
  39. | *Getter* | get_slips_on_slope() |
  40. +----------+---------------------------+
  41. If ``true``, allow the shape to return the correct normal. Default value: ``false``.