W3cubDocs

/Godot 3.2

SegmentShape2D

Inherits: Shape2D < Resource < Reference < Object

Segment shape for 2D collisions.

Description

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

Properties

Vector2 a Vector2( 0, 0 )
Vector2 b Vector2( 0, 10 )

Property Descriptions

Vector2 a

Default Vector2( 0, 0 )
Setter set_a(value)
Getter get_a()

The segment's first point position.

Vector2 b

Default Vector2( 0, 10 )
Setter set_b(value)
Getter get_b()

The segment's second point position.

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