-
Notifications
You must be signed in to change notification settings - Fork 0
PhysicsDirectSpaceState2D
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.PhysicsDirectSpaceState2D |
| Namespace | Electron2D |
| Kind | class |
| Category | Physics |
Provides direct 2D physics queries for a Electron2D.World2D.
public sealed class Electron2D.PhysicsDirectSpaceState2D : Electron2D.ObjectProfile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: PhysicsDirectSpaceState2D
Managed AABB baseline for IntersectRay, IntersectPoint and IntersectShape over active CollisionShape2D nodes.
Electron2D 0.1.0 Preview implements a managed AABB query baseline over
active Electron2D.CollisionShape2D nodes. The result format follows the
Electron2D dynamic dictionary/array surface and does not expose backend
handles.
This type is not synchronized. Call it on the main scene thread.
This type is available since Electron2D 0.1.0 Preview.
| Member | Kind | Summary |
|---|---|---|
IntersectPoint(Electron2D.PhysicsPointQueryParameters2D, System.Int32) |
Method | Finds physics objects whose active shapes contain a point. |
IntersectRay(Electron2D.PhysicsRayQueryParameters2D) |
Method | Intersects a ray segment with the current 2D physics shapes. |
IntersectShape(Electron2D.PhysicsShapeQueryParameters2D, System.Int32) |
Method | Finds physics objects whose active shapes intersect a query shape. |
Kind: Method
public Electron2D.Collections.Array IntersectPoint(Electron2D.PhysicsPointQueryParameters2D, System.Int32)(Electron2D.PhysicsPointQueryParameters2D parameters, System.Int32 maxResults)Finds physics objects whose active shapes contain a point.
This method follows the validation and lifetime rules of its declaring type.
-
parameters: Point query parameters. -
maxResults: Maximum number of result dictionaries to return.
An array of dictionaries describing matching objects.
-
System.ArgumentNullException: Thrown whenparametersisnull. -
System.ArgumentOutOfRangeException: Thrown whenmaxResultsis negative.
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.PhysicsDirectSpaceState2D
Kind: Method
public Electron2D.Collections.Dictionary IntersectRay(Electron2D.PhysicsRayQueryParameters2D)(Electron2D.PhysicsRayQueryParameters2D parameters)Intersects a ray segment with the current 2D physics shapes.
This method follows the validation and lifetime rules of its declaring type.
-
parameters: Ray query parameters.
A dictionary with hit data, or an empty dictionary when the ray hits nothing.
-
System.ArgumentNullException: Thrown whenparametersisnull.
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.PhysicsDirectSpaceState2D
Kind: Method
public Electron2D.Collections.Array IntersectShape(Electron2D.PhysicsShapeQueryParameters2D, System.Int32)(Electron2D.PhysicsShapeQueryParameters2D parameters, System.Int32 maxResults)Finds physics objects whose active shapes intersect a query shape.
This method follows the validation and lifetime rules of its declaring type.
-
parameters: Shape query parameters. -
maxResults: Maximum number of result dictionaries to return.
An array of dictionaries describing matching objects.
-
System.ArgumentNullException: Thrown whenparametersisnull. -
System.ArgumentOutOfRangeException: Thrown whenmaxResultsis negative.
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.PhysicsDirectSpaceState2D
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.