CollisionPolygon.xml 1.1 KB

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="CollisionPolygon" inherits="Spatial" category="Core" version="3.1">
  3. <brief_description>
  4. Editor-only class for defining a collision polygon in 3D space.
  5. </brief_description>
  6. <description>
  7. Allows editing a collision polygon's vertices on a selected plane. Can also set a depth perpendicular to that plane. This class is only available in the editor. It will not appear in the scene tree at runtime. Creates a [Shape] for gameplay. Properties modified during gameplay will have no effect.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. </methods>
  15. <members>
  16. <member name="depth" type="float" setter="set_depth" getter="get_depth">
  17. Length that the resulting collision extends in either direction perpendicular to its polygon.
  18. </member>
  19. <member name="disabled" type="bool" setter="set_disabled" getter="is_disabled">
  20. If true, no collision will be produced.
  21. </member>
  22. <member name="polygon" type="PoolVector2Array" setter="set_polygon" getter="get_polygon">
  23. Array of vertices which define the polygon.
  24. </member>
  25. </members>
  26. <constants>
  27. </constants>
  28. </class>