Skip to content

CircleShape2D

Eduard Gushchin edited this page Jul 1, 2026 · 5 revisions

Home | API by Category | Complete API Index | API Compatibility

Field Value
Full name Electron2D.CircleShape2D
Namespace Electron2D
Kind class
Category Physics

Overview

Provides a circular 2D physics shape resource.

Syntax

public sealed class Electron2D.CircleShape2D : Electron2D.Shape2D

Godot 4.7 C# profile compatibility

Profile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: CircleShape2D

Circle shape resource with radius validation, RID creation and AOT-safe serialization metadata.

Remarks

The circle is centered on the owning Electron2D.CollisionShape2D.

Thread Safety

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

Since

This type is available since Electron2D 0.1.0 Preview.

Members

Member Kind Summary
Radius Property Gets or sets the circle radius.
Electron2D.CircleShape2D() Constructor Initializes a new instance of the CircleShape2D type.

Member Details

Radius

Kind: Property

public System.Single Radius { get; set; }

Summary

Gets or sets the circle radius.

Remarks

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

Value

A positive finite radius.

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.CircleShape2D

Electron2D.CircleShape2D()

Kind: Constructor

public Electron2D.CircleShape2D()

Summary

Initializes a new instance of the CircleShape2D 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.CircleShape2D

Clone this wiki locally