Difference between revisions of "Hit UV Coordinate (LogiX node)/ja"
Jump to navigation
Jump to search
(Created page with "== ノードメニュー ==") |
(Updating to match new version of source page) |
||
Line 29: | Line 29: | ||
[[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 | + | {{: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 |
Hit UV Coordinateノードは、入力された HitCollider
メッシュコライダの HitTriangleIndex
上の HitPoint
に対応する UV 座標を出力します。
使用方法
HitCollider
は MeshCollider (Component) でなければならず、そうでなければデフォルトの出力値のみが使用されます。
UV
出力は計算されたUV座標で、デフォルトでは [0;0] を出力します。
IsValidUV
は、有効な HitCollider
と HitTriangleIndex
が入力されていれば true を、そうでなければ false を出力します。
このノードは主にRaycast One (LogiX node)やRaycaster (LogiX node) と組み合わせて使用します。