-
Notifications
You must be signed in to change notification settings - Fork 0
ConcavePolygonShape2D
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.ConcavePolygonShape2D |
| Namespace | Electron2D |
| Kind | class |
| Category | Physics |
Provides a concave polygon 2D physics shape resource backed by line segments.
public sealed class Electron2D.ConcavePolygonShape2D : Electron2D.Shape2DConcave polygon shapes are allowed only under Electron2D.StaticBody2D in
the preview physics model. Use Electron2D.ConvexPolygonShape2D for
non-static bodies.
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 |
|---|---|---|
Segments |
Property | Gets or sets the line segment endpoint pairs that make up the shape. |
Electron2D.ConcavePolygonShape2D() |
Constructor | Initializes a new instance of the ConcavePolygonShape2D type. |
Kind: Property
public Electron2D.Vector2[] Segments { get; set; }Gets or sets the line segment endpoint pairs that make up the shape.
This property follows the validation and lifetime rules of its declaring type.
An even-length array containing one or more finite, non-zero point pairs.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.ConcavePolygonShape2D
Kind: Constructor
public Electron2D.ConcavePolygonShape2D()Initializes a new instance of the ConcavePolygonShape2D 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.ConcavePolygonShape2D
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.