{"id":2560,"date":"2012-07-17T11:24:18","date_gmt":"2012-07-17T11:24:18","guid":{"rendered":"http:\/\/www.west-racing.com\/mf\/?page_id=2560"},"modified":"2012-07-17T11:24:43","modified_gmt":"2012-07-17T11:24:43","slug":"stretch-warp","status":"publish","type":"page","link":"http:\/\/www.west-racing.com\/mf\/?page_id=2560","title":{"rendered":"Stretch Warp"},"content":{"rendered":"<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/stretch.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/stretch-1024x283.jpg\" alt=\"\" title=\"stretch\" width=\"640\" height=\"176\" class=\"aligncenter size-large wp-image-1026 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/stretch-1024x283.jpg 1024w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/stretch-300x83.jpg 300w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/stretch-680x188.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/stretch.jpg 1145w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><br \/>\nThe Stretch warp creates a region in world space where any mesh bound to the warp will stretch as it gets closer. The distance the stretch will start depends on the decay value on the Warp and the Warp Bind which allows different objects to react differently to the warp. The Stretch warp can also be used to stretch a group of objects.<br \/>\n<a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/07\/stretchwarp.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/07\/stretchwarp.jpg\" alt=\"\" title=\"Stretch Warp Params\" width=\"265\" height=\"290\" class=\"alignright size-full wp-image-2561 fancy\" \/><\/a><\/p>\n<h3>Stretch Param description<\/h3>\n<h4><strong>Amount<\/strong><\/h4>\n<p>Sets the base scale factor for all three axes. The scale factor derived from the Stretch value varies according to the sign of the value.<\/p>\n<ul>Positive stretch values define a scale factor equal to Stretch+1. For example, a stretch value of 1.5\tyields a scale factor of 1.5+1=2.5, or 250 percent.<\/ul>\n<ul>Negative stretch values define a scale factor equal to -1\/(Stretch-1). For example, a stretch value of -1.5 yields a scale factor of -1\/(-1.5-1)=0.4, or 40 percent.<\/ul>\n<ul>The calculated scale factor is applied to the selected stretch axis and the inverse scale is applied to\tthe minor axes.<\/ul>\n<h4><strong>Amplify<\/strong><\/h4>\n<p>Changes the scale factor applied to the minor axes. Amplify generates a multiplier using the same technique as stretch. The multiplier is then applied to the Stretch value before the scale factor for the minor axes is calculated. Amplify values affect scaling along the minor axes in the following way:<\/p>\n<ul>A value of 0 has no effect. It uses the default scale factor calculated from the Stretch amount.<\/ul>\n<ul>Positive values exaggerate the effect.<\/ul>\n<ul>Negative values reduce the effect.<\/ul>\n<h4><strong>Axis<\/strong><\/h4>\n<p>Axis to stretch along.<\/p>\n<h4><strong>Do Region<\/strong><\/h4>\n<p>Constrain the effect to a region.<\/p>\n<h4><strong>From<\/strong><\/h4>\n<p>Start of the region.<\/p>\n<h4><strong>To<\/strong><\/h4>\n<p>End of the region.<\/p>\n<h3>Stretch Class<\/h3>\n<p>[cc lang=&#8221;c#&#8221;]public class MegaStretchWarp : MegaWarp<br \/>\n{<br \/>\n\tpublic float    amount;<br \/>\n\tpublic bool     doRegion;<br \/>\n\tpublic float    to;<br \/>\n\tpublic float    from;<br \/>\n\tpublic float    amplify;<br \/>\n\tpublic MegaAxis axis;<br \/>\n}[\/cc]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Stretch warp creates a region in world space where any mesh bound to the warp will stretch as it gets closer. The distance the stretch will start depends on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":377,"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\/2560"}],"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=2560"}],"version-history":[{"count":2,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/2560\/revisions"}],"predecessor-version":[{"id":2563,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/2560\/revisions\/2563"}],"up":[{"embeddable":true,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/377"}],"wp:attachment":[{"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}