{"id":954,"date":"2023-02-19T21:03:30","date_gmt":"2023-02-19T12:03:30","guid":{"rendered":"https:\/\/heyyocg.link\/?p=954"},"modified":"2023-02-19T21:03:31","modified_gmt":"2023-02-19T12:03:31","slug":"niagara-ribbon-local-direction","status":"publish","type":"post","link":"https:\/\/heyyocg.link\/en\/niagara-ribbon-local-direction\/","title":{"rendered":"\u3010UE5\u3011Easiest way to keep a Niagara Ribbon facing a direction in local space of its Niagara System"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>When you add the Ribbon Renderer in Niagara, it keeps facing a camera by default.<\/p>\n\n\n\n<p>It is often the case that you want to make it face a certain direction according to the local coordinate system of its Niagara System&#8217;s orientation, but It might not easy to find how to do it (I took time to find out at first).<\/p>\n\n\n\n<p>There is a way to do this with the basic functions provided by Niagara.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure<\/h2>\n\n\n\n<p>The procedure is only two steps.<\/p>\n\n\n\n<p>\u2460 Set the Ribbon Renderer&#8217;s Facing Mode to Custom.<\/p>\n\n\n\n<p>\u2461 Set the value of Ribbon Facing Vector to SystemZ(or X or Y)Axis.<\/p>\n\n\n\n<p>First, for \u2460, change the Facing Mode from &#8220;Screen&#8221; to &#8220;Custom&#8221; like the following image. By doing so, the ribbon will face along the vector direction specified in the parameter &#8216;Ribbon Facing&#8217;.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"757\" height=\"462\" data-id=\"949\" src=\"https:\/\/heyyocg.link\/wp-content\/uploads\/2023\/02\/eqfsvsvs-1.png\" alt=\"\" class=\"wp-image-949\" srcset=\"https:\/\/heyyocg.link\/wp-content\/uploads\/2023\/02\/eqfsvsvs-1.png 757w, https:\/\/heyyocg.link\/wp-content\/uploads\/2023\/02\/eqfsvsvs-1-300x183.png 300w\" sizes=\"(max-width: 757px) 100vw, 757px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"549\" height=\"312\" data-id=\"950\" src=\"https:\/\/heyyocg.link\/wp-content\/uploads\/2023\/02\/gdgdbdb.png\" alt=\"\" class=\"wp-image-950\" srcset=\"https:\/\/heyyocg.link\/wp-content\/uploads\/2023\/02\/gdgdbdb.png 549w, https:\/\/heyyocg.link\/wp-content\/uploads\/2023\/02\/gdgdbdb-300x170.png 300w\" sizes=\"(max-width: 549px) 100vw, 549px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>\u203b Incidentally, if Custom Side Vector is specified here, the ribbon will align along the direction of the Ribbon Facing Vector.<\/p>\n\n\n\n<p>All that remains is to set a vector value you want the ribbon to face in the Ribbon Facing Vector. You can set the parameters directly, but you can also set the Ribbon Facing Vector in Initialize Particle, which is explained this time.<\/p>\n\n\n\n<p>When Ribbon Facing Mode is changed to Direct Set, the Ribbon Facing Vector is set to (0,0,1) by default. This means that the ribbon will always face the Z axis direction.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"641\" height=\"178\" src=\"https:\/\/heyyocg.link\/wp-content\/uploads\/2023\/02\/gdgdgeg.png\" alt=\"\" class=\"wp-image-951\" srcset=\"https:\/\/heyyocg.link\/wp-content\/uploads\/2023\/02\/gdgdgeg.png 641w, https:\/\/heyyocg.link\/wp-content\/uploads\/2023\/02\/gdgdgeg-300x83.png 300w\" sizes=\"(max-width: 641px) 100vw, 641px\" \/><\/figure>\n\n\n\n<p>However, since this is a world coordinate system, it always faces the world&#8217;s Z-axis direction = upward, so that rotating the Niagara System as shown below does not change Ribbon&#8217;s orientation.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"556\" height=\"300\" src=\"https:\/\/heyyocg.link\/wp-content\/uploads\/2023\/02\/2023-02-19-20-06-16.gif\" alt=\"\" class=\"wp-image-952\"\/><\/figure>\n\n\n\n<p>Here, it is tempting to simply check the Local Space checkbox in Properties, but if you do so, the Particle position will also follow the Niagara System position, and Ribbon itself will not be generated.<\/p>\n\n\n\n<p>\u203b If you are making Ribbon without moving the Niagara System in the first place, such as when making Ribbon with Spline, you can check Local Space and set any value you like for Ribbon Facing Vector.<\/p>\n\n\n\n<p>This time, we want to leave the world coordinate system and get the orientation information of its Niagara System.<\/p>\n\n\n\n<p>When you want information on its own Niagara System, try typing &#8220;system&#8221; in a search, and you may find usable parameters. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"880\" height=\"555\" src=\"https:\/\/heyyocg.link\/wp-content\/uploads\/2023\/02\/vvsvwr.png\" alt=\"\" class=\"wp-image-948\" srcset=\"https:\/\/heyyocg.link\/wp-content\/uploads\/2023\/02\/vvsvwr.png 880w, https:\/\/heyyocg.link\/wp-content\/uploads\/2023\/02\/vvsvwr-300x189.png 300w, https:\/\/heyyocg.link\/wp-content\/uploads\/2023\/02\/vvsvwr-768x484.png 768w\" sizes=\"(max-width: 880px) 100vw, 880px\" \/><\/figure>\n\n\n\n<p>Here, we will use SystemZAxis. It returns the vector value of the Niagara System&#8217;s Z-axis direction in a world coordinate system.<\/p>\n\n\n\n<p>By setting this to the Ribbon Facing Vector in the Initialize Particle, the Particle will face the Z-axis direction of the Niagara System when it is generated like bellow.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"556\" height=\"300\" src=\"https:\/\/heyyocg.link\/wp-content\/uploads\/2023\/02\/2023-02-19-20-06-44.gif\" alt=\"\" class=\"wp-image-947\"\/><\/figure>\n\n\n\n<p>Now you successfully keep a Niagara Ribbon facing a direction in local space of its Niagara System.<\/p>\n\n\n\n<p>Congratulation!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction When you add the Ribbon Renderer in Niagara, it keeps facing a camera by default. It is often the case that you want to make it face a certain direction according to the local coordinate system of its Niagara System&#8217;s orientation, but It might not easy to find how to do it (I took [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":945,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","_mi_skip_tracking":false,"footnotes":"","_locale":"en_US","_original_post":"https:\/\/heyyocg.link\/?p=935"},"categories":[21,17],"tags":[32,28],"modified_by":"yohanashima","_links":{"self":[{"href":"https:\/\/heyyocg.link\/wp-json\/wp\/v2\/posts\/954"}],"collection":[{"href":"https:\/\/heyyocg.link\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/heyyocg.link\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/heyyocg.link\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/heyyocg.link\/wp-json\/wp\/v2\/comments?post=954"}],"version-history":[{"count":1,"href":"https:\/\/heyyocg.link\/wp-json\/wp\/v2\/posts\/954\/revisions"}],"predecessor-version":[{"id":955,"href":"https:\/\/heyyocg.link\/wp-json\/wp\/v2\/posts\/954\/revisions\/955"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/heyyocg.link\/wp-json\/wp\/v2\/media\/945"}],"wp:attachment":[{"href":"https:\/\/heyyocg.link\/wp-json\/wp\/v2\/media?parent=954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/heyyocg.link\/wp-json\/wp\/v2\/categories?post=954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/heyyocg.link\/wp-json\/wp\/v2\/tags?post=954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}