Skip to content

World2D

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

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

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

Overview

Provides access to the 2D world associated with a canvas item.

Syntax

public sealed class Electron2D.World2D : Electron2D.Resource

Godot 4.7 C# profile compatibility

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

2D world object exposing DirectSpaceState for direct physics queries without backend handles.

Remarks

The preview world object exposes a direct physics space state for queries. It does not expose backend-specific world handles.

Thread Safety

This type is not synchronized. Use it on the main scene thread.

Since

This type is available since Electron2D 0.1.0 Preview.

Members

Member Kind Summary
DirectSpaceState Property Gets the direct physics query state for this world.

Member Details

DirectSpaceState

Kind: Property

public Electron2D.PhysicsDirectSpaceState2D DirectSpaceState { get; }

Summary

Gets the direct physics query state for this world.

Remarks

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

Value

The current direct space state value.

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

Clone this wiki locally