-
Notifications
You must be signed in to change notification settings - Fork 0
PhysicsMaterial
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.PhysicsMaterial |
| Namespace | Electron2D |
| Kind | class |
| Category | Physics |
Provides an Electron2D physics material resource for 2D body collision behavior.
public sealed class Electron2D.PhysicsMaterial : Electron2D.ResourceProfile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: PhysicsMaterial
Body material resource with Friction, Bounce, Rough, Absorbent, validation and AOT-safe serialization metadata.
Bounce is the Electron2D public name for restitution. The 0.1.0 Preview
stores material state and serializes it for the future solver; it does not
calculate contacts yet.
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 |
|---|---|---|
Absorbent |
Property | Gets or sets whether this material should absorb bounce in future contact solving. |
Bounce |
Property | Gets or sets the bounce coefficient used by this material. |
Friction |
Property | Gets or sets the friction coefficient used by this material. |
Rough |
Property | Gets or sets whether this material should prefer its friction in future contact solving. |
Electron2D.PhysicsMaterial() |
Constructor | Initializes a new instance of the PhysicsMaterial type. |
Kind: Property
public System.Boolean Absorbent { get; set; }Gets or sets whether this material should absorb bounce in future contact solving.
This property follows the validation and lifetime rules of its declaring type.
The current absorbent value.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.PhysicsMaterial
Kind: Property
public System.Single Bounce { get; set; }Gets or sets the bounce coefficient used by this material.
This is the Electron2D name for restitution.
A finite value greater than or equal to 0.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.PhysicsMaterial
Kind: Property
public System.Single Friction { get; set; }Gets or sets the friction coefficient used by this material.
This property follows the validation and lifetime rules of its declaring type.
A finite value greater than or equal to 0.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.PhysicsMaterial
Kind: Property
public System.Boolean Rough { get; set; }Gets or sets whether this material should prefer its friction in future contact solving.
This property follows the validation and lifetime rules of its declaring type.
The current rough value.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.PhysicsMaterial
Kind: Constructor
public Electron2D.PhysicsMaterial()Initializes a new instance of the PhysicsMaterial 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.PhysicsMaterial
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.