Inherits: Shape2D < Resource < Reference < Object
Line shape for 2D collisions.
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.
The line’s distance from the origin.
Vector2( 0, -1 )
The line’s normal.
doradoro's advice! Getters and Setters will be deprecated! Avoid their use!
Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 2020-03-07 at 01:34:48. It's the English Stable version because it's what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.