Difference between revisions of "Hit UV Coordinate (LogiX node)/ja"
Jump to navigation
Jump to search
(Created page with "== 例 ==") |
(Created page with "== ノードメニュー ==") |
||
Line 26: | Line 26: | ||
== 例 == | == 例 == | ||
− | == | + | == ノードメニュー == |
[[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{{#translation:}}}} |
Revision as of 05:21, 15 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) と組み合わせて使用します。