-
Notifications
You must be signed in to change notification settings - Fork 0
Shape2D
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.Shape2D |
| Namespace | Electron2D |
| Kind | class |
| Category | Physics |
Provides the Electron2D base resource for 2D physics shapes.
public abstract class Electron2D.Shape2D : Electron2D.ResourceProfile: 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.
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.
This type is not synchronized. Create and mutate resources on the main scene thread.
This type is available since Electron2D 0.1.0 Preview.
| Member | Kind | Summary |
|---|---|---|
Electron2D.Shape2D() |
Constructor | Initializes a new instance of the Shape2D type. |
GetRid() |
Method | Gets the physics server RID backing this shape. |
Kind: Constructor
public Electron2D.Shape2D()Initializes a new instance of the Shape2D 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.Shape2D
Kind: Method
public Electron2D.Rid GetRid()()Gets the physics server RID backing this shape.
This method follows the validation and lifetime rules of its declaring type.
A valid shape RID created by the concrete shape resource.
This method is not synchronized. Call it on the main scene thread.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.Shape2D
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.