Difference between revisions of "Hit UV Coordinate (LogiX node)"
Jump to navigation
Jump to search
(Mark stub) |
|||
(4 intermediate revisions by 2 users not shown) | |||
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. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | <!--T:6--> | |
+ | The <code>UV</code> output provides the calculated UV coordinates, [0;0] by default. | ||
− | |||
− | == Node Menu == | + | <!--T:7--> |
+ | The <code>IsValidUV</code> outputs true if valid <code>HitCollider</code> and <code>HitTriangleIndex</code> values are provided, otherwise false. | ||
+ | |||
+ | |||
+ | <!--T:8--> | ||
+ | This node is primarily to be 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}} | {{:NodeMenu-Physics}} |
Latest revision as of 03:48, 20 February 2022
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 be used in conjuction with Raycast One (LogiX node) or Raycaster (LogiX node).