RayShape.xml 889 B

1234567891011121314151617181920212223
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="RayShape" inherits="Shape" category="Core" version="3.1.2">
  3. <brief_description>
  4. Ray shape for 3D collisions.
  5. </brief_description>
  6. <description>
  7. Ray shape for 3D collisions, which can be set into a [PhysicsBody] or [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.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. </methods>
  13. <members>
  14. <member name="length" type="float" setter="set_length" getter="get_length">
  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">
  18. If [code]true[/code], allow the shape to return the correct normal. Default value: [code]false[/code].
  19. </member>
  20. </members>
  21. <constants>
  22. </constants>
  23. </class>