PhysicsIntersectPointResult2D
Stores the results of a point intersection query.
Stores the results of a point intersection query.
This class contains the intersection information produced by PhysicsDirectSpaceState2D.IntersectPointInto.
It stores up to a user-defined number of overlapping shapes.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
PhysicsIntersectPointResult2DConstructor
public PhysicsIntersectPointResult2D();Properties1
MaxIntersectionsProperty
public int MaxIntersections { get; set; }The maximum number of intersections this result object can store.
Methods7
GetColliderReckfellObject
public ReckfellObject GetCollider(int intersectionIndex);The colliding object.
| Name | Type | Default |
|---|---|---|
intersectionIndex | int | — |
Returns
ReckfellObjectGetColliderIdulong
public ulong GetColliderId(int intersectionIndex);The colliding object's ID.
| Name | Type | Default |
|---|---|---|
intersectionIndex | int | — |
Returns
ulongGetColliderRidRid
public Rid GetColliderRid(int intersectionIndex);The intersecting object's Rid.
| Name | Type | Default |
|---|---|---|
intersectionIndex | int | — |
Returns
RidGetColliderShapeint
public int GetColliderShape(int intersectionIndex);The shape index of the colliding shape.
| Name | Type | Default |
|---|---|---|
intersectionIndex | int | — |
Returns
intGetIntersectionCountint
public int GetIntersectionCount();Returns the number of shapes that intersect the queried point.
Returns
intGetMaxIntersectionsint
public int GetMaxIntersections();Returns
intSetMaxIntersectionsvoid
public void SetMaxIntersections(int maxIntersections);| Name | Type | Default |
|---|---|---|
maxIntersections | int | — |
Reckfell Engine documentationBack to top ↑