RayShape2D.xml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="RayShape2D" inherits="Shape2D" category="Core" version="3.0.alpha.custom_build">
  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. <method name="get_length" qualifiers="const">
  15. <return type="float">
  16. </return>
  17. <description>
  18. Return the length of the ray.
  19. </description>
  20. </method>
  21. <method name="set_length">
  22. <return type="void">
  23. </return>
  24. <argument index="0" name="length" type="float">
  25. </argument>
  26. <description>
  27. Set the length of the ray.
  28. </description>
  29. </method>
  30. </methods>
  31. <members>
  32. <member name="length" type="float" setter="set_length" getter="get_length">
  33. The ray's length.
  34. </member>
  35. </members>
  36. <constants>
  37. </constants>
  38. </class>