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

From Neos Wiki
Jump to navigation Jump to search
m
 
(One intermediate revision by the same user not shown)
Line 19: Line 19:
  
  
 +
<!--T:6-->
 
The <code>UV</code> output provides the calculated UV coordinates, [0;0] by default.
 
The <code>UV</code> output provides the calculated UV coordinates, [0;0] by default.
  
  
 +
<!--T:7-->
 
The <code>IsValidUV</code> outputs true if valid <code>HitCollider</code> and <code>HitTriangleIndex</code> values are provided, otherwise false.
 
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)]].
 
This node is primarily to be used in conjuction with [[Raycast One (LogiX node)]] or [[Raycaster (LogiX node)]].
  
Line 33: Line 36:
 
[[Category:LogiX{{#translation:}}|Hit UV Coordinate]]
 
[[Category:LogiX{{#translation:}}|Hit UV Coordinate]]
 
[[Category:LogiX:Physics{{#translation:}}|Hit UV Coordinate]]
 
[[Category:LogiX:Physics{{#translation:}}|Hit UV Coordinate]]
{{:NodeMenu-Physics{{#translation:}}}}
+
{{:NodeMenu-Physics}}

Latest revision as of 03:48, 20 February 2022

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 be 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