ProtoFlux:Hit UV Coordinate

From Resonite Wiki
ProtoFlux Node
HitCollider
UV
HitTriangleIndex
IsValidUV
HitPoint
Physics

The Hit UV Coordinate node requires an ICollider to work, and returns if we hit anything and the UV coordinates of what we hit.

Usage

This node is used frequently with Raycaster and Raycast One, as well as applications requiring lasers, pointers, or clicking on screens or mouse clicks and desktop-based gadgets.

Inputs

HitCollider (ICollider)

The collider we just hit.

HitTriangleIndex (int)

The numbered triangle in this mesh.

HitPoint (float3)

The point where we want to hit.

Outputs

UV (float2)

The point we hit on this surface of this mesh, giving the result as a UV coordinate.

IsValidUV (bool)

Check if we actually hit a valid collider to get the UV information.