Created page for Hit UV Coordinate node. |
Added link for ICollider. |
||
Line 15: | Line 15: | ||
|}} | |}} | ||
The <code>Hit UV Coordinate</code> node requires an ICollider to work, and returns if we hit anything and the UV coordinates of what we hit. | The <code>Hit UV Coordinate</code> node requires an [[Type:ICollider|ICollider]] to work, and returns if we hit anything and the UV coordinates of what we hit. | ||
== Usage == | == Usage == |
Latest revision as of 16:54, 16 April 2024
ProtoFlux Node
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.