{"id":84,"date":"2011-08-14T00:12:18","date_gmt":"2011-08-13T21:12:18","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=84"},"modified":"2016-03-31T21:40:09","modified_gmt":"2016-03-31T13:40:09","slug":"function-cubicbezier-2d","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2011\/08\/14\/function-cubicbezier-2d\/","title":{"rendered":"Function: CubicBezier (2D)"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"85\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2011\/08\/14\/function-cubicbezier-2d\/mcubicbezier1\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mcubicbezier1.jpg?fit=680%2C469&amp;ssl=1\" data-orig-size=\"680,469\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"mcubicbezier1\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mcubicbezier1.jpg?fit=300%2C206&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mcubicbezier1.jpg?fit=680%2C469&amp;ssl=1\" class=\"alignnone size-full wp-image-85\" title=\"mcubicbezier1\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mcubicbezier1.jpg?resize=680%2C469\" alt=\"\" width=\"680\" height=\"469\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mcubicbezier1.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mcubicbezier1.jpg?resize=300%2C206&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><br \/>\nConverted function from <a href=\"http:\/\/www.paultondeur.com\/2008\/03\/09\/drawing-a-cubic-bezier-curve-using-actionscript-3\/\" target=\"_blank\">this source<\/a> to Unity. Drawing bezier curves (2D).<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">function CubicBezier(a1:Vector3,a2:Vector3,c1:Vector3,c2:Vector3,steps:float)<\/pre>\n<p><strong>Download source:<\/strong><br \/>\n<a href=\"http:\/\/unitycoder.com\/download\/index2.php?link=12&amp;uid=un1t3c0d5r\" target=\"_blank\">CubicBezier.unitypackage<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Converted function from this source to Unity. Drawing bezier curves (2D). function CubicBezier(a1:Vector3,a2:Vector3,c1:Vector3,c2:Vector3,steps:float) Download source: CubicBezier.unitypackage<\/p>\n","protected":false},"author":1,"featured_media":85,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[23,3],"tags":[25,873,69,24,18,628,627,872],"class_list":["post-84","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-functions-unity3d","category-unity3d","tag-bezier","tag-catmull-rom","tag-follow","tag-function","tag-javascript","tag-path","tag-spline","tag-splines"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mcubicbezier1.jpg?fit=680%2C469&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-1m","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/84","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=84"}],"version-history":[{"count":6,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/84\/revisions"}],"predecessor-version":[{"id":2938,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/84\/revisions\/2938"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/85"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=84"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=84"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=84"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}