Skip to content

Shape2D

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

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

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

Overview

Provides the Electron2D base resource for 2D physics shapes.

Syntax

public abstract class Electron2D.Shape2D : Electron2D.Resource

Godot 4.7 C# profile compatibility

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

Base shape resource for CollisionShape2D with lazy physics RID creation and cleanup.

Remarks

Shape2D owns an opaque physics server Electron2D.Rid lazily created by the concrete resource type. The public API does not expose backend-native shape handles.

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
Electron2D.Shape2D() Constructor Initializes a new instance of the Shape2D type.
GetRid() Method Gets the physics server RID backing this shape.

Member Details

Electron2D.Shape2D()

Kind: Constructor

public Electron2D.Shape2D()

Summary

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

GetRid()

Kind: Method

public Electron2D.Rid GetRid()()

Summary

Gets the physics server RID backing this shape.

Remarks

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

Returns

A valid shape RID created by the concrete shape resource.

Thread Safety

This method is not synchronized. Call it on the main scene thread.

Since

This method is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Shape2D

Clone this wiki locally