{"id":2885,"date":"2022-02-10T10:44:12","date_gmt":"2022-02-10T08:44:12","guid":{"rendered":"https:\/\/beethebest.fun\/?p=2885"},"modified":"2022-04-05T18:26:04","modified_gmt":"2022-04-05T16:26:04","slug":"fisicas-de-unity","status":"publish","type":"post","link":"https:\/\/beethebest.fun\/es\/fisicas-de-unity\/","title":{"rendered":"F\u00cdSICAS DE UNITY"},"content":{"rendered":"<p>[vc_row][vc_column][vc_column_text]<\/p>\n<p style=\"text-align: justify;\">Unity cuenta con su propio sistema de f\u00edsicas incorporado, por lo que puedes crear interacciones b\u00e1sicas entre objetos en s\u00f3lo un par de minutos. Como regla general, si tienes alg\u00fan componente de juego (<em>gameobject<\/em>) en movimiento en el juego, necesitar\u00e1s utilizar <em>rigidbodys<\/em>. Estos cuerpos r\u00edgidos son componentes que permiten que los objetos del juego o proyecto en cuesti\u00f3n, se vean afectados por las f\u00edsicas: hacen que el objeto caiga al suelo por el efecto de la gravedad y contienen propiedades f\u00edsicas como son la masa, el arrastre y la velocidad. Sin embargo, es importante recordar que el objeto debe tener un colisionador conectado para interactuar con otros objetos f\u00edsicos.<\/p>\n<p style=\"text-align: justify;\">As\u00ed, con s\u00f3lo un par de piezas y estos dos componentes, \u00a1puedes crear mec\u00e1nicas de juego muy interesantes sin preocuparte demasiado por la parte de la programaci\u00f3n!<\/p>\n<p style=\"text-align: justify;\">En este ejemplo, he construido una torre Jenga muy sencilla para mostrar c\u00f3mo interact\u00faan las diferentes piezas en movimiento con la estructura general:<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_single_image image=\u00bb2847&#8243; img_size=\u00bbfull\u00bb alignment=\u00bbcenter\u00bb style=\u00bbvc_box_rounded\u00bb css_animation=\u00bbfadeInUp\u00bb lazy_loading=\u00bbtrue\u00bb][\/vc_column][\/vc_row]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unity cuenta con su propio sistema de f\u00edsicas incorporado, por lo que puedes crear interacciones b\u00e1sicas entre objetos en s\u00f3lo&#8230;<\/p>\n","protected":false},"author":3,"featured_media":2832,"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":2,"footnotes":""},"categories":[84,96],"tags":[240,238,239,241,99],"class_list":["post-2885","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-herramientas","category-programacion","tag-cuerpos-rigidos","tag-fisicas","tag-gravedad","tag-jenga-es","tag-unity-es","category-84","category-96","description-off"],"aioseo_notices":[],"views":99,"_links":{"self":[{"href":"https:\/\/beethebest.fun\/es\/wp-json\/wp\/v2\/posts\/2885","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/beethebest.fun\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/beethebest.fun\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/beethebest.fun\/es\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/beethebest.fun\/es\/wp-json\/wp\/v2\/comments?post=2885"}],"version-history":[{"count":10,"href":"https:\/\/beethebest.fun\/es\/wp-json\/wp\/v2\/posts\/2885\/revisions"}],"predecessor-version":[{"id":2893,"href":"https:\/\/beethebest.fun\/es\/wp-json\/wp\/v2\/posts\/2885\/revisions\/2893"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/beethebest.fun\/es\/wp-json\/wp\/v2\/media\/2832"}],"wp:attachment":[{"href":"https:\/\/beethebest.fun\/es\/wp-json\/wp\/v2\/media?parent=2885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/beethebest.fun\/es\/wp-json\/wp\/v2\/categories?post=2885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/beethebest.fun\/es\/wp-json\/wp\/v2\/tags?post=2885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}