SegmentShape2D

Inherits: Shape2D < Resource < Reference < Object

Category: Core

Brief Description

Segment shape for 2D collisions.

Properties

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

Description

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

Property Descriptions

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

The segment’s first point position.


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

The segment’s second point position.