mirror of
https://github.com/Relintai/pandemonium_engine_docs.git
synced 2025-01-23 15:17:21 +01:00
67 lines
2.4 KiB
ReStructuredText
67 lines
2.4 KiB
ReStructuredText
:github_url: hide
|
|
|
|
.. DO NOT EDIT THIS FILE!!!
|
|
.. Generated automatically from Godot engine sources.
|
|
.. Generator: https://github.com/godotengine/godot/tree/3.5/doc/tools/make_rst.py.
|
|
.. XML source: https://github.com/godotengine/godot/tree/3.5/doc/classes/LineShape2D.xml.
|
|
|
|
.. _class_LineShape2D:
|
|
|
|
LineShape2D
|
|
===========
|
|
|
|
**Inherits:** :ref:`Shape2D<class_Shape2D>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
|
|
|
Line shape for 2D collisions.
|
|
|
|
Description
|
|
-----------
|
|
|
|
Line shape for 2D collisions. It works like a 2D plane and will not allow any physics 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.
|
|
|
|
Properties
|
|
----------
|
|
|
|
+-------------------------------+--------------------------------------------------+----------------------+
|
|
| :ref:`float<class_float>` | :ref:`d<class_LineShape2D_property_d>` | ``0.0`` |
|
|
+-------------------------------+--------------------------------------------------+----------------------+
|
|
| :ref:`Vector2<class_Vector2>` | :ref:`normal<class_LineShape2D_property_normal>` | ``Vector2( 0, -1 )`` |
|
|
+-------------------------------+--------------------------------------------------+----------------------+
|
|
|
|
Property Descriptions
|
|
---------------------
|
|
|
|
.. _class_LineShape2D_property_d:
|
|
|
|
- :ref:`float<class_float>` **d**
|
|
|
|
+-----------+--------------+
|
|
| *Default* | ``0.0`` |
|
|
+-----------+--------------+
|
|
| *Setter* | set_d(value) |
|
|
+-----------+--------------+
|
|
| *Getter* | get_d() |
|
|
+-----------+--------------+
|
|
|
|
The line's distance from the origin.
|
|
|
|
----
|
|
|
|
.. _class_LineShape2D_property_normal:
|
|
|
|
- :ref:`Vector2<class_Vector2>` **normal**
|
|
|
|
+-----------+----------------------+
|
|
| *Default* | ``Vector2( 0, -1 )`` |
|
|
+-----------+----------------------+
|
|
| *Setter* | set_normal(value) |
|
|
+-----------+----------------------+
|
|
| *Getter* | get_normal() |
|
|
+-----------+----------------------+
|
|
|
|
The line's normal.
|
|
|
|
.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
|
|
.. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
|
|
.. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
|