W3cubDocs

/Godot 3.0

SegmentShape2D

Inherits: Shape2D < Resource < Reference < Object

Category: Core

Brief Description

Segment shape for 2D collisions.

Member Variables

  • Vector2 a - The segment’s first point position.
  • Vector2 b - The segment’s second point position.

Description

Segment shape for 2D collisions. Consists of two points, a and b.

© 2014–2018 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.0/classes/class_segmentshape2d.html