RayShape2D.xml 823 B

1234567891011121314151617181920212223
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="RayShape2D" inherits="Shape2D" version="3.2">
  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. <methods>
  12. </methods>
  13. <members>
  14. <member name="length" type="float" setter="set_length" getter="get_length" default="20.0">
  15. The ray's length.
  16. </member>
  17. <member name="slips_on_slope" type="bool" setter="set_slips_on_slope" getter="get_slips_on_slope" default="false">
  18. If [code]true[/code], allow the shape to return the correct normal.
  19. </member>
  20. </members>
  21. <constants>
  22. </constants>
  23. </class>