{"id":296368,"date":"2019-12-25T15:00:12","date_gmt":"2019-12-25T15:00:12","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=296368"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=296368","title":{"rendered":"\u0424\u0438\u0437\u0438\u043a\u0430 \u0434\u043b\u044f \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e PvP \u0448\u0443\u0442\u0435\u0440\u0430 \u0438 \u043a\u0430\u043a \u043c\u044b \u043f\u043e\u0434\u0440\u0443\u0436\u0438\u043b\u0438 \u0435\u0451 \u0441 ECS"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/pixonic\/blog\/481880\/\">\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442! \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c \u043f\u0440\u043e \u043b\u0438\u0447\u043d\u044b\u0439 \u043e\u043f\u044b\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0434\u0432\u0438\u0436\u043a\u0430\u043c\u0438 \u0434\u043b\u044f \u043c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0435\u0435\u0440\u043d\u043e\u0433\u043e \u0448\u0443\u0442\u0435\u0440\u0430 \u0438 \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0441\u0444\u043e\u043a\u0443\u0441\u0438\u0440\u0443\u0435\u043c\u0441\u044f \u043d\u0430 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0438 \u0444\u0438\u0437\u0438\u043a\u0438 \u0438 <abbr title=\"ECS \u2014 data-oriented \u043f\u043e\u0434\u0445\u043e\u0434, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0442\u0434\u0435\u043b\u0435\u043d\u044b \u043e\u0442 \u043b\u043e\u0433\u0438\u043a\u0438. \u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u043a\u0430\u043a \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 (Entity) \u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b (Components), \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0449\u0438\u0435 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044f\u043c. \u041b\u043e\u0433\u0438\u043a\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 (Systems), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043f\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439 \u0438 \u043c\u0435\u043d\u044f\u044e\u0442 \u0438\u0445, \u0441\u043e\u0437\u0434\u0430\u044e\u0442 \u043d\u043e\u0432\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438.\">ECS<\/abbr>: \u043d\u0430 \u043a\u0430\u043a\u0438\u0435 \u0433\u0440\u0430\u0431\u043b\u0438 \u043c\u044b \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u043b\u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u044b, \u0447\u0435\u043c\u0443 \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c, \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438\u0441\u044c \u043d\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u0445.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/gp\/b_\/2-\/gpb_2-4ml1nwdsb443-f2pp6zyu.png\"><br \/>  <a name=\"habracut\"><\/a><br \/>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c\u0441\u044f, \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u0436\u0435 \u043d\u0443\u0436\u0435\u043d \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0434\u0432\u0438\u0436\u043e\u043a. \u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430 \u0437\u0434\u0435\u0441\u044c \u043d\u0435\u0442: \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0433\u0440\u0435 \u043e\u043d \u0441\u043b\u0443\u0436\u0438\u0442 \u0434\u043b\u044f \u0441\u0432\u043e\u0435\u0439 \u0446\u0435\u043b\u0438. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0433\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0432\u0438\u0436\u043a\u0438 \u0434\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0438 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0432 \u043c\u0438\u0440\u0435, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0441\u0442\u0438\u0447\u044c \u044d\u0444\u0444\u0435\u043a\u0442\u0430 \u043f\u043e\u0433\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0438\u0433\u0440\u043e\u043a\u0430. \u0412 \u0434\u0440\u0443\u0433\u0438\u0445 \u0444\u0438\u0437\u0438\u043a\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0441\u043d\u043e\u0432\u043e\u0439 \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u044f \u2015 \u043a \u0442\u0430\u043a\u043e\u0432\u044b\u043c \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Angry Birds \u0438 Red Faction. \u0415\u0449\u0451 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u00ab\u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u044b\u00bb, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u0430\u043a\u043e\u043d\u044b \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u043e\u0442 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0445 \u0438 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0434\u0435\u043b\u0430\u044e\u0442 \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u0439 \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c \u0438 \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u044b\u043c (Portal, A Slower Speed of Light). <\/p>\n<p>  \u0421 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0434\u0432\u0438\u0436\u043e\u043a \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0438 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0432 \u0438\u0433\u0440\u0435. \u041f\u043e \u0441\u0443\u0442\u0438 \u043e\u043d \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u0432. \u041f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430 \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0441\u0430\u043c\u0438\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0442\u0435\u043b \u0438 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u043a\u043e\u043d\u044b, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0431\u0443\u0434\u0435\u0442 \u0436\u0438\u0442\u044c \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u043c\u0438\u0440. \u042d\u0442\u043e \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u043a\u0443\u0447\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u0441\u0438\u043b \u043d\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/5ef\/938\/61f\/5ef93861ff7c4921e44bcf14902cab51.jpg\" alt=\"image\"><br \/>  <i>\u041d\u0430 <a href=\"https:\/\/habr.com\/ru\/company\/pixonic\/blog\/413729\/\">\u0441\u0445\u0435\u043c\u0435 \u0432\u044b\u0448\u0435<\/a> \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c Player, \u0435\u0451 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438 \u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0435, \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441 \u0438\u0433\u0440\u043e\u043a\u043e\u043c \u0438 \u0435\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c\u0438. \u041a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c \u043d\u0430 \u0441\u0445\u0435\u043c\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u0433\u0440\u043e\u043a: \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435 \u2014 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b Transform \u0438 Movement, \u0441\u0438\u0441\u0442\u0435\u043c\u0430 MoveSystem; \u0438\u043c\u0435\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f \u0438 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0433\u0438\u0431\u043d\u0443\u0442\u044c \u2014 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 Health, Damage, \u0441\u0438\u0441\u0442\u0435\u043c\u0430 DamageSystem; \u043f\u043e\u0441\u043b\u0435 \u0441\u043c\u0435\u0440\u0442\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0442\u043e\u0447\u043a\u0435 \u0432\u043e\u0437\u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f (respawn) \u2014 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 Transform \u0434\u043b\u044f \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0441\u0438\u0441\u0442\u0435\u043c\u0430 RespawnSystem; \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0443\u044f\u0437\u0432\u0438\u043c\u044b\u043c \u2014 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 Invincible.<\/i><\/p>\n<h2>\u0412 \u0447\u0451\u043c \u0436\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0444\u0438\u0437\u0438\u043a\u0438 \u0434\u043b\u044f \u0448\u0443\u0442\u0435\u0440\u043e\u0432?<\/h2>\n<p>  \u0412 \u043d\u0430\u0448\u0435\u0439 \u0438\u0433\u0440\u0435 \u043d\u0435\u0442 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439, \u043d\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0440\u044f\u0434 \u0432\u0435\u0449\u0435\u0439, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0434\u0432\u0438\u0436\u043e\u043a \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u043d\u0443\u0436\u0435\u043d. \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043c\u044b \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 \u0432 \u043c\u0438\u0440\u0435 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0437\u0430\u043a\u043e\u043d\u0430\u043c\u0438. \u041e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0443\u0442\u0451\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0442\u0435\u043b\u0443 \u043d\u0435\u043a\u043e\u0435\u0433\u043e \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 \u0438\u043b\u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u0430 Simulate\/Update \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0432\u0441\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0432 \u043d\u0435\u0439 \u0442\u0435\u043b\u0430 \u0441\u0438\u043c\u0443\u043b\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0440\u043e\u0432\u043d\u043e \u043d\u0430 \u043e\u0434\u0438\u043d \u0448\u0430\u0433 \u0432\u043f\u0435\u0440\u0451\u0434.<\/p>\n<p>  \u0412 \u0448\u0443\u0442\u0435\u0440\u0430\u0445 3D-\u0444\u0438\u0437\u0438\u043a\u0443 \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0439 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430, \u043d\u043e \u0438 \u0434\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0431\u0430\u043b\u043b\u0438\u0441\u0442\u0438\u043a\u0438 \u043f\u0443\u043b\u044c \u0438 \u0440\u0430\u043a\u0435\u0442, \u043f\u0440\u044b\u0436\u043a\u043e\u0432, \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u0439 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c \u0438 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435\u043c. \u0415\u0441\u043b\u0438 \u0448\u0443\u0442\u0435\u0440 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u0435\u0442 \u043d\u0430 \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u043e\u0441\u0442\u044c \u0438 \u0441\u0442\u0440\u0435\u043c\u0438\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u043e\u0449\u0443\u0449\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0441\u0442\u0440\u0435\u043b\u044c\u0431\u044b, \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0434\u0432\u0438\u0436\u043e\u043a \u0435\u043c\u0443 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c. \u041a\u043e\u0433\u0434\u0430 \u0438\u0433\u0440\u043e\u043a \u0441\u0442\u0440\u0435\u043b\u044f\u0435\u0442 \u0438\u0437 \u0434\u0440\u043e\u0431\u043e\u0432\u0438\u043a\u0430 \u043f\u043e \u0446\u0435\u043b\u0438, \u043e\u043d \u043e\u0436\u0438\u0434\u0430\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u043f\u044b\u0442 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0445\u043e\u0436\u0438\u0439 \u043d\u0430 \u0442\u043e\u0442, \u0447\u0442\u043e \u0435\u043c\u0443 \u0443\u0436\u0435 \u0437\u043d\u0430\u043a\u043e\u043c \u043f\u043e \u043c\u043d\u043e\u0433\u043e\u043b\u0435\u0442\u043d\u0435\u0439 \u0438\u0433\u0440\u0435 \u0432 \u0448\u0443\u0442\u0435\u0440\u044b, \u2015 \u043d\u0435\u0447\u0442\u043e \u043a\u0430\u0440\u0434\u0438\u043d\u0430\u043b\u044c\u043d\u043e \u043d\u043e\u0432\u043e\u0435 \u0435\u0433\u043e \u0441 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u043e \u0443\u0434\u0438\u0432\u0438\u0442.<\/p>\n<p>  \u041d\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u0448\u0435\u0439 \u0438\u0433\u0440\u044b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0440\u044f\u0434 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0430\u0448 \u0448\u0443\u0442\u0435\u0440 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439, \u043e\u043d \u043d\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u0439 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c \u0438 \u0441 \u043e\u043a\u0440\u0443\u0436\u0430\u044e\u0449\u0438\u043c \u043c\u0438\u0440\u043e\u043c, \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043a\u0440\u0430\u0441\u0438\u0432\u043e\u0439 \u0431\u0430\u043b\u043b\u0438\u0441\u0442\u0438\u043a\u0438, \u0440\u0430\u0437\u0440\u0443\u0448\u0430\u0435\u043c\u043e\u0441\u0442\u0438, \u043f\u0440\u044b\u0436\u043a\u043e\u0432 \u043f\u043e \u043d\u0435\u0440\u043e\u0432\u043d\u043e\u0439 \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u0438. \u041d\u043e \u0432 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u0438 \u043f\u043e \u0442\u043e\u0439 \u0436\u0435 \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u0435\u0441\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u0436\u0435\u0441\u0442\u043a\u0438\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e \u0442\u0440\u0430\u0444\u0438\u043a\u0443. 3D-\u0444\u0438\u0437\u0438\u043a\u0430 \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u044b\u043b\u0430 \u0431\u044b \u0438\u0437\u043b\u0438\u0448\u043d\u0435\u0439: \u043e\u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0430 \u0431\u044b \u043b\u0438\u0448\u044c \u043c\u0430\u043b\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0441\u0432\u043e\u0438\u0445 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 \u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0439 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u043f\u043e UDP \u0437\u0430\u043d\u0438\u043c\u0430\u043b\u0438 \u0431\u044b \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430. \u0422\u0443\u0442 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c, \u0447\u0442\u043e \u0432 \u043d\u0430\u0448\u0435\u0439 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0435\u0449\u0451 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0442\u0430\u043a\u0438\u0435 \u0432\u0435\u0449\u0438, \u043a\u0430\u043a <a href=\"https:\/\/habr.com\/ru\/company\/pixonic\/blog\/415959\/\">Prediction \u0438 Reconciliation<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0442 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0440\u0430\u0441\u0447\u0451\u0442\u043e\u0432 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c, \u0447\u0442\u043e \u043d\u0430\u0448\u0430 \u0444\u0438\u0437\u0438\u043a\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445, \u043d\u0435 \u043c\u0435\u0448\u0430\u044f \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0440\u0435\u043d\u0434\u0435\u0440\u0443 \u0438 \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0430.<\/p>\n<p>  \u0418\u0442\u0430\u043a, 3D-\u0444\u0438\u0437\u0438\u043a\u0430 \u043d\u0430\u043c \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u043b\u0430. \u041d\u043e \u0437\u0434\u0435\u0441\u044c \u0441\u0442\u043e\u0438\u0442 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0438\u0433\u0440\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u0442\u0440\u0451\u0445\u043c\u0435\u0440\u043d\u0430\u044f, \u043d\u0435 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u0444\u0438\u0437\u0438\u043a\u0430 \u0432 \u043d\u0435\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0442\u043e\u0436\u0435 \u0442\u0440\u0451\u0445\u043c\u0435\u0440\u043d\u0430\u044f: \u0432\u0441\u0451 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c. \u0417\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u044d\u0444\u0444\u0435\u043a\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043a\u0440\u044b\u0442\u044c 2D-\u0444\u0438\u0437\u0438\u043a\u043e\u0439, \u043b\u0438\u0431\u043e \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u2015 \u0442\u043e \u0435\u0441\u0442\u044c, \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u043b\u043e\u0433\u0438\u043a\u0430, \u0432\u043d\u0435\u0448\u043d\u0435 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0449\u0430\u044f \u0442\u0440\u0451\u0445\u043c\u0435\u0440\u043d\u044b\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u2015 \u043b\u0438\u0431\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043d\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u044b, \u043d\u0435 \u0432\u043b\u0438\u044f\u044e\u0449\u0438\u0435 \u043d\u0430 \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u0439. \u0412 Heroes of the Storm, Defense of the Ancients, League of Legends \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u0430\u044f \u0444\u0438\u0437\u0438\u043a\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0430 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u0439\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0438\u0433\u0440\u044b, \u043d\u0435 \u0432\u043b\u0438\u044f\u044f \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u043e \u043d\u0430 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0438\u043b\u0438 \u043e\u0449\u0443\u0449\u0435\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u0434\u043e\u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0433\u0435\u0439\u043c\u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u0430\u043c\u0438 \u0438 \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u0430\u043c\u0438 \u043c\u0438\u0440\u0430. \u0422\u0430\u043a, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u044d\u0442\u0438\u0445 \u0438\u0433\u0440\u0430\u0445 \u0435\u0441\u0442\u044c \u043f\u0440\u044b\u0433\u0430\u044e\u0449\u0438\u0435 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0438, \u043d\u043e \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u043c\u044b\u0441\u043b\u0430 \u0432 \u0432\u044b\u0441\u043e\u0442\u0435 \u0438\u0445 \u043f\u0440\u044b\u0436\u043a\u0430 \u043d\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u0451 \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u043e\u0439 \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0438 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043a\u0430\u043a\u043e\u0433\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0444\u043b\u0430\u0433\u0430 \u0432\u0438\u0434\u0430 _isInTheAir, \u043a\u043e\u0433\u0434\u0430 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0432\u043e\u0437\u0434\u0443\u0445\u0435, \u2015 \u043e\u043d \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0440\u0430\u0441\u0447\u0451\u0442\u0435 \u043b\u043e\u0433\u0438\u043a\u0438.<\/p>\n<p>  \u0422\u0430\u043a \u0431\u044b\u043b\u043e \u0440\u0435\u0448\u0435\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c 2D-\u0444\u0438\u0437\u0438\u043a\u0443. \u0418\u0433\u0440\u0443 \u043c\u044b \u043f\u0438\u0448\u0435\u043c \u043d\u0430 Unity, \u043d\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Unity-less .net, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f\u0437\u044b\u043a Unity \u043d\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043b\u044c\u0432\u0438\u043d\u0430\u044f \u0434\u043e\u043b\u044f \u043a\u043e\u0434\u0430 \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0438 \u043f\u043e\u0448\u0430\u0440\u0435\u043d\u0430 \u043c\u0435\u0436\u0434\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c, \u043c\u044b \u0441\u0442\u0430\u043b\u0438 \u043f\u043e\u0434\u044b\u0441\u043a\u0438\u0432\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0435 \u2015 \u0430 \u0438\u043c\u0435\u043d\u043d\u043e, \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u0443\u044e \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c C# \u0431\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u043a\u0440\u0430\u0448\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044f \u0432\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 <a href=\"https:\/\/habr.com\/ru\/company\/pixonic\/blog\/415959\/\">\u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0443 \u0440\u0430\u0431\u043e\u0442\u044b \u0448\u0443\u0442\u0435\u0440\u043e\u0432<\/a>, \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u2015 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441 \u0446\u0435\u043b\u044c\u044e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f, \u043a\u0443\u0434\u0430 \u0441\u0442\u0440\u0435\u043b\u044f\u043b \u0438\u0433\u0440\u043e\u043a, \u043d\u0430\u043c \u0431\u044b\u043b\u043e \u0432\u0430\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043c\u043e\u0433\u043b\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0438\u0441\u0442\u043e\u0440\u0438\u0435\u0439 \u2015 \u0442\u043e \u0435\u0441\u0442\u044c, \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0434\u0451\u0448\u0435\u0432\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0442\u0435\u043b N \u043a\u0430\u0434\u0440\u043e\u0432 \u043d\u0430\u0437\u0430\u0434 \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0418, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0437\u0430\u0431\u0440\u043e\u0448\u0435\u043d\u043d\u044b\u043c: \u0432\u0430\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0430\u0432\u0442\u043e\u0440 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u043b \u0435\u0433\u043e \u0438 \u043c\u043e\u0433 \u0431\u044b\u0441\u0442\u0440\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0431\u0430\u0433\u0438, \u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0432\u044b\u0435 \u043d\u0430\u0439\u0434\u0443\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438. <\/p>\n<p>  \u041a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u043d\u0430 \u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u043c\u043e\u0433\u043b\u0438 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u044c \u043d\u0430\u0448\u0438\u043c \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c. \u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043d\u0430\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u043b\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0430 \u2015 <a href=\"https:\/\/github.com\/ashoulson\/VolatilePhysics\">VolatilePhysics<\/a>.<\/p>\n<p>  \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0430 \u0442\u0435\u043c, \u0447\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u0441 Unity, \u0442\u0430\u043a \u0438 \u0441 Unity-less \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0435\u0439\u043a\u0430\u0441\u0442\u044b \u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438, \u0442.\u0435. \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u043b\u043e\u0433\u0438\u043a\u0438 \u0448\u0443\u0442\u0435\u0440\u043e\u0432. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0438 Simulate() \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0435\u0451 \u0432 \u043b\u044e\u0431\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0443. \u0418 \u0435\u0449\u0451 \u043e\u0434\u043d\u0430 \u0444\u0438\u0448\u043a\u0430 \u2015 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0442\u0435\u043b\u043e. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u043f\u0440\u0438 \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0438\u0437 \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0438 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u0445 \u0440\u0435\u0439\u043a\u0430\u0441\u0442\u043e\u0432 \u2015 \u043f\u0440\u0430\u0432\u0434\u0430, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u0438\u043b\u044c\u043d\u043e \u0441\u043d\u0438\u0436\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c.<\/p>\n<p>  \u0421\u0434\u0435\u043b\u0430\u0432 \u043f\u0430\u0440\u0443 \u0442\u0435\u0441\u0442\u043e\u0432 \u0438 \u0443\u0431\u0435\u0434\u0438\u0432\u0448\u0438\u0441\u044c, \u0447\u0442\u043e \u043a\u043b\u0438\u0435\u043d\u0442 \u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u0445\u043e\u0440\u043e\u0448\u043e \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0442 \u0441 VolatilePhysics \u0431\u0435\u0437 \u043f\u0430\u0434\u0435\u043d\u0438\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043c\u044b \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0441\u0432\u043e\u0439 \u0432\u044b\u0431\u043e\u0440 \u043d\u0430 \u043d\u0435\u0439. <\/p>\n<h2>\u041a\u0430\u043a \u043c\u044b \u0432\u043f\u0438\u0441\u0430\u043b\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0432 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0440\u0430\u0431\u043e\u0442\u044b \u0441 ECS \u0438 \u0447\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u0448\u043b\u043e<\/h2>\n<p>  \u041f\u0435\u0440\u0432\u044b\u043c \u0448\u0430\u0433\u043e\u043c \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 VolatilePhysics \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u0438\u0440\u0430 VoltWorld. \u041e\u043d \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0437 \u0441\u0435\u0431\u044f \u043f\u0440\u043e\u043a\u0441\u0438-\u043a\u043b\u0430\u0441\u0441, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430: \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430, \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0431 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u0445, \u0440\u0435\u0439\u043a\u0430\u0441\u0442\u044b \u0438 \u0442. \u0434. \u041c\u044b \u043e\u0431\u0435\u0440\u043d\u0443\u043b\u0438 \u0435\u0433\u043e \u0432 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0441\u0430\u0434, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043d\u0430 \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0434\u0440\u0443\u0433\u043e\u0435. \u041a\u043e\u0434 \u0444\u0430\u0441\u0430\u0434\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u0442\u0430\u043a:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u0434<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">public sealed class PhysicsWorld {     public const int HistoryLength = 32;     private readonly VoltWorld _voltWorld;     private readonly Dictionary&lt;uint, VoltBody&gt; _cache = new Dictionary&lt;uint, VoltBody&gt;();      public PhysicsWorld(float deltaTime)     {         _voltWorld = new VoltWorld(HistoryLength) { DeltaTime = deltaTime };     }      public bool HasBody(uint tag)     {         return _cache.ContainsKey(tag);     }      public VoltBody GetBody(uint tag)     {         VoltBody body;         _cache.TryGetValue(tag, out body);         return body;     }      public VoltRayResult RayCast(Vector2 origin, Vector2 direction, float distance, VoltBodyFilter filter, int ticksBehind)     {         var ray = new VoltRayCast(origin, direction.normalized, distance);         var result = new VoltRayResult();          _voltWorld.RayCast(ref ray, ref result, filter, ticksBehind);         return result;     }      public VoltRayResult CircleCast(Vector2 origin, Vector2 direction, float distance, float radius, VoltBodyFilter filter, int ticksBehind)     {         var ray = new VoltRayCast(origin, direction.normalized, distance);         var result = new VoltRayResult();          _voltWorld.CircleCast(ref ray, radius, ref result, filter, ticksBehind);          return result;     }      public void Update()     {         _voltWorld.Update();     }      public void Update(uint tag)     {         var body = _cache[tag];         _voltWorld.Update(body, true);     }      public void UpdateBody(uint tag, Vector2 position, float angle)     {         var body = _cache[tag];         body.Set(position, angle);     }      public void CreateStaticCircle(Vector2 origin, float radius, uint tag)     {         var shape = _voltWorld.CreateCircleWorldSpace(origin, radius, 1f, 0f, 0f);         var body = _voltWorld.CreateStaticBody(origin, 0, shape);         body.UserData = tag;     }      public void CreateDynamicCircle(Vector2 origin, float radius, uint tag)     {         var shape = _voltWorld.CreateCircleWorldSpace(origin, radius, 1f, 0f, 0f);         var body = _voltWorld.CreateDynamicBody(origin, 0, shape);         body.UserData = tag;         body.CollisionFilter = StaticCollisionFilter;         _cache.Add(tag, body);     }      public void CreateStaticSquare(Vector2 origin, float rotationAngle, Vector2 extents, uint tag)     {         var shape = _voltWorld.CreatePolygonBodySpace(extents.GetRectFromExtents(), 1, 0, 0);         var body = _voltWorld.CreateStaticBody(origin, rotationAngle, shape);         body.UserData = tag;     }      public void CreateDynamicSquare(Vector2 origin, float rotationAngle, Vector2 extents, uint tag)     {         var shape = _voltWorld.CreatePolygonBodySpace(extents.GetRectFromExtents(), 1, 0, 0);         var body = _voltWorld.CreateDynamicBody(origin, rotationAngle, shape);         body.UserData = tag;         body.CollisionFilter = StaticCollisionFilter;         _cache.Add(tag, body);     }      public IEnumerable&lt;VoltBody&gt; GetBodies()     {         return _voltWorld.Bodies;     }      private static bool StaticCollisionFilter(VoltBody a, VoltBody b)     {         return b.IsStatic;     } }<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043c\u0438\u0440\u0430 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u2015 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439 \u043c\u0438\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0445 \u0447\u0438\u0441\u043b\u043e \u0440\u0430\u0432\u043d\u044f\u043b\u043e\u0441\u044c 32: 30 \u043a\u0430\u0434\u0440\u043e\u0432 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0438\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044e \u043b\u043e\u0433\u0438\u043a\u0438 \u0438 \u0435\u0449\u0451 2 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439, \u0435\u0441\u043b\u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u043c\u044b \u0432\u044b\u0439\u0434\u0435\u043c \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u0438\u0441\u0442\u043e\u0440\u0438\u0438. \u0412 \u043a\u043e\u0434\u0435 \u0442\u0430\u043a\u0436\u0435 \u0443\u0447\u0442\u0435\u043d\u044b \u043f\u0440\u043e\u043a\u0438\u043d\u0443\u0442\u044b\u0435 \u043d\u0430\u0440\u0443\u0436\u0443 \u043c\u0435\u0442\u043e\u0434\u044b, \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u044e\u0449\u0438\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0442\u0435\u043b\u0430, \u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u0440\u0435\u0439\u043a\u0430\u0441\u0442\u044b.<\/p>\n<p>  \u041a\u0430\u043a \u043c\u044b \u043f\u043e\u043c\u043d\u0438\u043c \u0438\u0437 <a href=\"https:\/\/habr.com\/ru\/company\/pixonic\/blog\/429312\/\">\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439<\/a>, \u043c\u0438\u0440 ECS \u043f\u043e \u0441\u0443\u0442\u0438 \u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432\u043e\u043a\u0440\u0443\u0433 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 Execute \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0432 \u043d\u0435\u0433\u043e \u0441\u0438\u0441\u0442\u0435\u043c. \u0412 \u043d\u0443\u0436\u043d\u044b\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0432\u044b\u0437\u043e\u0432\u044b \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u0444\u0430\u0441\u0430\u0434\u0443. \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043c\u044b \u043d\u0435 \u043f\u0438\u0441\u0430\u043b\u0438 \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u0431\u0430\u0442\u0447\u0438\u043d\u0433\u0430 \u043a \u0432\u044b\u0437\u043e\u0432\u0443 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430, \u0445\u043e\u0442\u044f \u0442\u0430\u043a\u0438\u0435 \u043c\u044b\u0441\u043b\u0438 \u0431\u044b\u043b\u0438. \u0412\u043d\u0443\u0442\u0440\u0438 \u0444\u0430\u0441\u0430\u0434\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432\u044b\u0437\u043e\u0432 Update() \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u0438\u0440\u0430, \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441\u0438\u043c\u0443\u043b\u0438\u0440\u0443\u0435\u0442 \u0432\u0441\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u0435\u0434\u0448\u0438\u0435 \u0437\u0430 \u043a\u0430\u0434\u0440.<\/p>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0444\u0438\u0437\u0438\u043a\u043e\u0439 \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u0434\u0432\u0443\u043c \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u043c: \u043a \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u043c\u0443 \u043f\u0435\u0440\u0435\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044e \u0442\u0435\u043b \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435 \u0437\u0430 \u043e\u0434\u0438\u043d \u043a\u0430\u0434\u0440 \u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0443 \u0440\u0435\u0439\u043a\u0430\u0441\u0442\u043e\u0432, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0434\u043b\u044f \u0441\u0442\u0440\u0435\u043b\u044c\u0431\u044b, \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u0432 \u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0435\u0449\u0435\u0439. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b \u0440\u0435\u0439\u043a\u0430\u0441\u0442\u044b \u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u0435\u043b.<\/p>\n<p>  \u041f\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c \u043d\u0430\u0448\u0438\u0445 \u0442\u0435\u0441\u0442\u043e\u0432 \u043c\u044b \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u043d\u044f\u043b\u0438, \u0447\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043e\u0447\u0435\u043d\u044c \u043f\u043b\u043e\u0445\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044f\u043c\u0438, \u0438 \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0442\u0435\u043b\u0430 \u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0441\u043a\u0432\u043e\u0437\u044c \u0441\u0442\u0435\u043d\u044b. \u041d\u0430\u0441\u0442\u0440\u043e\u0435\u043a, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 continuous collision detection, \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0432 \u043d\u0430\u0448\u0435\u043c \u0434\u0432\u0438\u0436\u043a\u0435 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e \u043d\u0435 \u0431\u044b\u043b\u043e. \u041d\u043e \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432 \u043d\u0430\u0448\u0435\u043c\u0443 \u0440\u0435\u0448\u0435\u043d\u0438\u044e \u043d\u0430 \u0440\u044b\u043d\u043a\u0435 \u043d\u0430 \u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u0435\u0440\u0435\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043f\u043e \u043c\u0438\u0440\u0443 \u0438 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0444\u0438\u0437\u0438\u043a\u0438 \u0441 ECS. \u0422\u0430\u043a, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u0448 \u043a\u043e\u0434 \u0434\u043b\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u0434<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">using System; ... using Volatile;  public sealed class MovePhysicsSystem : ExecutableSystem {     private readonly PhysicsWorld _physicsWorld;     private readonly CollisionFilter _moveFilter;     private readonly VoltBodyFilter _collisionFilterDelegate;      public MovePhysicsSystem(PhysicsWorld physicsWorld)     {         _physicsWorld = physicsWorld;         _moveFilter = new CollisionFilter(true, CollisionLayer.ExplosiveBarrel);         _collisionFilterDelegate = _moveFilter.Filter;     }      public override void Execute(GameState gs)     {         _moveFilter.State = gs;         foreach (var pair in gs.WorldState.Movement)         {             ExecuteMovement(gs, pair.Key, pair.Value);         }          _physicsWorld.Update();         foreach (var pair in gs.WorldState.PhysicsDynamicBody)         {             if(pair.Value.IsAlive)             {                 ExecutePhysicsDynamicBody(gs, pair.Key);             }         }     }      public override void Execute(GameState gs, uint avatarId)     {         _moveFilter.State = gs;         var movement = gs.WorldState.Movement[avatarId];         if (movement != null)         {             ExecuteMovement(gs, avatarId, movement);              _physicsWorld.Update(avatarId);             var physicsDynamicBody = gs.WorldState.PhysicsDynamicBody[avatarId];             if (physicsDynamicBody != null &amp;&amp; physicsDynamicBody.IsAlive)                 ExecutePhysicsDynamicBody(gs, avatarId);         }      }      private void ExecutePhysicsDynamicBody(GameState gs, uint entityId)     {         var body = _physicsWorld.GetBody(entityId);         if (body != null)         {             var transform = gs.WorldState.Transform[entityId];             transform.Position = body.Position;         }     }      private void ExecuteMovement(GameState gs, uint entityId, Movement movement)     {         var body = _physicsWorld.GetBody(entityId);          if (body != null)         {             float raycastRadius;             if (CalculateRadius(gs, entityId, out raycastRadius))             {                 return;             }              body.AngularVelocity = 0;             body.LinearVelocity = movement.Velocity;             var movPhysicInfo = gs.WorldState.MovementPhysicInfo[entityId];             var collisionDirection = CircleRayCastSpeedCorrection(body, GameState.TickDurationSec, raycastRadius);             CheckMoveInWall(movement, movPhysicInfo, collisionDirection, gs.WorldState.Transform[entityId]);         }     }      private static bool CalculateRadius(GameState gs, uint id, out float raycastRadius)     {         raycastRadius = 0;         var circleShape = gs.WorldState.DynamicCircleCollider[id];         if (circleShape != null)         {             raycastRadius = circleShape.Radius;         }         else         {             var boxShape = gs.WorldState.DynamicBoxCollider[id];             if (boxShape != null)             {                 raycastRadius = boxShape.RaycastRadius;             }             else             {                 gs.Log.Error(string.Format(\"Physics body {0} doesn't contains shape!\", id));                 return true;             }         }         return false;     }      private static void CheckMoveInWall(Movement movement, MovementPhysicInfo movPhysicInfo,         Vector2 collisionDirection, Transform transform)     {         \/\/ 60 is the max angle when player move in wall and can shoot through the wall from weapon without target.         const float maxAngleToWall = 60;          if (movement.Velocity.IsEqual(Vector2.zero))         {             if (movPhysicInfo.LastCollisionDirection.IsEqual(Vector2.zero))             {                 var angleToCollision = transform.Angle.GetDirection().CalculateAbsoluteAngleInDegrees(movPhysicInfo.LastCollisionDirection);                 movPhysicInfo.TurnOnWall = angleToCollision &lt;= maxAngleToWall;             }             return;         }          movPhysicInfo.LastCollisionDirection = collisionDirection * -1f;         if (movPhysicInfo.LastCollisionDirection.IsEqual(Vector2.zero))         {             movPhysicInfo.TurnOnWall = false;             movPhysicInfo.LastCollisionDirection = collisionDirection;         }         else         {             var angleToCollision = transform.Angle.GetDirection().CalculateAbsoluteAngleInDegrees(movPhysicInfo.LastCollisionDirection);             movPhysicInfo.TurnOnWall = angleToCollision &lt;= maxAngleToWall;         }     }      \/\/ I can't believe we are using a physics engine and have to write such kludges     private Vector2 CircleRayCastSpeedCorrection(VoltBody targetBody, float deltaSeconds, float rayCastRadius)     {         if (rayCastRadius &lt;= 0)         {             return Vector2.zero;         }          var speed = targetBody.LinearVelocity;         var position = targetBody.Position;          var direction = speed * deltaSeconds;          var rayCastResult = _physicsWorld.CircleCast(position + direction.normalized * 0.1f, direction, direction.magnitude, rayCastRadius, _collisionFilterDelegate, 0);          if (rayCastResult.Body == null)         {             return Vector2.zero;         }           var magSpeed = speed.magnitude;          if (rayCastResult.Distance &gt; 0)         {             var penetratingDistance = magSpeed * deltaSeconds - rayCastResult.Distance;             var sinVelocityEdge = Vector2.Dot(-speed.normalized, rayCastResult.Normal);              var biasSpeed = penetratingDistance * sinVelocityEdge \/ deltaSeconds;             var biasVector = rayCastResult.Normal * biasSpeed * 1.1f;              var resultVelocity = speed + biasVector;              if (magSpeed &lt;= 0)             {                 resultVelocity = Vector2.zero;             }             targetBody.LinearVelocity = resultVelocity;             return rayCastResult.Normal;         }          var destination = rayCastResult.Body.Position;         direction = destination - position;          var rayCastResultToBody =             _physicsWorld.RayCast(position, direction, direction.magnitude, _collisionFilterDelegate, 0);          if (rayCastResultToBody.IsValid)             targetBody.LinearVelocity = rayCastResultToBody.Normal * magSpeed * deltaSeconds;          return rayCastResultToBody.Normal;     } }<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0418\u0434\u0435\u044f \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0434 \u043a\u0430\u0436\u0434\u044b\u043c \u0445\u043e\u0434\u043e\u043c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c <a href=\"https:\/\/docs.unity3d.com\/ScriptReference\/Physics2D.CircleCast.html\">CircleCast<\/a> \u043f\u043e \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044e \u0435\u0433\u043e \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0441 \u0446\u0435\u043b\u044c\u044e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f, \u0435\u0441\u0442\u044c \u043b\u0438 \u043f\u0435\u0440\u0435\u0434 \u043d\u0438\u043c \u043f\u0440\u0435\u043f\u044f\u0442\u0441\u0442\u0432\u0438\u0435. CircleCast \u043d\u0443\u0436\u0435\u043d \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u0440\u043e\u0435\u043a\u0446\u0438\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u0439 \u0432 \u0438\u0433\u0440\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043a\u0440\u0443\u0433, \u0438 \u043c\u044b \u043d\u0435 \u0445\u043e\u0442\u0438\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0438 \u0437\u0430\u0441\u0442\u0440\u0435\u0432\u0430\u043b\u0438 \u0432 \u0443\u0433\u043b\u0430\u0445 \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u044f\u043c\u0438. \u0417\u0430\u0442\u0435\u043c \u043c\u044b \u0441\u0447\u0438\u0442\u0430\u0435\u043c \u043f\u0440\u0438\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0438 \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0443 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u0438\u0440\u0430 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0435\u0433\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0437\u0430 \u043e\u0434\u0438\u043d \u043a\u0430\u0434\u0440. \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0448\u0430\u0433\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u0430 \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0438 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430 Update(), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0432\u0438\u0433\u0430\u0435\u0442 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043d\u0430\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u043f\u043e\u043f\u0443\u0442\u043d\u043e \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044f \u0441\u0442\u0430\u0440\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u044e. \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0434\u0432\u0438\u0436\u043a\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0430\u0441\u044c, \u043c\u044b \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u044d\u0442\u0438 \u043f\u0440\u043e\u0441\u0438\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0438\u0445 \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 Transform \u043d\u0430\u0448\u0435\u0433\u043e ECS \u0438 \u0434\u0430\u043b\u0435\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0443\u0436\u0435 \u0441 \u043d\u0438\u043c\u0438, \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u2015 \u0440\u0430\u0441\u0441\u044b\u043b\u0430\u0435\u043c \u0438\u0445 \u043f\u043e \u0441\u0435\u0442\u0438.<\/p>\n<p>  \u0422\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0432 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0444\u0438\u0437\u0438\u043a\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u0435\u043c\u044b\u043c\u0438 \u043f\u043e\u0440\u0446\u0438\u044f\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u043c \u043f\u0440\u0438 \u0431\u043e\u0440\u044c\u0431\u0435 \u0441 \u0440\u0430\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f\u043c\u0438 \u0444\u0438\u0437\u0438\u043a\u0438 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0418 \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0430\u0448\u0430 \u0444\u0438\u0437\u0438\u043a\u0430 \u043d\u0435 \u0434\u0435\u0442\u0435\u0440\u043c\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u2015 \u0442\u043e \u0435\u0441\u0442\u044c, \u043f\u0440\u0438 \u043e\u0434\u043d\u0438\u0445 \u0438 \u0442\u0435\u0445 \u0436\u0435 \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0438 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f, \u2015 \u0431\u044b\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0443\u0441\u0441\u0438\u0439 \u043d\u0430 \u0442\u0435\u043c\u0443 \u0442\u043e\u0433\u043e, \u0441\u0442\u043e\u0438\u0442 \u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u0435\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u043b\u0438 \u043a\u0442\u043e-\u043b\u0438\u0431\u043e \u0432 \u0438\u043d\u0434\u0443\u0441\u0442\u0440\u0438\u0438 \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435, \u043d\u0435 \u0438\u043c\u0435\u044f \u043d\u0430 \u0440\u0443\u043a\u0430\u0445 \u0434\u0435\u0442\u0435\u0440\u043c\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u043c\u044b \u043d\u0430\u0448\u043b\u0438 \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0439 \u0434\u043e\u043a\u043b\u0430\u0434 \u043e\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 NetherRealm Studios \u043d\u0430 Game Developers Conference \u043e \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0439 \u0438\u0445 \u0438\u0433\u0440 \u0438 \u043f\u043e\u043d\u044f\u043b\u0438, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u043c\u0435\u0435\u0442 \u043c\u0435\u0441\u0442\u043e \u0431\u044b\u0442\u044c. \u0421\u043e\u0431\u0440\u0430\u0432 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0438 \u043f\u0440\u043e\u0433\u043d\u0430\u0432 \u0435\u0451 \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0442\u0435\u0441\u0442\u0430\u0445, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 50 \u043b\u0436\u0435-\u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0437\u0430 9000 \u0442\u0438\u043a\u043e\u0432, \u0442. \u0435. \u0437\u0430 \u0432\u0440\u0435\u043c\u044f \u043f\u044f\u0442\u0438\u043c\u0438\u043d\u0443\u0442\u043d\u043e\u0433\u043e \u0431\u043e\u044f. \u0422\u0430\u043a\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u043c\u0430\u0445\u043e\u0432 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u043b\u0435\u0433\u043a\u043e \u043d\u0438\u0432\u0435\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u043c Reconciliation \u0438 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u0435\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0438\u0433\u0440\u043e\u043a\u0430. \u041e\u0448\u0438\u0431\u043a\u0438, \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0449\u0438\u0435 \u043f\u0440\u0438 \u0447\u0430\u0441\u0442\u043e\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0444\u0438\u0437\u0438\u043a\u0438 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u2015 \u043e\u043d\u0430 \u043d\u0443\u0436\u043d\u0430 \u043b\u0438\u0448\u044c \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u043e \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043a\u0430\u0447\u043a\u0430 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430.<\/p>\n<p>  \u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0432\u0438\u0434\u0430:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u0434<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">using PS.Logs.Unity;  \/\/\/ &lt;summary&gt; \/\/\/ Compares the same avatar in two states. Compares the values potentially \/\/\/ affected by prediction. \/\/\/ &lt;\/summary&gt; public sealed class GameStateComparer : IGameStateComparer {     public bool IsSame(GameState s1, GameState s2, uint avatarId)     {         if (s1 == null &amp;&amp; s2 != null ||             s1 != null &amp;&amp; s2 == null)         {             return false;         }          if (s1 == null &amp;&amp; s2 == null)             return false;          var entity1 = s1.WorldState[avatarId];         var entity2 = s2.WorldState[avatarId];          if (entity1 == null &amp;&amp; entity2 == null)         {             return false;         }          if (entity1 == null || entity2 == null)         {             LogManager.Debug(\"entity is different\");             return false;         }          if (s1.Time != s2.Time)         {             LogManager.Warning(string.Format(\"Trying to compare states with different time! Predicted time: {0} Server time: {1}\",                  s1.Time, s2.Time));             return false;         }          if (s1.WorldState.Transform[avatarId] != s2.WorldState.Transform[avatarId])         {             LogManager.Debug(\"Transform is different\");             return false;         }                  \/\/ ... some code ...          return true;     } }<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043d\u043e \u043c\u044b \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u0441\u0442\u0430\u043b\u0438, \u0445\u043e\u0442\u044f \u0438 \u0434\u0443\u043c\u0430\u043b\u0438 \u043e\u0431 \u044d\u0442\u043e\u043c \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c.<\/p>\n<p>  \u041a\u043e\u0434 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u043e\u0432:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u0434<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">public static bool operator ==(Transform a, Transform b) {     if ((object)a == null &amp;&amp; (object)b == null)     {         return true;     }     if ((object)a == null &amp;&amp; (object)b != null)     {         return false;     }     if ((object)a != null &amp;&amp; (object)b == null)     {         return false;     }     if (Math.Abs(a.Angle - b.Angle) &gt; 0.01f)     {         return false;     }     if (Math.Abs(a.Position.x - b.Position.x) &gt; 0.01f || Math.Abs(a.Position.y - b.Position.y) &gt; 0.01f)     {         return false;     }     return true; }<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<h2>\u041f\u0435\u0440\u0432\u044b\u0435 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438<\/h2>\n<p>  \u041d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u043e \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0435\u0439 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f, \u043f\u043e\u043a\u0430 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0435\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 2D-\u043f\u043b\u043e\u0441\u043a\u043e\u0441\u0442\u044c, \u2015 \u0444\u0438\u0437\u0438\u043a\u0430 \u0432 \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u043e, \u043d\u043e \u0432 \u043e\u0434\u0438\u043d \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0440\u0438\u0448\u043b\u0438 \u0433\u0435\u0439\u043c\u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u044b \u0438 \u0441\u043a\u0430\u0437\u0430\u043b\u0438: \u00ab\u0425\u043e\u0442\u0438\u043c \u0433\u0440\u0430\u043d\u0430\u0442\u044b!\u00bb \u0418 \u043c\u044b \u043f\u043e\u0434\u0443\u043c\u0430\u043b\u0438, \u0447\u0442\u043e\u0431\u044b \u0441\u0438\u043b\u044c\u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043c\u0435\u043d\u044f\u0442\u044c, \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u0441\u044d\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c 3D-\u043f\u043e\u043b\u0435\u0442 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0442\u0435\u043b\u0430, \u0438\u043c\u0435\u044f \u043d\u0430 \u0440\u0443\u043a\u0430\u0445 \u0442\u043e\u043b\u044c\u043a\u043e 2D-\u0434\u0430\u043d\u043d\u044b\u0435. <\/p>\n<p>  \u0418 \u0432\u0432\u0435\u043b\u0438 \u043f\u043e\u043d\u044f\u0442\u0438\u0435 \u0432\u044b\u0441\u043e\u0442\u044b \u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432.<\/p>\n<p>  \u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0437\u0430\u043a\u043e\u043d \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432\u044b\u0441\u043e\u0442\u044b \u0441 \u0442\u0435\u0447\u0435\u043d\u0438\u0435\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u043b\u044f \u0431\u0440\u043e\u0448\u0435\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u043b\u0430, \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u043d\u0430 \u0443\u0440\u043e\u043a\u0430\u0445 \u0444\u0438\u0437\u0438\u043a\u0438 \u0432 \u0432\u043e\u0441\u044c\u043c\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u0435, \u0442\u0430\u043a \u0447\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e \u0431\u0430\u043b\u043b\u0438\u0441\u0442\u0438\u043a\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b\u043c. \u041d\u043e \u0443\u0436\u0435 \u043d\u0435 \u0441\u0442\u043e\u043b\u044c \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0441 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u044f\u043c\u0438. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u0441\u0435\u0431\u0435 \u044d\u0442\u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439: \u0433\u0440\u0430\u043d\u0430\u0442\u0430 \u043f\u0440\u0438 \u043f\u043e\u043b\u0451\u0442\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u0438\u043b\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u0442\u044c\u0441\u044f \u0441\u043e \u0441\u0442\u0435\u043d\u043e\u0439, \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u043b\u0435\u0442\u0435\u0442\u044c \u0435\u0451 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0441\u0432\u043e\u0435\u0439 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0432\u044b\u0441\u043e\u0442\u044b \u0438 \u0432\u044b\u0441\u043e\u0442\u044b \u0441\u0442\u0435\u043d\u044b. \u0420\u0435\u0448\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0431\u0443\u0434\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u043e\u043c \u043c\u0438\u0440\u0435, \u0433\u0434\u0435 \u0433\u0440\u0430\u043d\u0430\u0442\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u043a\u0440\u0443\u0433\u043e\u043c, \u0430 \u0441\u0442\u0435\u043d\u0430 \u2015 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u043e\u043c.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ej\/yr\/lk\/ejyrlkwa0tu9hm-3j7nobxmazpo.png\"><br \/>  <i>\u0412\u0438\u0434 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438.<\/i><\/p>\n<p>  \u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043c\u044b \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u043b\u0438 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0442\u0435\u043b\u0430 \u0433\u0440\u0430\u043d\u0430\u0442\u044b \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0438 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0442\u0435\u043b\u0430\u043c\u0438. \u042d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0446\u0435\u043b\u0438. \u0412 \u043d\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435 \u0433\u0440\u0430\u043d\u0430\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0443\u043c\u0435\u0442\u044c \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0441\u043a\u0432\u043e\u0437\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438 \u00ab\u043f\u0435\u0440\u0435\u043b\u0435\u0442\u0430\u0442\u044c\u00bb \u0441\u0442\u0435\u043d\u0443, \u043a\u043e\u0433\u0434\u0430 \u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0446\u0438\u0438 \u043d\u0430 \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u043e\u0439 \u043f\u043b\u043e\u0441\u043a\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u044e\u0442\u0441\u044f \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c. \u041f\u0440\u0438 \u043e\u0431\u044b\u0447\u043d\u043e\u043c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0438 \u0434\u0432\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0434\u0440\u0443\u0433 \u0441\u043a\u0432\u043e\u0437\u044c \u0434\u0440\u0443\u0433\u0430, \u0438 \u0432\u0441\u0451 \u0436\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0433\u0440\u0430\u043d\u0430\u0442\u044b \u0441 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0438 \u0432\u044b\u0441\u043e\u0442\u043e\u0439 \u043c\u044b \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043b\u0438 \u0435\u0439 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445. <\/p>\n<p>  \u041c\u044b \u0432\u0432\u0435\u043b\u0438 \u0434\u043b\u044f \u0433\u0440\u0430\u043d\u0430\u0442\u044b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 GrenadeMovement, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u0432\u0435\u043b\u0438 \u043f\u043e\u043d\u044f\u0442\u0438\u0435 \u0432\u044b\u0441\u043e\u0442\u044b:<\/p>\n<pre><code class=\"cs\">[Component] public class GrenadeMovement {    public float Height;    [DontPack]    public Vector2 Velocity;    [DontPack]    public float VerticalVelocity;     public GrenadeMovement(float height, Vector2 velocity, float verticalVelocity) { } }<\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0433\u0440\u0430\u043d\u0430\u0442\u0430 \u0438\u043c\u0435\u0435\u0442 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0443 \u0432\u044b\u0441\u043e\u0442\u044b, \u043e\u0434\u043d\u0430\u043a\u043e \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u043c\u0438\u0440\u0443 \u044d\u0442\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0430\u0451\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u0441\u0445\u0438\u0442\u0440\u0438\u0442\u044c \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435: \u0433\u0440\u0430\u043d\u0430\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u043b\u0435\u0442\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0435\u043d\u044b, \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0439 \u0432\u044b\u0441\u043e\u0442\u044b. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0432\u0441\u0451 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0439 \u0441\u0432\u0435\u043b\u043e\u0441\u044c \u043a \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0446\u0438\u0438 \u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0432\u044b\u0441\u043e\u0442\u044b \u0441\u0442\u0435\u043d\u044b \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u043b\u044f GrenadeMovement.Height. \u0415\u0441\u043b\u0438 \u0432\u044b\u0441\u043e\u0442\u0430 \u043f\u043e\u043b\u0451\u0442\u0430 \u0433\u0440\u0430\u043d\u0430\u0442\u044b \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u043d\u044c\u0448\u0435, \u043e\u043d\u0430 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043e \u0441\u0442\u0435\u043d\u043e\u0439, \u0438\u043d\u0430\u0447\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043f\u043e \u0441\u0432\u043e\u0435\u0439 \u0442\u0440\u0430\u0435\u043a\u0442\u043e\u0440\u0438\u0438, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438 \u0432 2D-\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435.<\/p>\n<p>  \u0412 \u043f\u0435\u0440\u0432\u043e\u0439 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438 \u0433\u0440\u0430\u043d\u0430\u0442\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0430\u0434\u0430\u043b\u0430 \u043f\u0440\u0438 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0438 \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u0439, \u043d\u043e \u0437\u0430\u0442\u0435\u043c \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0443\u043f\u0440\u0443\u0433\u0438\u0435 \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f, \u0438 \u043e\u043d\u0430 \u0441\u0442\u0430\u043b\u0430 \u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u0431\u044f \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435\u043e\u0442\u043b\u0438\u0447\u0438\u043c\u043e \u043e\u0442 \u0442\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0431\u044b \u0432 3D.<\/p>\n<p>  \u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u0440\u0430\u0441\u0447\u0451\u0442\u0430 \u0442\u0440\u0430\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0433\u0440\u0430\u043d\u0430\u0442\u044b \u0438 \u0443\u043f\u0440\u0443\u0433\u0438\u0445 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0439 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d \u043d\u0438\u0436\u0435:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u0434<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">using System; using Aftermath.Common.ECS; using Aftermath.Common.Physics; using Aftermath.Common.RuleBook; using Volatile;  namespace Aftermath.Common.WorldState {     public sealed class GrenadeMovementSystem : ExecutableSystem     {         private struct Projection         {             public float Min;             public float Max;         }          private float _r;          private readonly Vector2[] _vertices = new Vector2[4];         private readonly Vector2[] _verticesV = new Vector2[4];         private Vector2 _Vunit;         private Vector2 _VTunit;         private Projection _wallProj1;         private Projection _wallProj2;         private Projection _wallProj1V;         private Projection _wallProj2V;          private const float CollisionPrecision = 1e-3f;         private static readonly float HalfSlope = Mathf.Cos(Mathf.PI \/ 4.0f);          private readonly ContactPointList _contactPoints = new ContactPointList(3);          public override void Execute(GameState gs)         {             var settings = gs.RuleBook.GrenadeConfig[1];             _r = settings.R;              var floorDampeningPerTick = (float)Math.Pow(settings.FloorDampening, 1.0 \/ GameState.Hz);              foreach (var grenade in gs.WorldState.GrenadeMovement)             {                 \/\/ Gravity must take effect before collision                 \/\/ because contact with walls may and will adjust vertical velocity                 \/\/ and penetration will even move the ball up.                 grenade.Value.VerticalVelocity -= settings.Gravity * GameState.TickDurationSec;                 grenade.Value.Height += grenade.Value.VerticalVelocity * GameState.TickDurationSec;                 \/\/ prevent falling through floor                 if (grenade.Value.Height &lt;= _r)                 {                     \/\/ slow down horizontal movement by floor friction                     \/\/ actually, friciton is simplified to just dampening coefficient                     var spdH = grenade.Value.Velocity.sqrMagnitude;                     var spdV = grenade.Value.VerticalVelocity;                     var cos = spdH \/ Mathf.Sqrt(spdH * spdH + spdV * spdV);                     grenade.Value.Velocity *= floorDampeningPerTick * cos;                      \/\/ slow down vertical movement                     grenade.Value.VerticalVelocity = settings.FloorRestitution * Math.Abs(grenade.Value.VerticalVelocity);                      \/\/ move up to the floor level                     grenade.Value.Height = _r;                 }                  \/\/ A collision will stop the ball and change its velocity.                 \/\/ Otherwise it will be moved by velocity                 PerformCollisionAndMovement(gs, grenade.Key, grenade.Value);             }         }          private void PerformCollisionAndMovement(GameState gs, uint id, GrenadeMovement grenade)         {             var settings = gs.RuleBook.GrenadeConfig[1];             var velocity = grenade.Velocity * GameState.TickDurationSec;              var trans = gs.WorldState.Transform[id];             var position = trans.Position;             _Vunit = velocity.normalized;             _VTunit = new Vector2(-_Vunit.y, _Vunit.x);              _vertices[0] = position + _VTunit * _r;             _vertices[1] = position - _VTunit * _r;             _vertices[2] = _vertices[1] + velocity;             _vertices[3] = _vertices[0] + velocity;              _contactPoints.Reset();              int collisions = 0;              var grenProj1V = ProjectCapsule(_Vunit, _vertices, position, velocity);             var grenProj2V = ProjectCapsule(_VTunit, _vertices, position, velocity);             collisions += CollideWithStaticBoxes(gs, id, position, velocity, grenade, grenProj1V, grenProj2V);             collisions += CollideWithCircles(gs, gs.RuleBook.StaticCircleCollider, gs.RuleBook.Transform, id, position, velocity, grenade, grenProj1V, grenProj2V, (CollisionLayer)~0);             collisions += CollideWithCircles(gs, gs.WorldState.DynamicCircleCollider, gs.WorldState.Transform, id, position, velocity, grenade, grenProj1V, grenProj2V, ~CollisionLayer.Character);              if (collisions == 0)             {                 trans.Position += velocity;             }             else             {                 var contactSuperposition = CalculateContactSuperposition();                  trans.Position += velocity * contactSuperposition.TravelDistance;                  var reflectedVelocity = grenade.Velocity - 2.0f * Vector2.Dot(grenade.Velocity, contactSuperposition.Normal) * contactSuperposition.Normal;                 reflectedVelocity *= settings.WallRestitution;  #if DEBUG_GRENADES                 gs.Log.Debug(\"contact\"                              + \"\\n\\ttravel \" + contactSuperposition.TravelDistance                              + \"\\n\\tcontactNormal \" + contactSuperposition.Normal.x + \":\" + contactSuperposition.Normal.y                              + \"\\n\\treflected V \" + reflectedVelocity.x + \":\" + reflectedVelocity.y); #endif                  grenade.Velocity = reflectedVelocity;             }         }          private int CollideWithStaticBoxes(             GameState gs,             uint id,             Vector2 position,             Vector2 velocity,             GrenadeMovement grenade,             Projection grenProj1V,             Projection grenProj2V)         {             var settings = gs.RuleBook.GrenadeConfig[1];             var collisions = 0;              \/\/ TODO spatial query             foreach (var collider in gs.RuleBook.StaticBoxCollider)             {                 var wall = collider.Value;                  var transform = gs.RuleBook.Transform[collider.Key];                 var colliderData = gs.RuleBook.PrecomputedColliderData[collider.Key];                  \/\/ test projection to V                 _wallProj1V = ProjectPolygon(_Vunit, colliderData.Vertices);                 if (!Overlap(_wallProj1V, grenProj1V)) continue;                  \/\/ test projection to VT                 _wallProj2V = ProjectPolygon(_VTunit, colliderData.Vertices);                 if (!Overlap(_wallProj2V, grenProj2V)) continue;                  \/\/ test projection to wall axis 1                 _wallProj1 = ProjectPolygon(colliderData.Axis1, colliderData.Vertices);                 var grenProj1 = ProjectCapsule(colliderData.Axis1, _vertices, position, velocity);                 if (!Overlap(_wallProj1, grenProj1)) continue;                  \/\/ test projection to wall axis 2                 _wallProj2 = ProjectPolygon(colliderData.Axis2, colliderData.Vertices);                 var grenProj2 = ProjectCapsule(colliderData.Axis2, _vertices, position, velocity);                 if (!Overlap(_wallProj2, grenProj2)) continue;                  var lowWall = wall.Height &lt; settings.TallWallHeight;                 if (lowWall)                 {                     \/\/ the wall is too far below, ignore it completely                     if (grenade.Height &gt; wall.Height + _r) continue;                      \/\/ if grenade if falling down, it can bounce off the top of the wall                     if (grenade.VerticalVelocity &lt; 0f)                     {                         if (grenade.Height &gt; wall.Height - _r)                         {                             var localPV = WorldToBoxLocal(transform.Position, colliderData, position + velocity);  #if DEBUG_GRENADES                             gs.Log.Debug(\"fall on wall\"                                          + \"\\n\\tP+V \" + (P.x + V.x) + \":\" + (P.y + V.y)                                          + \"\\n\\tlocal \" + localPV.x + \":\" + localPV.y                                          + \"\\n\\tH w \" + wall.Height + \" g \" + grenade.Height                             ); #endif                              if (Math.Abs(localPV.x) &lt; wall.Size.x * 0.5f || Math.Abs(localPV.y) &lt; wall.Size.y * 0.5f)                             {                                 grenade.Height = wall.Height + _r;                                 grenade.VerticalVelocity = settings.WallRestitution * Math.Abs(grenade.VerticalVelocity);                                 continue;                             }                         }                     }                 }                  \/\/ collision detected                  \/\/ try to find minimal V before collision                 var scaleV = CalcTranslationScaleBeforeCollision(CheckBoxCollision, colliderData, 0, position, velocity);                  var contactPoint = CalcBoxContactPoint(transform.Position, wall, colliderData, position);  #if DEBUG_GRENADES                 gs.Log.Debug(\"collision grenade #\" + id + \" with static box #\" + collider.Key                              + \"\\n\\tP=\" + P.x + \":\" + P.y                              + \"\\n\\tV=\" + V.x + \":\" + V.y + \" scale=\" + scaleV                              + \"\\n\\tP+Vs=\" + (P.x + V.x * scaleV) + \":\" + (P.y + V.y * scaleV)                              + \"\\n\\twall pos \" + transform.Position.x + \":\" + transform.Position.y + \" sz \" + wall.Size.x + \":\" + wall.Size.y + \" angle \" + transform.Angle                              + \"\\n\\tproj V  w \" + _wallProj1V.Min + \":\" + _wallProj1V.Max + \" g \" + grenProj1V.Min + \":\" + grenProj1V.Max + \" overlap=\" + Overlap(_wallProj1V, grenProj1V)                              + \"\\n\\tproj VT w \" + _wallProj2V.Min + \":\" + _wallProj2V.Max + \" g \" + grenProj2V.Min + \":\" + grenProj2V.Max + \" overlap=\" + Overlap(_wallProj2V, grenProj2V)                              + \"\\n\\taxis1 \" + colliderData.Axis1.x + \":\" + colliderData.Axis1.y                              + \"\\n\\tproj  1 w \" + _wallProj1.Min + \":\" + _wallProj1.Max + \" g \" + grenProj1.Min + \":\" + grenProj1.Max + \" overlap=\" + Overlap(_wallProj1, grenProj1)                              + \"\\n\\taxis2 \" + colliderData.Axis2.x + \":\" + colliderData.Axis2.y                              + \"\\n\\tproj  2 w \" + _wallProj2.Min + \":\" + _wallProj2.Max + \" g \" + grenProj2.Min + \":\" + grenProj2.Max + \" overlap=\" + Overlap(_wallProj2, grenProj2)                              + \"\\n\\tpoint \" + contactPoint.Point.x + \":\" + contactPoint.Point.y + \" dotV \" + Vector2.Dot(P - contactPoint.Point, V)                 ); #endif                  \/\/ ignore colliders that are behind                 if (Vector2.Dot(position - contactPoint.Point, velocity) &gt;= 0.0f) continue;                  contactPoint.TravelDistance = velocity.magnitude * scaleV;                 _contactPoints.Add(ref contactPoint);                  collisions++;             }              return collisions;         }          private bool CheckBoxCollision(PrecomputedColliderData colliderData, int x, Vector2 position, Vector2 velocity)         {             _verticesV[0] = _vertices[0];             _verticesV[1] = _vertices[1];             _verticesV[2] = _vertices[1] + velocity;             _verticesV[3] = _vertices[0] + velocity;              \/\/ test projection to V             var grenProj1V = ProjectCapsule(_Vunit, _verticesV, position, velocity);             if (!Overlap(_wallProj1V, grenProj1V)) return false;              \/\/ testing projection to VT would be redundant              \/\/ test projection to wall axis 1             var grenProj1 = ProjectCapsule(colliderData.Axis1, _verticesV, position, velocity);             if (!Overlap(_wallProj1, grenProj1)) return false;              \/\/ test projection to wall axis 2             var grenProj2 = ProjectCapsule(colliderData.Axis2, _verticesV, position, velocity);             if (!Overlap(_wallProj2, grenProj2)) return false;              return true;         }          private int CollideWithCircles(             GameState gs,             Table&lt;CircleCollider&gt; colliderTable,             Table&lt;Transform&gt; transformTable,             uint id,             Vector2 position,             Vector2 velocity,             GrenadeMovement grenade,             Projection grenProj1V,             Projection grenProj2V,             CollisionLayer collisionLayers)         {             var settings = gs.RuleBook.GrenadeConfig[1];             var collisions = 0;              foreach (var collider in colliderTable)             {                 if ((int)collisionLayers != ~0)                 {                     var body = gs.WorldState.PhysicsDynamicBody[collider.Key];                     if (body != null &amp;&amp; (body.CollisionLayer &amp; collisionLayers) == 0) continue;                 }                  var wall = collider.Value;                 var transform = transformTable[collider.Key];                  \/\/ test projection to V                 _wallProj1V = ProjectCircle(_Vunit, transform.Position, wall.Radius);                 if (!Overlap(_wallProj1V, grenProj1V)) continue;                  \/\/ test projection to VT                 _wallProj2V = ProjectCircle(_VTunit, transform.Position, wall.Radius);                 if (!Overlap(_wallProj2V, grenProj2V)) continue;                  \/\/ test distance from the circle wall to semicircles on capsule ends                 var collisionDistance = (_r + wall.Radius) * (_r + wall.Radius);                 if ((position - transform.Position).sqrMagnitude &gt; collisionDistance) continue;                 var distSqr = (position + velocity - transform.Position).sqrMagnitude;                 if (distSqr &gt; collisionDistance) continue;                  var lowWall = wall.Height &lt; settings.TallWallHeight;                 if (lowWall)                 {                     \/\/ the wall is too far below, ignore it completely                     if (grenade.Height &gt; wall.Height + _r) continue;                      \/\/ if grenade if falling down, it can bounce off the top of the wall                     if (grenade.VerticalVelocity &lt; 0f)                     {                         if (grenade.Height &gt; wall.Height - _r)                         { #if DEBUG_GRENADES                             gs.Log.Debug(\"grenade #\" + id + \" falls on wall\"                                          + \"\\n\\tP+V \" + (P.x + V.x) + \":\" + (P.y + V.y)                                          + \"\\n\\tdist \" + Mathf.Sqrt(distSqr)                                          + \"\\n\\tH w \" + wall.Height + \" g \" + grenade.Height                             ); #endif                              if (distSqr &lt; wall.Radius * wall.Radius)                             {                                 grenade.Height = wall.Height + _r;                                 grenade.VerticalVelocity = settings.WallRestitution * Math.Abs(grenade.VerticalVelocity);                                 continue;                             }                         }                     }                 }                  \/\/ collision detected                  \/\/ try to find minimal V before collision                 var scaleV = CalcTranslationScaleBeforeCollision(CheckCircleCollision, transform.Position, wall, position, velocity);                  var contactPoint = CalcCircleContactPoint(transform.Position, wall, position);  #if DEBUG_GRENADES                 gs.Log.Debug(\"collision grenade #\" + id + \" with circle #\" + collider.Key                              + \"\\n\\tP=\" + P.x + \":\" + P.y                              + \"\\n\\tV=\" + V.x + \":\" + V.y + \" scale=\" + scaleV                              + \"\\n\\tP+Vs=\" + (P.x + V.x * scaleV) + \":\" + (P.y + V.y * scaleV)                              + \"\\n\\tcircle pos \" + transform.Position.x + \":\" + transform.Position.y + \" r \" + wall.Radius                              + \"\\n\\tdist \" + (transform.Position - (P + V * scaleV)).magnitude                              + \"\\n\\tproj V  w \" + _wallProj1V.Min + \":\" + _wallProj1V.Max + \" g \" + grenProj1V.Min + \":\" + grenProj1V.Max + \" overlap=\" + Overlap(_wallProj1V, grenProj1V)                              + \"\\n\\tproj VT w \" + _wallProj2V.Min + \":\" + _wallProj2V.Max + \" g \" + grenProj2V.Min + \":\" + grenProj2V.Max + \" overlap=\" + Overlap(_wallProj2V, grenProj2V)                              + \"\\n\\tpoint \" + contactPoint.Point.x + \":\" + contactPoint.Point.y + \" dotV \" + Vector2.Dot(P - contactPoint.Point, V)                              ); #endif                  \/\/ ignore colliders that are behind                 if (Vector2.Dot(position - contactPoint.Point, velocity) &gt;= 0.0f) continue;                  contactPoint.TravelDistance = velocity.magnitude * scaleV;                 _contactPoints.Add(ref contactPoint);                  collisions++;             }              return collisions;         }          private bool CheckCircleCollision(Vector2 wallCentre, CircleCollider wall, Vector2 position, Vector2 velocity)         {             _verticesV[0] = _vertices[0];             _verticesV[1] = _vertices[1];             _verticesV[2] = _vertices[1] + velocity;             _verticesV[3] = _vertices[0] + velocity;              \/\/ test projection to V             var grenProj1V = ProjectCapsule(_Vunit, _verticesV, position, velocity);             if (!Overlap(_wallProj1V, grenProj1V)) return false;              \/\/ testing projection to VT would be redundant              \/\/ test distance from the circle wall to the semicircle on the second capsule end             var dSqr = (_r + wall.Radius) * (_r + wall.Radius);             return (position + velocity - wallCentre).sqrMagnitude &lt; dSqr;         }          private static float CalcTranslationScaleBeforeCollision&lt;TData1, TData2&gt;(             Func&lt;TData1, TData2, Vector2, Vector2, bool&gt; collision,             TData1 colliderData1,             TData2 colliderData2,             Vector2 position,             Vector2 vector)         {             var min = 0.0f;             var max = 1.0f;             while (true)             {                 var d = (max - min) * 0.5f;                 if (d &lt; CollisionPrecision) break;                  var scale = min + d;                  if (collision(colliderData1, colliderData2, position, vector * scale))                 {                     max = scale;                 }                 else                 {                     min = scale;                 }             }              return min;         }          private ContactPoint CalculateContactSuperposition()         {             ContactPoint contactSuperposition;             _contactPoints.TryPopClosest(1000f, out contactSuperposition);              ContactPoint contact;             while (_contactPoints.TryPopClosest(contactSuperposition.TravelDistance, out contact))             {                 contactSuperposition.Normal += contact.Normal;             }              contactSuperposition.Normal = contactSuperposition.Normal.normalized;              return contactSuperposition;         }          private static Projection ProjectPolygon(Vector2 axisNormalised, Vector2[] vertices)         {             Projection proj;             var d = Vector2.Dot(axisNormalised, vertices[0]);             proj.Min = d;             proj.Max = d;              for (var i = 1; i &lt; vertices.Length; i++)             {                 d = Vector2.Dot(axisNormalised, vertices[i]);                 proj.Min = Mathf.Min(proj.Min, d);                 proj.Max = Mathf.Max(proj.Max, d);             }              return proj;         }          private Projection ProjectCapsule(Vector2 axisNormalised, Vector2[] vertices, Vector2 p, Vector2 v)         {             var proj = ProjectPolygon(axisNormalised, vertices);             proj = AddCircleProjection(proj, axisNormalised, p, _r);             proj = AddCircleProjection(proj, axisNormalised, p + v, _r);             return proj;         }          private static Projection AddCircleProjection(Projection proj, Vector2 axisNormalised, Vector2 centre, float r)         {             var c = Vector2.Dot(axisNormalised, centre);             proj.Min = Mathf.Min(proj.Min, c - r);             proj.Max = Mathf.Max(proj.Max, c + r);             return proj;         }          private static Projection ProjectCircle(Vector2 axisNormalised, Vector2 centre, float r)         {             Projection proj;             var c = Vector2.Dot(axisNormalised, centre);             proj.Min = c - r;             proj.Max = c + r;             return proj;         }          private static bool Overlap(Projection p1, Projection p2)         {             return p1.Min &lt; p2.Min ? p1.Max &gt; p2.Min : p2.Max &gt; p1.Min;         }          private static Vector2 WorldToBoxLocal(Vector2 wallCentre, PrecomputedColliderData colliderData, Vector2 position)         {             return new Vector2(                 Vector2.Dot(colliderData.Axis1, position) - Vector2.Dot(colliderData.Axis1, wallCentre),                 Vector2.Dot(colliderData.Axis2, position) - Vector2.Dot(colliderData.Axis2, wallCentre)             );         }          private static ContactPoint CalcBoxContactPoint(Vector2 wallCentre, BoxCollider wall, PrecomputedColliderData colliderData, Vector2 position)         {             var contactPoint = CaclBoxLocalContactPoint(wall.Size * 0.5f, WorldToBoxLocal(wallCentre, colliderData, position));              var worldAxisX = new Vector2(colliderData.Axis1.x, -colliderData.Axis1.y);             var worldAxisY = new Vector2(colliderData.Axis1.y, colliderData.Axis1.x);             contactPoint.Point = wallCentre + new Vector2(Vector2.Dot(worldAxisX, contactPoint.Point), Vector2.Dot(worldAxisY, contactPoint.Point));             contactPoint.Normal = new Vector2(Vector2.Dot(worldAxisX, contactPoint.Normal), Vector2.Dot(worldAxisY, contactPoint.Normal));              return contactPoint;         }          private static ContactPoint CaclBoxLocalContactPoint(Vector2 boxHalfSize, Vector2 localPosition)         {             ContactPoint localContactPoint = default(ContactPoint);              \/\/ cases are numbered like numpad keys              \/\/ 1, 2, 3             if (localPosition.y &lt; -boxHalfSize.y)             {                 \/\/ 1                 if (localPosition.x &lt; -boxHalfSize.x)                 {                     localContactPoint.Point = new Vector2(-boxHalfSize.x, -boxHalfSize.y);                     localContactPoint.Normal = new Vector2(-HalfSlope, -HalfSlope);                 }                 \/\/ 2, 3                 else                 {                     \/\/ 3                     if (localPosition.x &gt; boxHalfSize.x)                     {                         localContactPoint.Point = new Vector2(boxHalfSize.x, -boxHalfSize.y);                         localContactPoint.Normal = new Vector2(HalfSlope, -HalfSlope);                     }                     \/\/ 2                     else                     {                         localContactPoint.Point = new Vector2(localPosition.x, -boxHalfSize.y);                         localContactPoint.Normal = new Vector2(0.0f, -1.0f);                     }                 }             }             \/\/ 4, 6, 7, 8, 9             else             {                 \/\/ 7, 8, 9                 if (localPosition.y &gt; boxHalfSize.y)                 {                     \/\/ 7                     if (localPosition.x &lt; -boxHalfSize.x)                     {                         localContactPoint.Point = new Vector2(-boxHalfSize.x, boxHalfSize.y);                         localContactPoint.Normal = new Vector2(-HalfSlope, HalfSlope);                     }                     \/\/ 8, 9                     else                     {                         \/\/ 9                         if (localPosition.x &gt; boxHalfSize.x)                         {                             localContactPoint.Point = new Vector2(boxHalfSize.x, boxHalfSize.y);                             localContactPoint.Normal = new Vector2(HalfSlope, HalfSlope);                         }                         \/\/ 8                         else                         {                             localContactPoint.Point = new Vector2(localPosition.x, boxHalfSize.y);                             localContactPoint.Normal = new Vector2(0.0f, 1.0f);                         }                     }                 }                 \/\/ 4, 6                 else                 {                     \/\/ 4                     if (localPosition.x &lt; -boxHalfSize.x)                     {                         localContactPoint.Point = new Vector2(-boxHalfSize.x, localPosition.y);                         localContactPoint.Normal = new Vector2(-1.0f, 0.0f);                     }                     \/\/ 6                     else                     {                         localContactPoint.Point = new Vector2(boxHalfSize.x, localPosition.y);                         localContactPoint.Normal = new Vector2(1.0f, 0.0f);                     }                 }             }              return localContactPoint;         }          private static ContactPoint CalcCircleContactPoint(Vector2 wallCentre, CircleCollider wall, Vector2 position)         {             ContactPoint contactPoint = default(ContactPoint);              contactPoint.Normal = (position - wallCentre).normalized;             contactPoint.Point = wallCentre + wall.Radius * contactPoint.Normal;              return contactPoint;         }     } }<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h2>\u0424\u0438\u0437\u0438\u043a\u0443 \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438. \u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435?<\/h2>\n<p>  \u0418\u0433\u0440\u0430 \u0436\u0438\u0432\u0451\u0442, \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0438 \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u043d\u0430\u043c \u0441\u0442\u0430\u043b\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043a\u0430\u043a\u0438\u043c-\u0442\u043e \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441 \u0435\u0451 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0434\u0432\u0438\u0436\u043a\u043e\u043c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0412 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0441\u0442\u0430\u0442\u0435\u0439 \u044f \u0443\u0436\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e <a href=\"https:\/\/habr.com\/ru\/company\/pixonic\/blog\/424267\/\">\u043e\u0442\u043b\u0430\u0434\u043a\u0443 ECS \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435<\/a>. \u0427\u0442\u043e \u0436\u0435 \u0434\u043e \u0444\u0438\u0437\u0438\u043a\u0438, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0435\u0440\u0451\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 JSON, \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c \u043b\u0435\u0439\u0430\u0443\u0442\u043e\u043c ECS. \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u044d\u0442\u043e\u0442 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0442\u0430\u043a:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/x6\/wv\/1w\/x6wv1w0hkb13r4rflik9hvacnk0.png\"><\/p>\n<p>  \u0412\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0443 \u043d\u0430\u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u0432\u0430 \u00ab\u043c\u0438\u0440\u0430\u00bb. \u041f\u0435\u0440\u0432\u044b\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0437 \u0441\u0435\u0431\u044f \u043d\u0430\u0448 ECS, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u044b \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438\u0433\u0440\u044b, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438\u0445 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b. \u0412\u0442\u043e\u0440\u043e\u0439 \u043c\u0438\u0440 \u2015 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u2015 \u0441\u043e\u0437\u0434\u0430\u043d \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 \u0438, \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043d\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u0432 \u0441\u0442\u0438\u043b\u0435 ECS, \u043d\u043e \u0437\u0430\u0434\u0430\u0447\u0443 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0435\u0436\u0434\u0443 \u044d\u0442\u0438\u043c\u0438 \u043c\u0438\u0440\u0430\u043c\u0438 ECS \u0431\u0435\u0440\u0451\u0442 \u043d\u0430 \u0441\u0435\u0431\u044f. \u0412\u0430\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u0430 API, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0435\u0451 \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u0438 \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0438 \u0447\u0438\u0442\u0430\u0442\u044c, \u0438 \u043f\u0438\u0441\u0430\u0442\u044c. \u0422\u0430\u043a\u0436\u0435 \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u044b\u043c \u0432\u044b\u0432\u043e\u0434\u043e\u043c \u0434\u043b\u044f \u043d\u0430\u0441 \u0441\u0442\u0430\u043b\u043e \u0442\u043e, \u0447\u0442\u043e \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u0437 \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043d\u0430\u0434\u0451\u0436\u043d\u044b\u043c \u0432 \u043f\u043b\u0430\u043d\u0435 \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u043c\u0430\u0445\u043e\u0432 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438 \u043f\u0435\u0440\u0435\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0445 \u043a\u0432\u0430\u043d\u0442\u0430\u0445 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0438 \u0440\u0435\u0439\u043a\u0430\u0441\u0442\u0430\u0445.<\/p>\n<p>  \u041a\u0430\u043a\u043e\u0435-\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043c\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u043b\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0436\u0438\u0442\u044c \u0441 2D-\u0444\u0438\u0437\u0438\u043a\u043e\u0439: \u043e\u043d\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u043a\u0440\u044b\u0432\u0430\u043b\u0430 \u043d\u0430\u0448\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u0438 \u0433\u0435\u0439\u043c\u0434\u0438\u0437\u0430\u0439\u043d\u0430, \u0438 \u0432 \u0446\u0435\u043b\u043e\u043c \u0431\u044b\u043b\u0430 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u0430\u0447\u043d\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0431\u044b\u043b\u0438 \u0438 \u043c\u0438\u043d\u0443\u0441\u044b: \u043d\u0430\u0441 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043b\u0430 \u0435\u0451 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432 \u043d\u0430 \u0440\u044b\u043d\u043a\u0435 opensource \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043d\u0435 \u0431\u044b\u043b\u043e, \u0430 \u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0441\u0432\u043e\u0451 \u0431\u044b\u043b\u043e \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u044d\u043d\u0435\u0440\u0433\u043e\u0437\u0430\u0442\u0440\u0430\u0442\u043d\u043e. \u041f\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c \u043f\u0440\u043e\u0444\u0430\u0439\u043b\u0438\u043d\u0433\u0430 \u0438\u0437 \u0431\u043e\u043b\u0435\u0435 \u0441\u043e\u0442\u043d\u0438 \u0441\u0438\u0441\u0442\u0435\u043c ECS, \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u043c \u0442\u0438\u043a\u0435 \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0438, \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0430 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0434\u0432\u0438\u0436\u043a\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0436\u043e\u0440\u043b\u0438\u0432\u044b\u043c\u0438. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0438 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u0435\u043b \u0438 \u0438\u0445 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u043b\u0438 \u0431\u044b \u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c\u0438. \u0422\u0430\u043a\u0436\u0435 \u0441\u043c\u0443\u0449\u0430\u0435\u0442 \u041e\u041e\u041f-\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u0434\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0438 \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0438\u043d\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0442\u0435\u043b\u0430\u043c\u0438, \u0430 \u043d\u0435 \u043f\u0430\u043a\u0435\u0442\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043a\u0443\u0434\u0430 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u0435\u0435 \u0434\u043b\u044f \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430. \u0418 \u0434\u0430 \u2015 \u0432 \u0438\u0442\u043e\u0433\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u0437\u0430\u0431\u0440\u043e\u0441\u0438\u043b \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443.<\/p>\n<p>  \u0427\u0435\u0440\u0435\u0437 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u0432 \u0433\u0435\u0439\u043c\u0434\u0438\u0437\u0430\u0439\u043d\u0435 \u043d\u0430\u0448\u0435\u0439 \u0438\u0433\u0440\u044b \u0432\u0441\u0451 \u0436\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u043d\u043e\u0432\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0449\u0438\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 3D-\u0444\u0438\u0437\u0438\u043a\u0438, \u0438 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043f\u0440\u0435\u0432\u0435\u043d\u0442\u0438\u0432\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0441\u0430\u0434 \u0444\u0438\u0437\u0438\u043a\u0438 \u0432\u043e \u043c\u043d\u043e\u0433\u043e\u043c \u043e\u0448\u0438\u0431\u0430\u043b\u0441\u044f \u0438 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435 \u0431\u044b\u043b \u043f\u0440\u0438\u0441\u043f\u043e\u0441\u043e\u0431\u043b\u0435\u043d \u043a \u043d\u043e\u0432\u044b\u043c \u0440\u0435\u0430\u043b\u0438\u044f\u043c. <\/p>\n<p>  \u041a \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a, \u0437\u0430\u0447\u0435\u043c \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u043c\u044b \u0437\u0430\u043c\u0435\u043d\u0438\u043b\u0438 \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u044b\u0439 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0434\u0432\u0438\u0436\u043e\u043a \u043d\u0430 \u0442\u0440\u0451\u0445\u043c\u0435\u0440\u043d\u044b\u0439, \u043c\u044b \u0435\u0449\u0451 \u0432\u0435\u0440\u043d\u0451\u043c\u0441\u044f \u0432 \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445. \u0410 \u043f\u043e\u043a\u0430 \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0438 \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 ECS \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438 \u0441\u0442\u0430\u043b\u043e \u0447\u0443\u0442\u043e\u0447\u043a\u0443 \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435.<\/p>\n<h4>\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438<\/h4>\n<p>  \u041d\u0430 \u043d\u0430\u0448\u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u043e \u0442\u0435\u043c\u0435:<\/p>\n<ul>\n<li><a href=\"https:\/\/habr.com\/ru\/company\/pixonic\/blog\/429312\/\">\u041e\u0431\u0449\u0430\u044f \u0438\u0433\u0440\u043e\u0432\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0435<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/company\/pixonic\/blog\/415959\/\">\u041a\u0430\u043a \u043c\u044b \u043f\u0438\u0441\u0430\u043b\u0438 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043a\u043e\u0434 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e PvP \u0448\u0443\u0442\u0435\u0440\u0430: \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0438\u0433\u0440\u043e\u043a\u0430 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/company\/pixonic\/blog\/413729\/\">\u041a\u0430\u043a \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u043c\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u0441\u0432\u043e\u0439 ECS<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/company\/pixonic\/blog\/424267\/\">\u041a\u0430\u043a \u043c\u044b \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0435\u043c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u044b\u0439 ECS \u043d\u0430 \u0438\u0433\u0440\u043e\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435<\/a><\/li>\n<\/ul>\n<p>  \u0410 \u0442\u0430\u043a \u0436\u0435:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=7jb0FOcImdg\">8 Frames in 16ms: Rollback Networking in Mortal Kombat and Injustice 2<\/a><\/li>\n<\/ul>\n<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d() } } }t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>      <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/pixonic\/blog\/481880\/\"> https:\/\/habr.com\/ru\/company\/pixonic\/blog\/481880\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/pixonic\/blog\/481880\/\">\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442! \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c \u043f\u0440\u043e \u043b\u0438\u0447\u043d\u044b\u0439 \u043e\u043f\u044b\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0434\u0432\u0438\u0436\u043a\u0430\u043c\u0438 \u0434\u043b\u044f \u043c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0435\u0435\u0440\u043d\u043e\u0433\u043e \u0448\u0443\u0442\u0435\u0440\u0430 \u0438 \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0441\u0444\u043e\u043a\u0443\u0441\u0438\u0440\u0443\u0435\u043c\u0441\u044f \u043d\u0430 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0438 \u0444\u0438\u0437\u0438\u043a\u0438 \u0438 <abbr title=\"ECS \u2014 data-oriented \u043f\u043e\u0434\u0445\u043e\u0434, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0442\u0434\u0435\u043b\u0435\u043d\u044b \u043e\u0442 \u043b\u043e\u0433\u0438\u043a\u0438. \u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u043a\u0430\u043a \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 (Entity) \u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b (Components), \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0449\u0438\u0435 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044f\u043c. \u041b\u043e\u0433\u0438\u043a\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 (Systems), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043f\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439 \u0438 \u043c\u0435\u043d\u044f\u044e\u0442 \u0438\u0445, \u0441\u043e\u0437\u0434\u0430\u044e\u0442 \u043d\u043e\u0432\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438.\">ECS<\/abbr>: \u043d\u0430 \u043a\u0430\u043a\u0438\u0435 \u0433\u0440\u0430\u0431\u043b\u0438 \u043c\u044b \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u043b\u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u044b, \u0447\u0435\u043c\u0443 \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c, \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438\u0441\u044c \u043d\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u0445.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/gp\/b_\/2-\/gpb_2-4ml1nwdsb443-f2pp6zyu.png\">  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-296368","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/296368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=296368"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/296368\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=296368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=296368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=296368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}