ProtoFlux:UnpackRaycastHit
Unpacks the Hit Collection that results from a Raycast.
More actions
UnpackRaycastHit
Physics
The Unpack Raycast Hit node takes in a RaycastHit and gives the separate components of that hit. One source of this data is RaycastAll.
Inputs
Hit (RaycastHit)
The hit to be separated.
Outputs
HitCollider (ICollider)
The valid hit collider.
HitDistance (float)
The distance from the Origin to the hit point in global coordinate space.
HitPoint (float3)
The global position at which the ray hit the collider.
HitNormal (float3)
The facing normal direction of the hit collider at the hit point.
HitTriangleIndex (int)
The triangle index on the mesh corresponding to the hit collider. This value is 0 unless the HitCollider is a MeshCollider.