{"id":1701,"date":"2021-11-13T10:10:10","date_gmt":"2021-11-13T08:10:10","guid":{"rendered":"https:\/\/beethebest.fun\/?p=1701"},"modified":"2021-11-13T10:19:48","modified_gmt":"2021-11-13T08:19:48","slug":"animacio-amb-unity","status":"publish","type":"post","link":"https:\/\/beethebest.fun\/ca\/animacio-amb-unity\/","title":{"rendered":"Animaci\u00f3 amb Unity"},"content":{"rendered":"<p>[vc_row][vc_column][vc_column_text]<\/p>\n<p style=\"text-align: justify\">No cal ser un artista per poder animar. Unity t\u00e9 una eina molt bona per crear animacions r\u00e0pides i f\u00e0cils, els components ANIMATION i ANIMATOR. Nom\u00e9s cal una mica de pr\u00e0ctica i potser un xic d\u2019aptitud per escriure codi (scripting) per tal de maximitzar els resultats. Tan sols afegint el component d\u2019animaci\u00f3 a l\u2019objecte que volem animar, el programa ens permetr\u00e0 modificar quasi totes les variables com ara: la posici\u00f3 dins l\u2019escena, el color, l\u2019amplitud, la rotaci\u00f3\u2026 totes elles segons el quadre temporal que vulguem.<\/p>\n<p>[\/vc_column_text][vc_single_image image=&#8221;1672&#8243; img_size=&#8221;full&#8221; alignment=&#8221;center&#8221; style=&#8221;vc_box_rounded&#8221; lazy_loading=&#8221;true&#8221;][vc_column_text css=&#8221;.vc_custom_1633972465054{margin-top: -30px !important;}&#8221;]<\/p>\n<h6 style=\"text-align: center\">(GIF de la transici\u00f3 i del component ANIMATION)<\/h6>\n<p>[\/vc_column_text][vc_column_text]<\/p>\n<p style=\"text-align: justify\">El logo de BTB que fem servir entre transicions, \u00e9s un clar exemple del poder d\u2019aquesta eina. Tot just configurant el temps de l\u2019animaci\u00f3 a 2 segons, podem alterar totes les variables esmentades i fer-lo escalar i rotar tan com vulguem. Tanmateix, la part m\u00e9s important d\u2019aix\u00f2 \u00e9s amb quina facilitat s\u2019aconsegueix tal fita. Tot prement el bot\u00f3 vermell de gravar i movent l\u2019objecte aqu\u00ed i all\u00e0, Unity guardar\u00e0 els canvis fets, tot creant la transici\u00f3 desitjada.<\/p>\n<p style=\"text-align: justify\">I no s\u2019acaba aqu\u00ed, doncs tamb\u00e9 et permet controlar totes les animacions d\u2019un script! Oferint al desenvolupador el poder de controlar quan acaba i quan comen\u00e7a la transici\u00f3. Fins i tot \u00e9s possible crear esdeveniments durant el proc\u00e9s d\u2019animaci\u00f3, tenint la flexibilitat de referenciar m\u00e8todes d\u2019script personalitzats quan l\u2019animaci\u00f3 arriba a cert quadre.<\/p>\n<p>[\/vc_column_text][vc_single_image image=&#8221;1681&#8243; img_size=&#8221;full&#8221; alignment=&#8221;center&#8221; style=&#8221;vc_box_rounded&#8221; lazy_loading=&#8221;true&#8221;][vc_column_text css=&#8221;.vc_custom_1633972483167{margin-top: -30px !important;}&#8221;]<\/p>\n<h6 style=\"text-align: center\">(l\u00ednia temporal dels quadres per segon)<\/h6>\n<p>[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>No cal ser un artista per poder animar. Unity t\u00e9 una eina molt bona per crear animacions r\u00e0pides i f\u00e0cils&#8230;<\/p>\n","protected":false},"author":3,"featured_media":1691,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"iawp_total_views":0,"footnotes":""},"categories":[79,92],"tags":[93,94,95],"class_list":["post-1701","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-eines","category-programacio","tag-animacio","tag-linia-temporal","tag-unity-ca","category-79","category-92","description-off"],"aioseo_notices":[],"views":80,"_links":{"self":[{"href":"https:\/\/beethebest.fun\/ca\/wp-json\/wp\/v2\/posts\/1701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/beethebest.fun\/ca\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/beethebest.fun\/ca\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/beethebest.fun\/ca\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/beethebest.fun\/ca\/wp-json\/wp\/v2\/comments?post=1701"}],"version-history":[{"count":6,"href":"https:\/\/beethebest.fun\/ca\/wp-json\/wp\/v2\/posts\/1701\/revisions"}],"predecessor-version":[{"id":2344,"href":"https:\/\/beethebest.fun\/ca\/wp-json\/wp\/v2\/posts\/1701\/revisions\/2344"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/beethebest.fun\/ca\/wp-json\/wp\/v2\/media\/1691"}],"wp:attachment":[{"href":"https:\/\/beethebest.fun\/ca\/wp-json\/wp\/v2\/media?parent=1701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/beethebest.fun\/ca\/wp-json\/wp\/v2\/categories?post=1701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/beethebest.fun\/ca\/wp-json\/wp\/v2\/tags?post=1701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}