{"id":361,"date":"2011-11-28T23:57:12","date_gmt":"2011-11-28T23:57:12","guid":{"rendered":"http:\/\/www.west-racing.com\/mf\/?page_id=361"},"modified":"2011-12-11T20:05:55","modified_gmt":"2011-12-11T20:05:55","slug":"world-path-deform","status":"publish","type":"page","link":"http:\/\/www.west-racing.com\/mf\/?page_id=361","title":{"rendered":"World Path Deform"},"content":{"rendered":"<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/path_deform.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/path_deform-1024x295.jpg\" alt=\"\" title=\"path_deform\" width=\"640\" height=\"184\" class=\"aligncenter size-large wp-image-867 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/path_deform-1024x295.jpg 1024w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/path_deform-300x86.jpg 300w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/path_deform-680x196.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/path_deform.jpg 1167w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><br \/>\n<a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megapathdefex.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megapathdefex-300x143.jpg\" alt=\"\" title=\"megapathdefex\" width=\"300\" height=\"143\" class=\"alignright size-medium wp-image-876 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megapathdefex-300x143.jpg 300w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megapathdefex-1024x488.jpg 1024w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megapathdefex-680x324.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megapathdefex.jpg 1448w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nThe WorldPathDeform modifier deforms an object using a spline as a path. You can move and stretch the object along the path, and rotate and twist it about the path. The usual gizmo and offset values can also be used to alter the look of the deformation. You can also opt to to describe the amount of stretch and twist via curves so the amount can vary along the length of a path.<\/p>\n<p>This version of the modifier will move the mesh to the path, for a local space version look at the <a href=\"http:\/\/www.west-racing.com\/mf\/?page_id=273\" title=\"Path Deform\">Path Deform<\/a> version which will instead move the path to the mesh local space.<br \/>\n<a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megaworldpath.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megaworldpath.jpg\" alt=\"\" title=\"megaworldpath\" width=\"259\" height=\"303\" class=\"alignright size-full wp-image-1060 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megaworldpath.jpg 259w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megaworldpath-256x300.jpg 256w\" sizes=\"(max-width: 259px) 100vw, 259px\" \/><\/a><\/p>\n<h3>World Path Deform Param Description<\/h3>\n<h4><strong>Percent<\/strong><\/h4>\n<p>Moves the object along the path based on a percentage of the path length.<\/p>\n<h4><strong>Stretch<\/strong><\/h4>\n<p>Scales the object along the path, using the object&#8217;s pivot point as the base of the scale.<\/p>\n<h4><strong>Twist<\/strong><\/h4>\n<p>Twists the object about the path. The twist angle is based on the rotation of one end of the overall length of the path. Typically, the deformed object takes up only a portion of the path, so the effect can be subtle.<\/p>\n<h4><strong>Rotate<\/strong><\/h4>\n<p>Rotates the object about the path.<\/p>\n<h4><strong>Axis<\/strong><\/h4>\n<p>Changes the alignment of the path to local axis of the object<\/p>\n<h4><strong>Flip<\/strong><\/h4>\n<p>Reverses the direction<\/p>\n<h4><strong>Path<\/strong><\/h4>\n<p>Path to deform along, must be a MegaShape object in the scene<\/p>\n<h4><strong>Animate<\/strong><\/h4>\n<p>Automatically move the object along the path.<\/p>\n<h4><strong>Speed<\/strong><\/h4>\n<p>Speed to move the object<\/p>\n<h4><strong>Tangent<\/strong><\/h4>\n<p>How far to look ahead to get the direction of the path<\/p>\n<h4><strong>Use Twist Curve<\/strong><\/h4>\n<p>Use twist curve for amount fo twist along path<\/p>\n<h4><strong>Twist Curve<\/strong><\/h4>\n<p>Twist Curve<\/p>\n<h4><strong>Use Stretch Curve<\/strong><\/h4>\n<p>Use stretch curve for amount of stretch along curve<\/p>\n<h4><strong>Stretch Curve<\/strong><\/h4>\n<p>Stretch Curve<\/p>\n<h3>WorldPathDeform Class<\/h3>\n<p>[cc lang=&#8221;c#&#8221;]public class MegaWorldPathDeform : MegaModifier<br \/>\n{<br \/>\n\tpublic float            percent;<br \/>\n\tpublic float            stretch;<br \/>\n\tpublic float            twist;<br \/>\n\tpublic float            rotate;<br \/>\n\tpublic MegaAxis         axis;<br \/>\n\tpublic bool             flip;<br \/>\n\tpublic MegaShape        path;<br \/>\n\tpublic bool             animate;<br \/>\n\tpublic float            speed;<br \/>\n\tpublic float            tangent;<br \/>\n\tpublic bool             UseTwistCurve;<br \/>\n\tpublic AnimationCurve   twistCurve;<br \/>\n\tpublic bool             UseStretchCurve;<br \/>\n\tpublic AnimationCurve   stretchCurve;<br \/>\n}[\/cc]<\/p>\n<h3>Video Guide to Path Deform<\/h3>\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=oC2PMenKPNc&#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\/2011\/11\/ytpathdef.jpg\" alt=\"\" title=\"ytpathdef\" width=\"680\" height=\"373\" class=\"aligncenter size-full wp-image-1470 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/ytpathdef.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/ytpathdef-300x164.jpg 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The WorldPathDeform modifier deforms an object using a spline as a path. You can move and stretch the object along the path, and rotate and twist it about the path. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":38,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/361"}],"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=361"}],"version-history":[{"count":8,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/361\/revisions"}],"predecessor-version":[{"id":1472,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/361\/revisions\/1472"}],"up":[{"embeddable":true,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/38"}],"wp:attachment":[{"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}