{"id":41,"date":"2011-11-27T19:56:37","date_gmt":"2011-11-27T19:56:37","guid":{"rendered":"http:\/\/www.west-racing.com\/mf\/?page_id=41"},"modified":"2012-04-26T09:04:38","modified_gmt":"2012-04-26T09:04:38","slug":"bend","status":"publish","type":"page","link":"http:\/\/www.west-racing.com\/mf\/?page_id=41","title":{"rendered":"Bend"},"content":{"rendered":"<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/bend11.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/bend11-1024x276.jpg\" alt=\"\" title=\"Bend\" width=\"640\" height=\"172\" class=\"aligncenter size-large wp-image-679 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/bend11-1024x276.jpg 1024w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/bend11-300x81.jpg 300w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/bend11-680x183.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/bend11.jpg 1183w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><br \/>\nThe Bend modifier lets you bend the current selection about a single axis, producing a uniform bend in an object&#8217;s geometry. You can control the angle and direction of the bend on any of three axes. You can also limit the bend to a section of the geometry.<br \/>\n<a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/tapestry.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/tapestry-300x171.jpg\" alt=\"\" title=\"tapestry\" width=\"300\" height=\"171\" class=\"alignright size-medium wp-image-130 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/tapestry-300x171.jpg 300w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/tapestry-1024x583.jpg 1024w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/tapestry-680x387.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/tapestry.jpg 1587w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nThe power of the bend modifier really comes from playing with the limits and the gizmo position and offset values. For example a question was posted whether it was possible to roll up a carpet mesh using MegaFiers and the answer was yes by using bend and the offset values not only could a mesh be rolled up like a carpet it could be made to roll up on top of itself and even roll up in an untidy way. Also a very nice page turn can be done with a little scripting and a couple of bends moving over a mesh to do a dynamic page turn. It is strongly advised that you take the time to play with all the values on the bend modifier to get a feel for what can be done with a single mod.<\/p>\n<div class=\"message_box info_box\">\n<p class=\"message_box_sign info_box_sign\">Info<\/p>\nFor more complex bends you can always apply multiple bend modifiers to a mesh. There is also a World Space warp version of this modifier as well so you can have a region of you game where objects bend as they move towards the warp.\n<\/div>\n<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megabend.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megabend.jpg\" alt=\"\" title=\"megabend\" width=\"245\" height=\"405\" class=\"alignright size-full wp-image-627 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megabend.jpg 245w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/megabend-181x300.jpg 181w\" sizes=\"(max-width: 245px) 100vw, 245px\" \/><\/a><\/p>\n<h3>Bend Param Description<\/h3>\n<h4><strong>Angle<\/strong><\/h4>\n<p>Sets the angle to bend from the vertical plane in degrees.<\/p>\n<h4><strong>Direction<\/strong><\/h4>\n<p>Sets the direction of the bend relative to the horizontal plane in degrees.<\/p>\n<h4><strong>Axis<\/strong><\/h4>\n<p>Specifies the axis to be bent. X Y or Z<\/p>\n<h4><strong>DoRegion<\/strong><\/h4>\n<p>Limits the effect to a region of the mesh. The area of the effect will be shown by red and green boxes. This is useful for say just bending the top of a tree or lamp post.<\/p>\n<h4><strong>From<\/strong><\/h4>\n<p>Lower boundary of the effect.<\/p>\n<h4><strong>To<\/strong><\/h4>\n<p>Upper boundary of the effect.<\/p>\n<h3>Bend Class<\/h3>\n<p>[cc lang=&#8221;c#&#8221;]public class MegaBend : MegaModifier<br \/>\n{<br \/>\n    public float\u00a0\u00a0 \u00a0angle;<br \/>\n    public float\u00a0\u00a0 \u00a0dir;<br \/>\n    public MegaAxis axis;<br \/>\n    public bool\u00a0\u00a0 \u00a0 doRegion;<br \/>\n    public float\u00a0\u00a0 \u00a0from;<br \/>\n    public float\u00a0\u00a0 \u00a0to;<br \/>\n}[\/cc]<\/p>\n<h3>Video Showing Bend being Used<\/h3>\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=v4B8NTB580E&#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\/ytbend.jpg\" alt=\"\" title=\"Click to Play\" width=\"680\" height=\"399\" class=\"aligncenter size-full wp-image-1670 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/ytbend.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2011\/11\/ytbend-300x176.jpg 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n<h3>Bend Tutorial<\/h3>\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=okZ3-j6GIWA&#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\/2012\/04\/ytbend11.jpg\" alt=\"\" title=\"Click to Play\" width=\"680\" height=\"406\" class=\"aligncenter size-full wp-image-1922 fancy\" srcset=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/04\/ytbend11.jpg 680w, http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/04\/ytbend11-300x179.jpg 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Bend modifier lets you bend the current selection about a single axis, producing a uniform bend in an object&#8217;s geometry. You can control the angle and direction of the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":38,"menu_order":1,"comment_status":"open","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/41"}],"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=41"}],"version-history":[{"count":51,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/41\/revisions"}],"predecessor-version":[{"id":4504,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/41\/revisions\/4504"}],"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=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}