{"id":2551,"date":"2012-07-17T11:02:58","date_gmt":"2012-07-17T11:02:58","guid":{"rendered":"http:\/\/www.west-racing.com\/mf\/?page_id=2551"},"modified":"2012-07-17T11:05:11","modified_gmt":"2012-07-17T11:05:11","slug":"bend-warp","status":"publish","type":"page","link":"http:\/\/www.west-racing.com\/mf\/?page_id=2551","title":{"rendered":"Bend Warp"},"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 warp creates a region in world space where any mesh bound to the warp will bend as it gets closer. The distance the bend 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 Bend warp can also be used to bend a group of objects.<\/p>\n<p><a href=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/07\/bendwarp.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.west-racing.com\/mf\/wp-content\/uploads\/2012\/07\/bendwarp.jpg\" alt=\"\" title=\"Bend Warp Params\" width=\"268\" height=\"291\" class=\"alignright size-full wp-image-2553 fancy\" \/><\/a><\/p>\n<h3>Bend Warp 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 Warp Class<\/h3>\n<p>[cc lang=&#8221;c#&#8221;]public class MegaBendWarp : MegaWarp<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","protected":false},"excerpt":{"rendered":"<p>The Bend warp creates a region in world space where any mesh bound to the warp will bend as it gets closer. The distance the bend 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\/2551"}],"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=2551"}],"version-history":[{"count":2,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/2551\/revisions"}],"predecessor-version":[{"id":2554,"href":"http:\/\/www.west-racing.com\/mf\/index.php?rest_route=\/wp\/v2\/pages\/2551\/revisions\/2554"}],"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=2551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}