W3cubDocs

/Godot 3.1

SegmentShape2D

Inherits: Shape2D < Resource < Reference < Object

Category: Core

Brief Description

Segment shape for 2D collisions.

Properties

Vector2 a
Vector2 b

Description

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

Property Descriptions

Vector2 a

Setter set_a(value)
Getter get_a()

The segment’s first point position.

Vector2 b

Setter set_b(value)
Getter get_b()

The segment’s second point position.

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