-
Notifications
You must be signed in to change notification settings - Fork 0
RectangleShape2D
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.RectangleShape2D |
| Namespace | Electron2D |
| Kind | class |
| Category | Physics |
Provides a rectangular 2D physics shape resource.
public sealed class Electron2D.RectangleShape2D : Electron2D.Shape2DThe rectangle is centered on the owning Electron2D.CollisionShape2D and
uses the Electron2D.RectangleShape2D.Size property as its full width and height.
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 |
|---|---|---|
Size |
Property | Gets or sets the full width and height of the rectangle. |
Electron2D.RectangleShape2D() |
Constructor | Initializes a new instance of the RectangleShape2D type. |
Kind: Property
public Electron2D.Vector2 Size { get; set; }Gets or sets the full width and height of the rectangle.
This property follows the validation and lifetime rules of its declaring type.
A finite vector with positive X and Y values.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.RectangleShape2D
Kind: Constructor
public Electron2D.RectangleShape2D()Initializes a new instance of the RectangleShape2D 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.RectangleShape2D
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.