reckfellENGINE

PhysicsIntersectRayResult3D

Stores the result of a ray intersection query.

On this page
class PhysicsIntersectRayResult3DReckfellSharpInherits RefCounted

Stores the result of a ray intersection query.

This object contains the intersection information produced by PhysicsDirectSpaceState3D.IntersectRayInto. After calling PhysicsDirectSpaceState3D.IntersectRayInto, the fields of this object will be populated with the hit information if the ray intersects a shape. If no intersection occurred, the values remain unchanged from the previous state.

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

Constructors1

PhysicsIntersectRayResult3DConstructor
# PhysicsIntersectRayResult3D
C#
public PhysicsIntersectRayResult3D();

Properties7

ColliderProperty
# Collider
C#
public ReckfellObject Collider { get; }

The colliding object.

ColliderFaceIndexProperty
# ColliderFaceIndex
C#
public int ColliderFaceIndex { get; }

The face index at the intersection point. Note: Returns a valid number only if the intersected shape is a ConcavePolygonShape3D. Otherwise, -1 is returned.

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.

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

The object's surface normal at the intersection point, or Vector3(0, 0, 0) if the ray starts inside the shape and PhysicsRayQueryParameters3D.HitFromInside is true.

PositionProperty
# Position
C#
public Vector3 Position { get; }

The intersection point.

Methods7

GetColliderReckfellObject
# GetCollider
C#
public ReckfellObject GetCollider();
Returns ReckfellObject
GetColliderFaceIndexint
# GetColliderFaceIndex
C#
public int GetColliderFaceIndex();
Returns int
GetColliderIdulong
# GetColliderId
C#
public ulong GetColliderId();
Returns ulong
GetColliderRidRid
# GetColliderRid
C#
public Rid GetColliderRid();
Returns Rid
GetColliderShapeint
# GetColliderShape
C#
public int GetColliderShape();
Returns int
GetNormalVector3
# GetNormal
C#
public Vector3 GetNormal();
Returns Vector3
GetPositionVector3
# GetPosition
C#
public Vector3 GetPosition();
Returns Vector3
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.