-
Notifications
You must be signed in to change notification settings - Fork 0
RigidBody2D
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.RigidBody2D |
| Namespace | Electron2D |
| Kind | class |
| Category | Physics |
Provides an Electron2D rigid 2D physics body.
public class Electron2D.RigidBody2D : Electron2D.PhysicsBody2DProfile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: RigidBody2D
RID lifecycle, stored rigid body properties, transform sync, fixed-step velocity movement and AABB sweep against static bodies.
The 0.1.0 Preview baseline stores body properties and synchronizes the node transform to the physics server. Dynamic simulation is added by later physics tasks.
This type is not synchronized. Create and mutate nodes on the main scene thread.
This type is available since Electron2D 0.1.0 Preview.
| Member | Kind | Summary |
|---|---|---|
AngularVelocity |
Property | Gets or sets the current angular velocity. |
CanSleep |
Property | Gets or sets whether this body is allowed to sleep. |
CenterOfMass |
Property | Gets or sets the custom center of mass. |
CenterOfMassMode |
Property | Gets or sets how the center of mass should be selected. |
Freeze |
Property | Gets or sets whether this rigid body is frozen. |
FreezeMode |
Property | Gets or sets how this body behaves when frozen. |
GravityScale |
Property | Gets or sets the gravity multiplier for this body. |
Inertia |
Property | Gets or sets the body inertia. |
LinearVelocity |
Property | Gets or sets the current linear velocity. |
LockRotation |
Property | Gets or sets whether rotation is locked. |
Mass |
Property | Gets or sets the body mass. |
Sleeping |
Property | Gets or sets whether the body is sleeping. |
Electron2D.RigidBody2D() |
Constructor | Initializes a new instance of the RigidBody2D type. |
Kind: Property
public System.Single AngularVelocity { get; set; }Gets or sets the current angular velocity.
This property follows the validation and lifetime rules of its declaring type.
The current angular velocity value.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.RigidBody2D
Kind: Property
public System.Boolean CanSleep { get; set; }Gets or sets whether this body is allowed to sleep.
This property follows the validation and lifetime rules of its declaring type.
The current can sleep value.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.RigidBody2D
Kind: Property
public Electron2D.Vector2 CenterOfMass { get; set; }Gets or sets the custom center of mass.
This property follows the validation and lifetime rules of its declaring type.
The current center of mass value.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.RigidBody2D
Kind: Property
public Electron2D.RigidBody2D.CenterOfMassModeEnum CenterOfMassMode { get; set; }Gets or sets how the center of mass should be selected.
This property follows the validation and lifetime rules of its declaring type.
The current center of mass mode value.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.RigidBody2D
Kind: Property
public System.Boolean Freeze { get; set; }Gets or sets whether this rigid body is frozen.
This property follows the validation and lifetime rules of its declaring type.
The current freeze value.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.RigidBody2D
Kind: Property
public Electron2D.RigidBody2D.FreezeModeEnum FreezeMode { get; set; }Gets or sets how this body behaves when frozen.
This property follows the validation and lifetime rules of its declaring type.
The current freeze mode value.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.RigidBody2D
Kind: Property
public System.Single GravityScale { get; set; }Gets or sets the gravity multiplier for this body.
This property follows the validation and lifetime rules of its declaring type.
The current gravity scale value.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.RigidBody2D
Kind: Property
public System.Single Inertia { get; set; }Gets or sets the body inertia.
This property follows the validation and lifetime rules of its declaring type.
The current inertia value.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.RigidBody2D
Kind: Property
public Electron2D.Vector2 LinearVelocity { get; set; }Gets or sets the current linear velocity.
This property follows the validation and lifetime rules of its declaring type.
The current linear velocity value.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.RigidBody2D
Kind: Property
public System.Boolean LockRotation { get; set; }Gets or sets whether rotation is locked.
This property follows the validation and lifetime rules of its declaring type.
The current lock rotation value.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.RigidBody2D
Kind: Property
public System.Single Mass { get; set; }Gets or sets the body mass.
This property follows the validation and lifetime rules of its declaring type.
The current mass value.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.RigidBody2D
Kind: Property
public System.Boolean Sleeping { get; set; }Gets or sets whether the body is sleeping.
This property follows the validation and lifetime rules of its declaring type.
The current sleeping value.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.RigidBody2D
Kind: Constructor
public Electron2D.RigidBody2D()Initializes a new instance of the RigidBody2D 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.RigidBody2D
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.