class_lineshape2d.rst 1017 B

123456789101112131415161718192021222324252627282930313233343536
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the LineShape2D.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_LineShape2D:
  5. LineShape2D
  6. ===========
  7. **Inherits:** :ref:`Shape2D<class_shape2d>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Line shape for 2D collisions.
  12. Member Variables
  13. ----------------
  14. .. _class_LineShape2D_d:
  15. - :ref:`float<class_float>` **d** - The line's distance from the origin.
  16. .. _class_LineShape2D_normal:
  17. - :ref:`Vector2<class_vector2>` **normal** - The line's normal.
  18. Description
  19. -----------
  20. Line shape for 2D collisions. It works like a 2D plane and will not allow any body to go to the negative side. Not recommended for rigid bodies, and usually not recommended for static bodies either because it forces checks against it on every frame.