Skip to content

StaticBody2D

Eduard Gushchin edited this page Jun 21, 2026 · 5 revisions

StaticBody2D

Back to API Reference

Namespace: Electron2D

Summary

Provides an Electron2D static 2D physics body.

Declaration

public class Electron2D.StaticBody2D : Electron2D.PhysicsBody2D

Remarks

This type is part of the Electron2D 0.1.0 Preview public API.

Thread Safety

This type is not synchronized. Create and mutate nodes on the main scene thread.

Since

This type is available since Electron2D 0.1.0 Preview.

Members

Member Kind Summary
ConstantAngularVelocity Property Gets or sets the constant angular velocity applied by this static body.
ConstantLinearVelocity Property Gets or sets the constant linear velocity applied by this static body.
Electron2D.StaticBody2D() Constructor Initializes a new instance of the StaticBody2D type.

Member Details

ConstantAngularVelocity

Kind: Property

public System.Single ConstantAngularVelocity { get; set; }

Summary

Gets or sets the constant angular velocity applied by this static body.

Remarks

This property follows the validation and lifetime rules of its declaring type.

Value

The current constant angular velocity value.

Thread Safety

This property is not synchronized. Mutate it on the main scene thread.

Since

This property is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.StaticBody2D

ConstantLinearVelocity

Kind: Property

public Electron2D.Vector2 ConstantLinearVelocity { get; set; }

Summary

Gets or sets the constant linear velocity applied by this static body.

Remarks

This property follows the validation and lifetime rules of its declaring type.

Value

The current constant linear velocity value.

Thread Safety

This property is not synchronized. Mutate it on the main scene thread.

Since

This property is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.StaticBody2D

Electron2D.StaticBody2D()

Kind: Constructor

public Electron2D.StaticBody2D()

Summary

Initializes a new instance of the StaticBody2D type.

Remarks

The new instance follows the lifetime and validation rules of its declaring type.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.StaticBody2D

Clone this wiki locally