-
Notifications
You must be signed in to change notification settings - Fork 0
CapsuleShape2D
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.CapsuleShape2D |
| Namespace | Electron2D |
| Kind | class |
| Category | Physics |
Provides a capsule-shaped 2D physics resource.
public sealed class Electron2D.CapsuleShape2D : Electron2D.Shape2DThe capsule is centered on the owning Electron2D.CollisionShape2D. Its
height must stay greater than its diameter.
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 |
|---|---|---|
Height |
Property | Gets or sets the full capsule height. |
Radius |
Property | Gets or sets the capsule radius. |
Electron2D.CapsuleShape2D() |
Constructor | Creates a capsule shape with Electron2D preview defaults. |
Kind: Property
public System.Single Height { get; set; }Gets or sets the full capsule height.
This property follows the validation and lifetime rules of its declaring type.
A positive finite height greater than the capsule diameter.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.CapsuleShape2D
Kind: Property
public System.Single Radius { get; set; }Gets or sets the capsule radius.
This property follows the validation and lifetime rules of its declaring type.
A positive finite radius that fits within Electron2D.CapsuleShape2D.Height.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.CapsuleShape2D
Kind: Constructor
public Electron2D.CapsuleShape2D()Creates a capsule shape with Electron2D preview defaults.
The new instance follows the lifetime and validation rules of its declaring type.
This constructor is not synchronized. Call it on the main scene thread.
This constructor is available since Electron2D 0.1.0 Preview.
Electron2D.CapsuleShape2D
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.