{"id":14,"date":"2026-01-11T22:11:34","date_gmt":"2026-01-11T22:11:34","guid":{"rendered":"https:\/\/DREAMINGOFTECH.UK\/?p=14"},"modified":"2026-01-11T22:11:34","modified_gmt":"2026-01-11T22:11:34","slug":"unity-dots-physics","status":"publish","type":"post","link":"https:\/\/DREAMINGOFTECH.UK\/?p=14","title":{"rendered":"Unity DOTs Physics"},"content":{"rendered":"\n<p>I have started to make a game in Unity. I have been on the edge of trying this for a while, by gently dipping my toe in, with no real conviction.<\/p>\n\n\n\n<p>Now, however, I have resolved myself to try and actually get into this process and produce something.<\/p>\n\n\n\n<p>The game is going to be in 2D using the DOTs architecture. Even though this probably isn&#8217;t necessary I have been on the fringes of the DOTs framework since I found out about it, and I think using it will ultimately give me the greatest leaway in terms of performance given that the whole point of the architecture is to vastly increase performance.<\/p>\n\n\n\n<p>OK, so the first step of this is to figure out the basic physics. The graphics will be sprites which is OK for the player\/enemy characters, as these can be rendered from the DOTS subscene. However, background items from the tilemap are not. This in itself isn&#8217;t a massive problem, as my thought is to use a simple empty game object so that there is a local transform. I can also attach a rigidbody and collider to it that will be baked into the DOTs environment.<\/p>\n\n\n\n<p>My first attempt at this led a funny incident. I managed to get my player character (currently a red square) moving around and jumping, however, at some point the object fell over and started tumbling around on the z-axis.<\/p>\n\n\n\n<p>Therefore, my first challenge here is to get the physics working to enable basic movement but constraining the z axis. There are many more features to a great 2D controller system, however, for the moment I will focus on this baby step and see if I can get it working.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have started to make a game in Unity. I have been on the edge of trying this for a while, by gently dipping my toe in, with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-14","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/DREAMINGOFTECH.UK\/index.php?rest_route=\/wp\/v2\/posts\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/DREAMINGOFTECH.UK\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/DREAMINGOFTECH.UK\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/DREAMINGOFTECH.UK\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/DREAMINGOFTECH.UK\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14"}],"version-history":[{"count":1,"href":"https:\/\/DREAMINGOFTECH.UK\/index.php?rest_route=\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":15,"href":"https:\/\/DREAMINGOFTECH.UK\/index.php?rest_route=\/wp\/v2\/posts\/14\/revisions\/15"}],"wp:attachment":[{"href":"https:\/\/DREAMINGOFTECH.UK\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/DREAMINGOFTECH.UK\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/DREAMINGOFTECH.UK\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}