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 >
2019-06-29 12:38:01 +02:00
<member name= "d" type= "float" setter= "set_d" getter= "get_d" 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>
2020-02-12 09:59:06 +01: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>