RayCastHit Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |