Difference between revisions of "Hit UV Coordinate (LogiX node)"
Jump to navigation
Jump to search
(Update page with actually useful information) |
m |
||
Line 22: | Line 22: | ||
− | The <code>IsValidUV</code> outputs true if valid <code>HitCollider</code> and <code>HitTriangleIndex</code> values are provided | + | The <code>IsValidUV</code> outputs true if valid <code>HitCollider</code> and <code>HitTriangleIndex</code> values are provided, otherwise false. |
Revision as of 09:18, 8 May 2021
Hit UV Coordinate | ||
---|---|---|
Inputs | ||
ICollider | HitCollider | |
Int | HitTriangleIndex | |
Float3 | HitPoint | |
Outputs | ||
Float2 | UV | |
Bool | IsValidUV |
The Hit UV Coordinate node outputs the UV coordinate corresponding to the input HitPoint
on the HitTriangleIndex
for the input HitCollider
mesh collider.
Usage
The HitCollider
must be a MeshCollider (Component) otherwise only default output values are used.
The UV
output provides the calculated UV coordinates, [0;0] by default.
The IsValidUV
outputs true if valid HitCollider
and HitTriangleIndex
values are provided, otherwise false.
This node is primarily to used in conjuction with Raycast One (LogiX node) or Raycaster (LogiX node).