123456789101112131415161718192021222324252627282930313233343536 |
- .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
- .. DO NOT EDIT THIS FILE, but the LineShape2D.xml source instead.
- .. The source is found in doc/classes or modules/<name>/doc_classes.
- .. _class_LineShape2D:
- LineShape2D
- ===========
- **Inherits:** :ref:`Shape2D<class_shape2d>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
- **Category:** Core
- Brief Description
- -----------------
- Line shape for 2D collisions.
- Member Variables
- ----------------
- .. _class_LineShape2D_d:
- - :ref:`float<class_float>` **d** - The line's distance from the origin.
- .. _class_LineShape2D_normal:
- - :ref:`Vector2<class_vector2>` **normal** - The line's normal.
- Description
- -----------
- 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.
|