ProtoFlux:Hit UV Coordinate

From Resonite Wiki
Revision as of 01:20, 13 April 2024 by AmasterAmaster (talk | contribs) (Created page for Hit UV Coordinate node.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.