Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ProtoFlux:UnpackRaycastHit

Unpacks the Hit Collection that results from a Raycast.
UnpackRaycastHit
Hit
HitCollider
HitDistance
HitPoint
HitNormal
HitTriangleIndex
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

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.