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

NameTypeDescription
d[get, set] doubleThe line's distance from the origin.
normal[get, set] Vector2The line's normal.

Methods

NameDescription
getD
getNormal
setD
setNormal