-
Notifications
You must be signed in to change notification settings - Fork 0
PhysicsServer2D
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.PhysicsServer2D |
| Namespace | Electron2D |
| Kind | class |
| Category | Physics |
Provides the Electron2D server boundary for low-level 2D physics objects.
public static class Electron2D.PhysicsServer2DProfile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: PhysicsServer2D
Low-level 2D physics server facade for RID allocation, spaces, shape kinds and internal backend swapping; no real simulation yet.
PhysicsServer2D creates and manipulates physics resources through opaque
Electron2D.Rid values. The public API does not expose Box2D.NET or any
other concrete backend handle.
Electron2D 0.1.0 Preview implements the server resource boundary only. Physical bodies, shape data, contacts and queries are added by later physics tasks.
Calls are serialized through an internal lock. Backend replacement is an internal startup/test operation and should not be performed while physics is stepping.
This type is available since Electron2D 0.1.0 Preview.
| Member | Kind | Summary |
|---|---|---|
AreaCreate() |
Method | Creates a new 2D area object. |
BodyCreate() |
Method | Creates a new 2D body object. |
CapsuleShapeCreate() |
Method | Creates a capsule shape. |
CircleShapeCreate() |
Method | Creates a circle shape. |
ConcavePolygonShapeCreate() |
Method | Creates a concave polygon shape. |
ConvexPolygonShapeCreate() |
Method | Creates a convex polygon shape. |
FreeRid(Electron2D.Rid) |
Method | Frees a physics server RID. |
GetProcessInfo(Electron2D.PhysicsServer2D.ProcessInfo) |
Method | Gets a physics process statistic. |
JointCreate() |
Method | Creates a new 2D joint object. |
RectangleShapeCreate() |
Method | Creates a rectangle shape. |
SegmentShapeCreate() |
Method | Creates a segment shape. |
SeparationRayShapeCreate() |
Method | Creates a separation ray shape. |
SetActive(System.Boolean) |
Method | Activates or deactivates physics processing in the active backend. |
ShapeGetType(Electron2D.Rid) |
Method | Gets the Electron2D shape type stored for a physics shape RID. |
SpaceCreate() |
Method | Creates a new 2D physics space. |
SpaceGetParam(Electron2D.Rid, Electron2D.PhysicsServer2D.SpaceParameter) |
Method | Gets a numeric parameter from a physics space. |
SpaceIsActive(Electron2D.Rid) |
Method | Checks whether a physics space is active. |
SpaceSetActive(Electron2D.Rid, System.Boolean) |
Method | Sets whether a physics space is active. |
SpaceSetParam(Electron2D.Rid, Electron2D.PhysicsServer2D.SpaceParameter, System.Single) |
Method | Sets a numeric parameter on a physics space. |
WorldBoundaryShapeCreate() |
Method | Creates a world boundary shape. |
Kind: Method
public static Electron2D.Rid AreaCreate()()Creates a new 2D area object.
This method follows the validation and lifetime rules of its declaring type.
A Electron2D.Rid identifying the created area.
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.PhysicsServer2D
Kind: Method
public static Electron2D.Rid BodyCreate()()Creates a new 2D body object.
This method follows the validation and lifetime rules of its declaring type.
A Electron2D.Rid identifying the created body.
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.PhysicsServer2D
Kind: Method
public static Electron2D.Rid CapsuleShapeCreate()()Creates a capsule shape.
This method follows the validation and lifetime rules of its declaring type.
A Electron2D.Rid identifying the created shape.
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.PhysicsServer2D
Kind: Method
public static Electron2D.Rid CircleShapeCreate()()Creates a circle shape.
This method follows the validation and lifetime rules of its declaring type.
A Electron2D.Rid identifying the created shape.
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.PhysicsServer2D
Kind: Method
public static Electron2D.Rid ConcavePolygonShapeCreate()()Creates a concave polygon shape.
This method follows the validation and lifetime rules of its declaring type.
A Electron2D.Rid identifying the created shape.
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.PhysicsServer2D
Kind: Method
public static Electron2D.Rid ConvexPolygonShapeCreate()()Creates a convex polygon shape.
This method follows the validation and lifetime rules of its declaring type.
A Electron2D.Rid identifying the created shape.
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.PhysicsServer2D
Kind: Method
public static System.Void FreeRid(Electron2D.Rid)(Electron2D.Rid rid)Frees a physics server RID.
This method follows the validation and lifetime rules of its declaring type.
-
rid: The RID to free.
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.PhysicsServer2D
Kind: Method
public static System.Int32 GetProcessInfo(Electron2D.PhysicsServer2D.ProcessInfo)(Electron2D.PhysicsServer2D.ProcessInfo processInfo)Gets a physics process statistic.
This method follows the validation and lifetime rules of its declaring type.
-
processInfo: The statistic to read.
The current statistic value.
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.PhysicsServer2D
Kind: Method
public static Electron2D.Rid JointCreate()()Creates a new 2D joint object.
This method follows the validation and lifetime rules of its declaring type.
A Electron2D.Rid identifying the created joint.
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.PhysicsServer2D
Kind: Method
public static Electron2D.Rid RectangleShapeCreate()()Creates a rectangle shape.
This method follows the validation and lifetime rules of its declaring type.
A Electron2D.Rid identifying the created shape.
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.PhysicsServer2D
Kind: Method
public static Electron2D.Rid SegmentShapeCreate()()Creates a segment shape.
This method follows the validation and lifetime rules of its declaring type.
A Electron2D.Rid identifying the created shape.
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.PhysicsServer2D
Kind: Method
public static Electron2D.Rid SeparationRayShapeCreate()()Creates a separation ray shape.
This method follows the validation and lifetime rules of its declaring type.
A Electron2D.Rid identifying the created shape.
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.PhysicsServer2D
Kind: Method
public static System.Void SetActive(System.Boolean)(System.Boolean active)Activates or deactivates physics processing in the active backend.
This method follows the validation and lifetime rules of its declaring type.
-
active: Whether the physics server should process physics objects.
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.PhysicsServer2D
Kind: Method
public static Electron2D.PhysicsServer2D.ShapeType ShapeGetType(Electron2D.Rid)(Electron2D.Rid shape)Gets the Electron2D shape type stored for a physics shape RID.
This method follows the validation and lifetime rules of its declaring type.
-
shape: The shape to query.
The type of the shape.
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.PhysicsServer2D
Kind: Method
public static Electron2D.Rid SpaceCreate()()Creates a new 2D physics space.
This method follows the validation and lifetime rules of its declaring type.
A Electron2D.Rid identifying the created space.
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.PhysicsServer2D
Kind: Method
public static System.Single SpaceGetParam(Electron2D.Rid, Electron2D.PhysicsServer2D.SpaceParameter)(Electron2D.Rid space, Electron2D.PhysicsServer2D.SpaceParameter param)Gets a numeric parameter from a physics space.
This method follows the validation and lifetime rules of its declaring type.
-
space: The space to query. -
param: The parameter to read.
The stored parameter value.
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.PhysicsServer2D
Kind: Method
public static System.Boolean SpaceIsActive(Electron2D.Rid)(Electron2D.Rid space)Checks whether a physics space is active.
This method follows the validation and lifetime rules of its declaring type.
-
space: The space to query.
true when the space is active; otherwise, false.
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.PhysicsServer2D
Kind: Method
public static System.Void SpaceSetActive(Electron2D.Rid, System.Boolean)(Electron2D.Rid space, System.Boolean active)Sets whether a physics space is active.
This method follows the validation and lifetime rules of its declaring type.
-
space: The space to update. -
active: Whether the space should be active.
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.PhysicsServer2D
Kind: Method
public static System.Void SpaceSetParam(Electron2D.Rid, Electron2D.PhysicsServer2D.SpaceParameter, System.Single)(Electron2D.Rid space, Electron2D.PhysicsServer2D.SpaceParameter param, System.Single value)Sets a numeric parameter on a physics space.
This method follows the validation and lifetime rules of its declaring type.
-
space: The space to update. -
param: The parameter to update. -
value: The new parameter value.
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.PhysicsServer2D
Kind: Method
public static Electron2D.Rid WorldBoundaryShapeCreate()()Creates a world boundary shape.
This method follows the validation and lifetime rules of its declaring type.
A Electron2D.Rid identifying the created shape.
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.PhysicsServer2D
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.