PhysicsGetRestInfoResult2D
Stores the nearest collision information of a shape query.
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
public PhysicsGetRestInfoResult2D();Properties6
ColliderIdProperty
public ulong ColliderId { get; }The colliding object's ID.
ColliderRidProperty
public Rid ColliderRid { get; }The intersecting object's Rid.
ColliderShapeProperty
public int ColliderShape { get; }The shape index of the colliding shape.
ColliderVelocityProperty
public Vector2 ColliderVelocity { get; }The colliding object's velocity Vector2. If the object is an Area2D, the result is (0, 0).
NormalProperty
public Vector2 Normal { get; }The collision normal of the query shape at the intersection point, pointing away from the intersecting object.
PointProperty
public Vector2 Point { get; }The intersection point.
Methods6
GetColliderIdulong
public ulong GetColliderId();Returns
ulongGetColliderRidRid
public Rid GetColliderRid();Returns
RidGetColliderShapeint
public int GetColliderShape();Returns
intGetColliderVelocityVector2
public Vector2 GetColliderVelocity();Returns
Vector2GetNormalVector2
public Vector2 GetNormal();Returns
Vector2GetPointVector2
public Vector2 GetPoint();Returns
Vector2Reckfell Engine documentationBack to top ↑