Struct LineShape2D
Line shape for 2D collisions.
struct LineShape2D
;
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
Name | Type | Description |
---|---|---|
d [get, set]
|
double | The line's distance from the origin. |
normal [get, set]
|
Vector2 | The line's normal. |
Methods
Name | Description |
---|---|
getD
|
|
getNormal
|
|
setD
|
|
setNormal
|