RayShape2D.xml 861 B

1234567891011121314151617181920212223242526
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="RayShape2D" inherits="Shape2D" category="Core" version="3.1">
  3. <brief_description>
  4. Ray shape for 2D collisions.
  5. </brief_description>
  6. <description>
  7. Ray shape for 2D collisions. 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.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. </methods>
  15. <members>
  16. <member name="length" type="float" setter="set_length" getter="get_length">
  17. The ray's length.
  18. </member>
  19. <member name="slips_on_slope" type="bool" setter="set_slips_on_slope" getter="get_slips_on_slope">
  20. If [code]true[/code], allow the shape to return the correct normal. Default value: [code]false[/code].
  21. </member>
  22. </members>
  23. <constants>
  24. </constants>
  25. </class>