{"id":2876,"date":"2022-02-10T10:41:03","date_gmt":"2022-02-10T08:41:03","guid":{"rendered":"https:\/\/beethebest.fun\/?p=2876"},"modified":"2022-02-10T10:46:25","modified_gmt":"2022-02-10T08:46:25","slug":"fisicas-de-unity","status":"publish","type":"post","link":"https:\/\/beethebest.fun\/ca\/fisicas-de-unity\/","title":{"rendered":"F\u00cdSIQUES DE UNITY"},"content":{"rendered":"<p>[vc_row][vc_column][vc_column_text]<\/p>\n<p style=\"text-align: justify\">Unity compta amb el seu propi sistema de f\u00edsiques incorporat, de manera que pots crear interaccions b\u00e0siques entre objectes en nom\u00e9s un parell de minuts. Com a regla general, si el teu joc compta amb cap component de joc (<em>gameobject<\/em>) en moviment, et caldr\u00e0 utilitzar <em>rigidbodys<\/em>. Aquests cossos r\u00edgids s\u00f3n components que permeten que els objectes del joc o projecte en q\u00fcesti\u00f3, es vegin afectats per les f\u00edsiques. \u00c9s a dir, fan que l&#8217;objecte caigui a terra per l\u2019efecte de la gravetat i contenen propietats f\u00edsiques com s\u00f3n la massa, l&#8217;arrossegament i la velocitat. \u00c9s important recordar per\u00f2, que l&#8217;objecte ha de tenir un col\u00b7lisionador connectat per tal de poder interactuar amb altres objectes f\u00edsics.<\/p>\n<p style=\"text-align: justify\">Aix\u00ed, amb nom\u00e9s un parell de peces i aquests dos components, pots crear mec\u00e0niques de joc molt interessants sense preocupar-te massa per la part de la programaci\u00f3 \/ codi!<\/p>\n<p style=\"text-align: justify\">En aquest exemple, he construit una torre Jenga molt senzilla per mostrar-vos com interactuen les diferents peces en moviment amb l&#8217;estructura general:<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_single_image image=&#8221;2840&#8243; img_size=&#8221;full&#8221; alignment=&#8221;center&#8221; style=&#8221;vc_box_rounded&#8221; css_animation=&#8221;fadeInUp&#8221; lazy_loading=&#8221;true&#8221;][\/vc_column][\/vc_row]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unity t\u00e9 el seu propi sistema de f\u00edsiques constru\u00eft a l&#8217;interior, de manera que pots crear interaccions b\u00e0siques&#8230; <\/p>\n","protected":false},"author":3,"featured_media":2825,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"iawp_total_views":0,"footnotes":""},"categories":[79,92],"tags":[235,234,236,237,95],"class_list":["post-2876","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-eines","category-programacio","tag-cossos-rigids","tag-fisiques","tag-gravetat","tag-jenga-ca","tag-unity-ca","category-79","category-92","description-off"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Unity t\u00e9 el seu propi sistema de f\u00edsiques constru\u00eft a l&#039;interior, de manera que pots crear interaccions b\u00e0siques...\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"\u00c0lvaro Lombera\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/beethebest.fun\/ca\/fisicas-de-unity\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"ca_ES\" \/>\n\t\t<meta property=\"og:site_name\" content=\"BeeTheBest - Videojoc 2D multijugador\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"F\u00cdSIQUES DE UNITY - BeeTheBest\" \/>\n\t\t<meta property=\"og:description\" content=\"Unity t\u00e9 el seu propi sistema de f\u00edsiques constru\u00eft a l&#039;interior, de manera que pots crear interaccions b\u00e0siques...\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/beethebest.fun\/ca\/fisicas-de-unity\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2022-02-10T08:41:03+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-02-10T08:46:25+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"F\u00cdSIQUES DE UNITY - BeeTheBest\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Unity t\u00e9 el seu propi sistema de f\u00edsiques constru\u00eft a l&#039;interior, de manera que pots crear interaccions b\u00e0siques...\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/fisicas-de-unity\\\/#blogposting\",\"name\":\"F\\u00cdSIQUES DE UNITY - BeeTheBest\",\"headline\":\"F\\u00cdSIQUES DE UNITY\",\"author\":{\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/author\\\/alvarolomb\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/beethebest.fun\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/18_Unitys_Physics.jpg\",\"width\":788,\"height\":525},\"datePublished\":\"2022-02-10T10:41:03+02:00\",\"dateModified\":\"2022-02-10T10:46:25+02:00\",\"inLanguage\":\"ca\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/fisicas-de-unity\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/fisicas-de-unity\\\/#webpage\"},\"articleSection\":\"Eines, Programaci\\u00f3, Cossos R\\u00edgids, F\\u00edsiques, Gravetat, Jenga, Unity, Optional\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/fisicas-de-unity\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/category\\\/eines\\\/#listItem\",\"name\":\"Eines\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/category\\\/eines\\\/#listItem\",\"position\":2,\"name\":\"Eines\",\"item\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/category\\\/eines\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/fisicas-de-unity\\\/#listItem\",\"name\":\"F\\u00cdSIQUES DE UNITY\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/fisicas-de-unity\\\/#listItem\",\"position\":3,\"name\":\"F\\u00cdSIQUES DE UNITY\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/category\\\/eines\\\/#listItem\",\"name\":\"Eines\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/#organization\",\"name\":\"Croissant Cat Games\",\"description\":\"Videojoc 2D multijugador\",\"url\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/author\\\/alvarolomb\\\/#author\",\"url\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/author\\\/alvarolomb\\\/\",\"name\":\"\\u00c0lvaro Lombera\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/fisicas-de-unity\\\/#authorImage\",\"url\":\"https:\\\/\\\/beethebest.fun\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/alvaro-96x96.jpg\",\"width\":96,\"height\":96,\"caption\":\"\\u00c0lvaro Lombera\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/fisicas-de-unity\\\/#webpage\",\"url\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/fisicas-de-unity\\\/\",\"name\":\"F\\u00cdSIQUES DE UNITY - BeeTheBest\",\"description\":\"Unity t\\u00e9 el seu propi sistema de f\\u00edsiques constru\\u00eft a l'interior, de manera que pots crear interaccions b\\u00e0siques...\",\"inLanguage\":\"ca\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/fisicas-de-unity\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/author\\\/alvarolomb\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/author\\\/alvarolomb\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/beethebest.fun\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/18_Unitys_Physics.jpg\",\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/fisicas-de-unity\\\/#mainImage\",\"width\":788,\"height\":525},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/fisicas-de-unity\\\/#mainImage\"},\"datePublished\":\"2022-02-10T10:41:03+02:00\",\"dateModified\":\"2022-02-10T10:46:25+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/#website\",\"url\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/\",\"name\":\"BeeTheBest\",\"description\":\"Videojoc 2D multijugador\",\"inLanguage\":\"ca\",\"publisher\":{\"@id\":\"https:\\\/\\\/beethebest.fun\\\/ca\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"F\u00cdSIQUES DE UNITY - BeeTheBest","description":"Unity t\u00e9 el seu propi sistema de f\u00edsiques constru\u00eft a l'interior, de manera que pots crear interaccions b\u00e0siques...","canonical_url":"https:\/\/beethebest.fun\/ca\/fisicas-de-unity\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/beethebest.fun\/ca\/fisicas-de-unity\/#blogposting","name":"F\u00cdSIQUES DE UNITY - BeeTheBest","headline":"F\u00cdSIQUES DE UNITY","author":{"@id":"https:\/\/beethebest.fun\/ca\/author\/alvarolomb\/#author"},"publisher":{"@id":"https:\/\/beethebest.fun\/ca\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/beethebest.fun\/wp-content\/uploads\/2022\/01\/18_Unitys_Physics.jpg","width":788,"height":525},"datePublished":"2022-02-10T10:41:03+02:00","dateModified":"2022-02-10T10:46:25+02:00","inLanguage":"ca","mainEntityOfPage":{"@id":"https:\/\/beethebest.fun\/ca\/fisicas-de-unity\/#webpage"},"isPartOf":{"@id":"https:\/\/beethebest.fun\/ca\/fisicas-de-unity\/#webpage"},"articleSection":"Eines, Programaci\u00f3, Cossos R\u00edgids, F\u00edsiques, Gravetat, Jenga, Unity, Optional"},{"@type":"BreadcrumbList","@id":"https:\/\/beethebest.fun\/ca\/fisicas-de-unity\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/beethebest.fun\/ca\/#listItem","position":1,"name":"Home","item":"https:\/\/beethebest.fun\/ca\/","nextItem":{"@type":"ListItem","@id":"https:\/\/beethebest.fun\/ca\/category\/eines\/#listItem","name":"Eines"}},{"@type":"ListItem","@id":"https:\/\/beethebest.fun\/ca\/category\/eines\/#listItem","position":2,"name":"Eines","item":"https:\/\/beethebest.fun\/ca\/category\/eines\/","nextItem":{"@type":"ListItem","@id":"https:\/\/beethebest.fun\/ca\/fisicas-de-unity\/#listItem","name":"F\u00cdSIQUES DE UNITY"},"previousItem":{"@type":"ListItem","@id":"https:\/\/beethebest.fun\/ca\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/beethebest.fun\/ca\/fisicas-de-unity\/#listItem","position":3,"name":"F\u00cdSIQUES DE UNITY","previousItem":{"@type":"ListItem","@id":"https:\/\/beethebest.fun\/ca\/category\/eines\/#listItem","name":"Eines"}}]},{"@type":"Organization","@id":"https:\/\/beethebest.fun\/ca\/#organization","name":"Croissant Cat Games","description":"Videojoc 2D multijugador","url":"https:\/\/beethebest.fun\/ca\/"},{"@type":"Person","@id":"https:\/\/beethebest.fun\/ca\/author\/alvarolomb\/#author","url":"https:\/\/beethebest.fun\/ca\/author\/alvarolomb\/","name":"\u00c0lvaro Lombera","image":{"@type":"ImageObject","@id":"https:\/\/beethebest.fun\/ca\/fisicas-de-unity\/#authorImage","url":"https:\/\/beethebest.fun\/wp-content\/uploads\/2021\/06\/alvaro-96x96.jpg","width":96,"height":96,"caption":"\u00c0lvaro Lombera"}},{"@type":"WebPage","@id":"https:\/\/beethebest.fun\/ca\/fisicas-de-unity\/#webpage","url":"https:\/\/beethebest.fun\/ca\/fisicas-de-unity\/","name":"F\u00cdSIQUES DE UNITY - BeeTheBest","description":"Unity t\u00e9 el seu propi sistema de f\u00edsiques constru\u00eft a l'interior, de manera que pots crear interaccions b\u00e0siques...","inLanguage":"ca","isPartOf":{"@id":"https:\/\/beethebest.fun\/ca\/#website"},"breadcrumb":{"@id":"https:\/\/beethebest.fun\/ca\/fisicas-de-unity\/#breadcrumblist"},"author":{"@id":"https:\/\/beethebest.fun\/ca\/author\/alvarolomb\/#author"},"creator":{"@id":"https:\/\/beethebest.fun\/ca\/author\/alvarolomb\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/beethebest.fun\/wp-content\/uploads\/2022\/01\/18_Unitys_Physics.jpg","@id":"https:\/\/beethebest.fun\/ca\/fisicas-de-unity\/#mainImage","width":788,"height":525},"primaryImageOfPage":{"@id":"https:\/\/beethebest.fun\/ca\/fisicas-de-unity\/#mainImage"},"datePublished":"2022-02-10T10:41:03+02:00","dateModified":"2022-02-10T10:46:25+02:00"},{"@type":"WebSite","@id":"https:\/\/beethebest.fun\/ca\/#website","url":"https:\/\/beethebest.fun\/ca\/","name":"BeeTheBest","description":"Videojoc 2D multijugador","inLanguage":"ca","publisher":{"@id":"https:\/\/beethebest.fun\/ca\/#organization"}}]},"og:locale":"ca_ES","og:site_name":"BeeTheBest - Videojoc 2D multijugador","og:type":"article","og:title":"F\u00cdSIQUES DE UNITY - BeeTheBest","og:description":"Unity t\u00e9 el seu propi sistema de f\u00edsiques constru\u00eft a l'interior, de manera que pots crear interaccions b\u00e0siques...","og:url":"https:\/\/beethebest.fun\/ca\/fisicas-de-unity\/","article:published_time":"2022-02-10T08:41:03+00:00","article:modified_time":"2022-02-10T08:46:25+00:00","twitter:card":"summary","twitter:title":"F\u00cdSIQUES DE UNITY - BeeTheBest","twitter:description":"Unity t\u00e9 el seu propi sistema de f\u00edsiques constru\u00eft a l'interior, de manera que pots crear interaccions b\u00e0siques..."},"aioseo_meta_data":{"post_id":"2876","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2022-04-24 18:36:13","updated":"2025-06-23 20:07:01","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/beethebest.fun\/ca\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/beethebest.fun\/ca\/category\/eines\/\" title=\"Eines\">Eines<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tF\u00cdSIQUES DE UNITY\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/beethebest.fun\/ca\/"},{"label":"Eines","link":"https:\/\/beethebest.fun\/ca\/category\/eines\/"},{"label":"F\u00cdSIQUES DE UNITY","link":"https:\/\/beethebest.fun\/ca\/fisicas-de-unity\/"}],"views":105,"_links":{"self":[{"href":"https:\/\/beethebest.fun\/ca\/wp-json\/wp\/v2\/posts\/2876","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=2876"}],"version-history":[{"count":9,"href":"https:\/\/beethebest.fun\/ca\/wp-json\/wp\/v2\/posts\/2876\/revisions"}],"predecessor-version":[{"id":2898,"href":"https:\/\/beethebest.fun\/ca\/wp-json\/wp\/v2\/posts\/2876\/revisions\/2898"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/beethebest.fun\/ca\/wp-json\/wp\/v2\/media\/2825"}],"wp:attachment":[{"href":"https:\/\/beethebest.fun\/ca\/wp-json\/wp\/v2\/media?parent=2876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/beethebest.fun\/ca\/wp-json\/wp\/v2\/categories?post=2876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/beethebest.fun\/ca\/wp-json\/wp\/v2\/tags?post=2876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}