reckfellENGINE

PhysicsGetRestInfoResult2D

Stores the nearest collision information of a shape query.

On this page
class PhysicsGetRestInfoResult2DReckfellSharpInherits RefCounted

Stores the nearest collision information of a shape query.

This class contains the collision data computed by PhysicsDirectSpaceState2D.GetRestInfoInto. If the shape collides with multiple objects, only the nearest collision is stored.

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

Constructors1

PhysicsGetRestInfoResult2DConstructor
# PhysicsGetRestInfoResult2D
C#
public PhysicsGetRestInfoResult2D();

Properties6

ColliderIdProperty
# ColliderId
C#
public ulong ColliderId { get; }

The colliding object's ID.

ColliderRidProperty
# ColliderRid
C#
public Rid ColliderRid { get; }

The intersecting object's Rid.

ColliderShapeProperty
# ColliderShape
C#
public int ColliderShape { get; }

The shape index of the colliding shape.

ColliderVelocityProperty
# ColliderVelocity
C#
public Vector2 ColliderVelocity { get; }

The colliding object's velocity Vector2. If the object is an Area2D, the result is (0, 0).

NormalProperty
# Normal
C#
public Vector2 Normal { get; }

The collision normal of the query shape at the intersection point, pointing away from the intersecting object.

PointProperty
# Point
C#
public Vector2 Point { get; }

The intersection point.

Methods6

GetColliderIdulong
# GetColliderId
C#
public ulong GetColliderId();
Returns ulong
GetColliderRidRid
# GetColliderRid
C#
public Rid GetColliderRid();
Returns Rid
GetColliderShapeint
# GetColliderShape
C#
public int GetColliderShape();
Returns int
GetColliderVelocityVector2
# GetColliderVelocity
C#
public Vector2 GetColliderVelocity();
Returns Vector2
GetNormalVector2
# GetNormal
C#
public Vector2 GetNormal();
Returns Vector2
GetPointVector2
# GetPoint
C#
public Vector2 GetPoint();
Returns Vector2
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.