-
Notifications
You must be signed in to change notification settings - Fork 0
ConvexPolygonShape2D
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.ConvexPolygonShape2D |
| Namespace | Electron2D |
| Kind | class |
| Category | Physics |
Provides a convex polygon 2D physics shape resource.
public sealed class Electron2D.ConvexPolygonShape2D : Electron2D.Shape2DProfile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: ConvexPolygonShape2D
Convex polygon shape resource with finite point validation and AOT-safe array serialization.
Points are stored in local shape coordinates. The resource copies arrays on read and write so callers cannot mutate shape geometry behind the resource.
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 |
|---|---|---|
Points |
Property | Gets or sets the convex polygon points. |
Electron2D.ConvexPolygonShape2D() |
Constructor | Initializes a new instance of the ConvexPolygonShape2D type. |
Kind: Property
public Electron2D.Vector2[] Points { get; set; }Gets or sets the convex polygon points.
This property follows the validation and lifetime rules of its declaring type.
At least three finite, non-duplicate points that describe a convex polygon.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.ConvexPolygonShape2D
Kind: Constructor
public Electron2D.ConvexPolygonShape2D()Initializes a new instance of the ConvexPolygonShape2D 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.ConvexPolygonShape2D
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.