reckfellENGINE

PhysicsIntersectShapeResult2D

Stores the results of a shape intersection query.

On this page
class PhysicsIntersectShapeResult2DReckfellSharpInherits RefCounted

Stores the results of a shape intersection query.

This class contains the intersection information produced by PhysicsDirectSpaceState2D.IntersectShapeInto. It can store multiple intersections, up to a user-defined maximum.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

PhysicsIntersectShapeResult2DConstructor
# PhysicsIntersectShapeResult2D
C#
public PhysicsIntersectShapeResult2D();

Properties1

MaxIntersectionsProperty
# MaxIntersections
C#
public int MaxIntersections { get; set; }

The maximum number of intersections this result object can store.

Methods7

GetColliderReckfellObject
# GetCollider
C#
public ReckfellObject GetCollider(int intersectionIndex);

The colliding object.

Parameters
NameTypeDefault
intersectionIndexint—
Returns ReckfellObject
GetColliderIdulong
# GetColliderId
C#
public ulong GetColliderId(int intersectionIndex);

The colliding object's ID.

Parameters
NameTypeDefault
intersectionIndexint—
Returns ulong
GetColliderRidRid
# GetColliderRid
C#
public Rid GetColliderRid(int intersectionIndex);

The intersecting object's Rid.

Parameters
NameTypeDefault
intersectionIndexint—
Returns Rid
GetColliderShapeint
# GetColliderShape
C#
public int GetColliderShape(int intersectionIndex);

The shape index of the colliding shape.

Parameters
NameTypeDefault
intersectionIndexint—
Returns int
GetIntersectionCountint
# GetIntersectionCount
C#
public int GetIntersectionCount();

Returns the number of shapes that intersect with the query shape.

Returns int
GetMaxIntersectionsint
# GetMaxIntersections
C#
public int GetMaxIntersections();
Returns int
SetMaxIntersectionsvoid
# SetMaxIntersections
C#
public void SetMaxIntersections(int maxIntersections);
Parameters
NameTypeDefault
maxIntersectionsint—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.