2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2020-02-01 02:03:48 +01:00
<class name= "LineShape2D" inherits= "Shape2D" version= "4.0" >
2017-09-12 22:42:36 +02:00
<brief_description >
2017-09-17 06:06:58 +02:00
Line shape for 2D collisions.
2017-09-12 22:42:36 +02:00
</brief_description>
<description >
2019-06-22 01:04:47 +02:00
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.
2017-09-12 22:42:36 +02:00
</description>
<tutorials >
</tutorials>
<methods >
</methods>
<members >
2020-05-09 14:24:46 +02:00
<member name= "distance" type= "float" setter= "set_distance" getter= "get_distance" default= "0.0" >
2017-09-17 06:06:58 +02:00
The line's distance from the origin.
2017-09-12 22:42:36 +02:00
</member>
2019-09-24 19:45:03 +02:00
<member name= "normal" type= "Vector2" setter= "set_normal" getter= "get_normal" default= "Vector2(0, 1)" >
2017-09-17 06:06:58 +02:00
The line's normal.
2017-09-12 22:42:36 +02:00
</member>
</members>
<constants >
</constants>
</class>