-
Notifications
You must be signed in to change notification settings - Fork 0
SegmentShape2D
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.SegmentShape2D |
| Namespace | Electron2D |
| Kind | class |
| Category | Physics |
Provides a finite line segment 2D physics shape resource.
public sealed class Electron2D.SegmentShape2D : Electron2D.Shape2DProfile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: SegmentShape2D
Segment shape resource with endpoint validation, RID creation and AOT-safe serialization metadata.
Segment shapes are useful for simple static boundaries. A segment must use two distinct finite points.
This type is not synchronized. Create and mutate resources on the main scene thread.
This type is available since Electron2D 0.1.0 Preview.
| Member | Kind | Summary |
|---|---|---|
A |
Property | Gets or sets the first segment endpoint. |
B |
Property | Gets or sets the second segment endpoint. |
Electron2D.SegmentShape2D() |
Constructor | Initializes a new instance of the SegmentShape2D type. |
Kind: Property
public Electron2D.Vector2 A { get; set; }Gets or sets the first segment endpoint.
This property follows the validation and lifetime rules of its declaring type.
The current a value.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.SegmentShape2D
Kind: Property
public Electron2D.Vector2 B { get; set; }Gets or sets the second segment endpoint.
This property follows the validation and lifetime rules of its declaring type.
The current b value.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.SegmentShape2D
Kind: Constructor
public Electron2D.SegmentShape2D()Initializes a new instance of the SegmentShape2D type.
The new instance follows the lifetime and validation rules of its declaring type.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.SegmentShape2D
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.