RayCastHit Struct

Definition

Contains information about a single raycast hit.

public value class RayCastHit
public struct RayCastHit
type RayCastHit = struct
Public Structure RayCastHit
Inheritance
RayCastHit

Fields

DistanceToHit

Distance along the normalized ray direction to the hit.

HitNormal

The world space normal where HitObject was hit.

HitObject

The Entity that was hit with the raycast.

HitPosition

The world space position where HitObject was hit.

HitType

Classifies the face type of the hit. See RayHitType for the distinct face types.

SubPartId

The ID or index of the part that was hit.

Properties

HitEntity

Applies to

See also