{"id":3436,"date":"2013-01-24T18:17:16","date_gmt":"2013-01-24T18:17:16","guid":{"rendered":"http:\/\/www.west-racing.com\/mf\/?page_id=3436"},"modified":"2013-01-24T19:53:28","modified_gmt":"2013-01-24T19:53:28","slug":"hose","status":"publish","type":"page","link":"http:\/\/www.west-racing.com\/mf\/?page_id=3436","title":{"rendered":"Hose"},"content":{"rendered":"<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/hose11.png\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/hose11-1024x576.png\" alt=\"\" title=\"Dynamic Hose\" width=\"640\" height=\"360\" class=\"aligncenter size-large wp-image-3455 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/hose11-1024x576.png 1024w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/hose11-300x168.png 300w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/hose11-680x382.png 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/hose11.png 1278w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><br \/>\nThis system will make a flexible hose object between two game objects, as the game objects move the hose will naturally flow from one object to the other, compressing and stretching as needed. You can define flexible regions as well as the shape of the hose and even animate bulges moving along the hose.<br \/>\n<a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/hosecommon.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/hosecommon.jpg\" alt=\"\" title=\"Hose Mesh params\" width=\"244\" height=\"149\" class=\"alignright size-full wp-image-3444 fancy\" \/><\/a><\/p>\n<h3>Hose Mesh Params<\/h3>\n<h4><strong>Wire Type<\/strong><\/h4>\n<p>Selects the cross section type to be used for the hose either Round, Rectangle or D-Section. The selection here will cause different params to be shown below.<\/p>\n<h4><strong>Segments<\/strong><\/h4>\n<p>The total number of segments in the hose&#8217;s length. Increase this setting for a smooth profile when the hose is curved.<\/p>\n<h4><strong>Cap Ends<\/strong><\/h4>\n<p>Fill in the ends of the hose with polygons.<\/p>\n<h4><strong>Calc Normals<\/strong><\/h4>\n<p>Use custom normal calculation instead of Unitys.<\/p>\n<h4><strong>Calc Tangents<\/strong><\/h4>\n<p>Calculate tangents for the hose, use this if you will be using a bump mapping shader. Tangent calculation can be quite slow.<\/p>\n<h4><strong>Optimize<\/strong><\/h4>\n<p>Unitys Mesh optimizing code will be applied, will make it slightly slower so not needed for dynamic meshes.<\/p>\n<h4><strong>Calc Collider<\/strong><\/h4>\n<p>If the hose has a mesh collider this will cause it to be updated, can be very slow.<\/p>\n<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/hoseround.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/hoseround.jpg\" alt=\"\" title=\"Round Params\" width=\"243\" height=\"61\" class=\"alignright size-full wp-image-3445 fancy\" \/><\/a><\/p>\n<h3>Round Params<\/h3>\n<h4><strong>Diameter<\/strong><\/h4>\n<p>The maximum width of the hose at the ends. <\/p>\n<h4><strong>Sides<\/strong><\/h4>\n<p>The number of sides of the hose. A Sides setting of 3 gives a triangular cross section; 4 gives a square cross section; and 5 gives a pentagonal cross section. Increase Sides for a circular cross section.<\/p>\n<h4><strong>Rotate<\/strong><\/h4>\n<p>The orientation of the hose along its long axis.<\/p>\n<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/hoserect.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/hoserect.jpg\" alt=\"\" title=\"Rect params\" width=\"243\" height=\"100\" class=\"alignright size-full wp-image-3446 fancy\" \/><\/a><\/p>\n<h3>Rectangle Params<\/h3>\n<h4><strong>Width<\/strong><\/h4>\n<p>The width of the hose.<\/p>\n<h4><strong>Depth<\/strong><\/h4>\n<p>The height of the hose.<\/p>\n<h4><strong>Fillet<\/strong><\/h4>\n<p>The amount by which the cross-section corners are rounded. For this to be visible, Fillet Segs must be set to 1 or higher.<\/p>\n<h4><strong>Fillet Sides<\/strong><\/h4>\n<p>The number of segments across each filleted corner. A Fillet Segs setting of 1 cuts the corner straight across; use higher settings for rounded corners.<\/p>\n<h4><strong>Rotate<\/strong><\/h4>\n<p>The orientation of the hose along its long axis.<\/p>\n<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/hosedsec.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/hosedsec.jpg\" alt=\"\" title=\"DSection Params\" width=\"243\" height=\"117\" class=\"alignright size-full wp-image-3447 fancy\" \/><\/a><\/p>\n<h3>D-Section Params<\/h3>\n<h4><strong>Width<\/strong><\/h4>\n<p>The width of the hose.<\/p>\n<h4><strong>Depth<\/strong><\/h4>\n<p>The height of the hose.<\/p>\n<h4><strong>Rnd Sides<\/strong><\/h4>\n<p>The number of segments on the rounded side. Increase for a smoother profile.<\/p>\n<h4><strong>Fillet<\/strong><\/h4>\n<p>The amount by which the two cross-section corners opposite the rounded side are rounded. For this to be visible, Fillet Segs must be set to 1 or higher.<\/p>\n<h4><strong>Fillet Sides<\/strong><\/h4>\n<p>The number of segments across each filleted corner. A Fillet Segs setting of 1 cuts the corner straight across; use higher settings for rounded corners.<\/p>\n<h4><strong>Rotate<\/strong><\/h4>\n<p>The orientation of the hose along its long axis.<\/p>\n<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/hoseadv.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/hoseadv.jpg\" alt=\"\" title=\"Advance Params\" width=\"244\" height=\"681\" class=\"alignright size-full wp-image-3448 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/hoseadv.jpg 244w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/hoseadv-107x300.jpg 107w\" sizes=\"(max-width: 244px) 100vw, 244px\" \/><\/a><\/p>\n<h3>Advanced Params<\/h3>\n<h4><strong>UVScale<\/strong><\/h4>\n<p>You can alter the scaling of the uv mapping with these values.<\/p>\n<h4><strong>Start Object<\/strong><\/h4>\n<p>The object that the hose will start from.<\/p>\n<h4><strong>Offset<\/strong><\/h4>\n<p>The offset from the objects pivot point that the hose will start from, use this to reposition the hose on your objects mesh.<\/p>\n<h4><strong>Rotate<\/strong><\/h4>\n<p>This controls the starting direction of the hose as it leaves the start object.<\/p>\n<h4><strong>Scale<\/strong><\/h4>\n<p>Local scaling to apply to the hose start best left as the default.<\/p>\n<h4><strong>End Object<\/strong><\/h4>\n<p>The object that the hose will end at.<\/p>\n<h4><strong>Offset<\/strong><\/h4>\n<p>The offset from the objects pivot point that the hose will start from, use this to reposition the hose on your objects mesh.<\/p>\n<h4><strong>Rotate<\/strong><\/h4>\n<p>This controls the starting direction of the hose as it enters the end object.<\/p>\n<h4><strong>Scale<\/strong><\/h4>\n<p>Local scaling to apply to the hose end best left as the default.<\/p>\n<h4><strong>Flex On<\/strong><\/h4>\n<p>When on, lets you set the following four parameters for the central, flexible section of the hose. When off, the hose&#8217;s diameter is uniform throughout its length. <\/p>\n<h4><strong>Start<\/strong><\/h4>\n<p>The percentage of the hose length from the starting extremity of the hose at which the flex section begins.<\/p>\n<h4><strong>Stop<\/strong><\/h4>\n<p>The percentage of the hose length from the end extremity of the hose at which the flex section ends.<\/p>\n<h4><strong>Cycles<\/strong><\/h4>\n<p>The number of corrugations in the flex section. The number of visible cycles is limited by the number of segments; if Segments isn&#8217;t high enough to support the number of cycles, then not all cycles will appear.<\/p>\n<h4><strong>Diameter<\/strong><\/h4>\n<p>The relative width of the &#8220;outside&#8221; parts of the cycles. At negative settings, these are smaller than the overall hose diameter. At positive settings, these are larger than the overall hose diameter.<\/p>\n<h4><strong>Use Bulge Curve<\/strong><\/h4>\n<p>Check this to apply the bulge curve to the hose.<\/p>\n<h4><strong>Bulge<\/strong><\/h4>\n<p>The curve that defines the bulge.<\/p>\n<h4><strong>Bulge Amount<\/strong><\/h4>\n<p>Use this to scale the bulge effect, useful for easily enlarging a pipe as if it were blocked.<\/p>\n<h4><strong>Bulge Offset<\/strong><\/h4>\n<p>The offset to apply the bulge at, a value of 0 would apply the bulge from the start of the hose, a value of 0.5 would start to apply half way along the hose.<\/p>\n<h4><strong>Animate<\/strong><\/h4>\n<p>Animate the bulge offset value.<\/p>\n<h4><strong>Speed<\/strong><\/h4>\n<p>Speed to move the bulge along the hose, can be negative.<\/p>\n<h4><strong>Min<\/strong><\/h4>\n<p>The minimum value of the offset is allowed to be before it wraps to the max value.<\/p>\n<h4><strong>Max<\/strong><\/h4>\n<p>The maximum value of the offset is allowed to be before it wraps to the min value.<\/p>\n<h4><strong>Tension Start<\/strong><\/h4>\n<p>Determines the tension of the hose curve near the Start object as it reaches for the End object. Lower the tension to have the bend occur closer to the Start object, raise the tension to have the bend occur further away from the Start object.<\/p>\n<h4><strong>Tension End<\/strong><\/h4>\n<p>Determines the tension of the hose curve near the End object as it reaches for the Start object. Lower the tension to have the bend occur closer to the End object, raise the tension to have the bend occur further away from the End object.<\/p>\n<h4><strong>Free Create<\/strong><\/h4>\n<p>If this is on the hose will just be straight normal object.<\/p>\n<h4><strong>Free Length<\/strong><\/h4>\n<p>The length of the hose if Free create is on.<\/p>\n<h4><strong>Up<\/strong><\/h4>\n<p>A value used for up for calculations, currently unused.<\/p>\n<h3>Video Guide to Hose<\/h3>\n<p>Video guide running through all the options on the hose inspector.<br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=HVgwVQxxlq0&#038;hd=1&#038;fs=1&#038;autoplay=1\" class=\"fancybox-youtube\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/ythoseguide.jpg\" alt=\"\" title=\"Hose Click to Play\" width=\"680\" height=\"397\" class=\"aligncenter size-full wp-image-3454 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/ythoseguide.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/ythoseguide-300x175.jpg 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n<h3>Demo of Hose System<\/h3>\n<p>Demo scene created entirely in Unity using MegaShapes.<br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=HgfzWg9TmFw&#038;hd=1&#038;fs=1&#038;autoplay=1\" class=\"fancybox-youtube\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/ythosedemo.jpg\" alt=\"\" title=\"Click to Play\" width=\"680\" height=\"398\" class=\"aligncenter size-full wp-image-3412 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/ythosedemo.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2013\/01\/ythosedemo-300x175.jpg 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This system will make a flexible hose object between two game objects, as the game objects move the hose will naturally flow from one object to the other, compressing and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/3436"}],"collection":[{"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3436"}],"version-history":[{"count":15,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/3436\/revisions"}],"predecessor-version":[{"id":3441,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/3436\/revisions\/3441"}],"wp:attachment":[{"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}