Difference between revisions of "Hit UV Coordinate (LogiX node)"
Jump to navigation
Jump to search
(Mark stub) |
(Update page with actually useful information) |
||
Line 1: | Line 1: | ||
<languages></languages> | <languages></languages> | ||
<translate> | <translate> | ||
− | {{ | + | <!--T:1--> |
− | + | {{Infobox Logix Node | |
+ | | Name = Hit UV Coordinate | ||
+ | | Image =[[File: HitUVCoordinateNode.png | noframe | 128px | 'Hit UV Coordinate' LogiX node ]] | ||
+ | | Input0Type = ICollider | Input0Name = HitCollider | ||
+ | | Input1Type = Int | Input1Name = HitTriangleIndex | ||
+ | | Input2Type = Float3 | Input2Name = HitPoint | ||
+ | | Output0Type = Float2 | Output0Name = UV | ||
+ | | Output1Type = Bool | Output1Name = IsValidUV | ||
+ | }} | ||
− | <!-- | + | <!--T:2--> |
+ | The '''Hit UV Coordinate''' node outputs the UV coordinate corresponding to the input <code>HitPoint</code> on the <code>HitTriangleIndex</code> for the input <code>HitCollider</code> mesh collider. | ||
− | == | + | == Usage == <!--T:3--> |
− | + | The <code>HitCollider</code> must be a [[MeshCollider (Component)]] otherwise only default output values are used. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | The <code>UV</code> output provides the calculated UV coordinates, [0;0] by default. | |
− | |||
− | == Node Menu == | + | The <code>IsValidUV</code> outputs true if valid <code>HitCollider</code> and <code>HitTriangleIndex</code> values are provided. Otherwise false. |
+ | |||
+ | |||
+ | This node is primarily to used in conjuction with [[Raycast One (LogiX node)]] or [[Raycaster (LogiX node)]]. | ||
+ | |||
+ | == Examples == <!--T:4--> | ||
+ | |||
+ | == Node Menu == <!--T:5--> | ||
</translate> | </translate> | ||
− | + | [[Category:LogiX{{#translation:}}|Hit UV Coordinate]] | |
− | [[Category:LogiX|Hit UV Coordinate]] | + | [[Category:LogiX:Physics{{#translation:}}|Hit UV Coordinate]] |
− | [[Category:LogiX: Physics|Hit UV Coordinate]] | + | {{:NodeMenu-Physics{{#translation:}}}} |
− | {{:NodeMenu-Physics}} |
Revision as of 17:06, 2 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).