Up to date
This page is up to date for Godot
If you still find outdated information, please open an issue.
Segment shape resource for 2D physics.
Performance: Being a primitive collision shape, SegmentShape2D is fast to check collisions against (though not as fast as CircleShape2D).
Vector2 a =
The segment's first point position.
Vector2 b =
The segment's second point position.