ProtoFlux:Get RawDataTool Hit

From Resonite Wiki
Get Raw Data Tool Hit
Tool
HitCollider
HitPoint
HitNormal
HitDistance
HitTriangleIndex
Tools

The Get Raw Data Tool Hit node creates a raycast from the origin (tip reference slot position and direction?) looking and retrieving for valid hits. This node acts similarly to the Raycaster and Raycast One nodes in functionality.

This node returns data per frame, and is very useful for debugging and testing hit detection due to its constant updates.

This node can be combined with the Hit UV Coordinate node to get further data from this hit, such as a 2D location point on the collider for example.

Inputs

* (RawDataTool)

The raw data tool to point with using raycasts.

Outputs

HitColider (ICollider)

The collider we hit.

HitPoint (float3)

The point in 3D space of where we hit.

HitNormal (float3)

The normal of the collider facing direction.

HitDistance (float)

The distance of how far this hit was from the origin of this raycast.

HitTriangleIndex (int)

The mesh data number of our hit.