Difference between revisions of "Hit UV Coordinate (LogiX node)"

From Neos Wiki
Jump to navigation Jump to search
(Mark stub)
(Update page with actually useful information)
Line 1: Line 1:
 
<languages></languages>
 
<languages></languages>
 
<translate>
 
<translate>
{{stub}}
+
<!--T:1-->
The '''Hit UV Coordinate''' node.
+
{{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
 +
}}
  
<!--[[File:|border|256px|right]]-->
+
<!--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.
  
== Inputs & Outputs ==
+
== Usage == <!--T:3-->
{| class="wikitable"
+
The <code>HitCollider</code> must be a [[MeshCollider (Component)]] otherwise only default output values are used.
|+Inputs
 
|-
 
| Color
 
| Label
 
| Type
 
|-
 
| style="background-color:{{ICollider-color}}" |
 
| HitCollider
 
| ICollider
 
|-
 
| style="background-color:{{Int-color}}" |
 
| HitTriangleIndex
 
| Integer
 
|-
 
| style="background-color:{{Float-color}}" |
 
| HitPoint
 
| Float3
 
|}
 
  
{| class="wikitable"
 
|+Outputs
 
|-
 
| Color
 
| Label
 
| Type
 
|-
 
| style="background-color:{{Float-color}}" |
 
| UV
 
| Float2
 
|-
 
| style="background-color:{{Boolean-color}}" |
 
| IsValidUV
 
| Boolean
 
|}
 
  
== Usage ==
+
The <code>UV</code> output provides the calculated UV coordinates, [0;0] by default.
  
== Examples ==
 
  
== 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

Other languages:
English • ‎日本語
Hit UV Coordinate
'Hit UV Coordinate' LogiX node
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).

Examples

Node Menu

Physics
Back Apply Character Force Apply Character Impulse As Character Controller Character Controller User Character Gravity Character Ground Collider
Character Linear Velocity Find Character Controller Hit UV Coordinate Is Character Controller Is Character On Ground On Collision End On Collision Start
On Collision Stay Raycast One Raycaster Set Character Gravity Set Character Velocity