2017-09-13 04:42:36 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
2018-01-25 15:50:56 +08:00
<class name= "LineShape2D" inherits= "Shape2D" category= "Core" version= "3.0-stable" >
2017-09-13 04:42:36 +08:00
<brief_description >
2017-09-17 12:06:58 +08:00
Line shape for 2D collisions.
2017-09-13 04:42:36 +08:00
</brief_description>
<description >
2017-09-17 12:06:58 +08:00
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.
2017-09-13 04:42:36 +08:00
</description>
<tutorials >
</tutorials>
<demos >
</demos>
<methods >
</methods>
<members >
2017-09-13 14:49:40 +08:00
<member name= "d" type= "float" setter= "set_d" getter= "get_d" >
2017-09-17 12:06:58 +08:00
The line's distance from the origin.
2017-09-13 04:42:36 +08:00
</member>
2017-09-13 14:49:40 +08:00
<member name= "normal" type= "Vector2" setter= "set_normal" getter= "get_normal" >
2017-09-17 12:06:58 +08:00
The line's normal.
2017-09-13 04:42:36 +08:00
</member>
</members>
<constants >
</constants>
</class>