{"id":266898,"date":"2015-10-27T15:26:02","date_gmt":"2015-10-27T12:26:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=266898"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=266898","title":{"rendered":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430 \u0434\u043b\u044f RTS \u043d\u0430 Unity3D"},"content":{"rendered":"<p>       \u0414\u0430\u0432\u043d\u044b\u043c-\u0434\u0430\u0432\u043d\u043e \u044f \u0438\u043c\u0435\u043b \u0440\u0430\u0434\u043e\u0441\u0442\u044c \u0438\u0433\u0440\u0430\u0442\u044c \u0432 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0435\u0439\u0448\u0443\u044e RTS \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u00ab\u041f\u0435\u0440\u0438\u043c\u0435\u0442\u0440: \u0413\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u044f \u0412\u043e\u0438\u043d\u044b\u00bb (\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 steam) \u043e\u0442 \u043e\u0442\u0435\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 K-D Labs. \u042d\u0442\u043e \u0438\u0433\u0440\u0430 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0435 \u043b\u0435\u0442\u0430\u044e\u0449\u0438\u0435 \u0433\u043e\u0440\u043e\u0434\u0430 \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u00ab\u0424\u0440\u0435\u0439\u043c\u044b\u00bb \u0431\u043e\u0440\u043e\u0437\u0434\u044f\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u044b \u00ab\u0421\u043f\u0430\u043d\u0434\u0436\u0430\u00bb \u2014 \u0446\u0435\u043f\u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0445 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u043c\u0438\u0440\u043e\u0432. \u0421\u044e\u0436\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0439 \u0438 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u044b\u0439, \u043d\u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u0438 \u0438\u043d\u043d\u043e\u0432\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0439 \u0438\u0433\u0440\u044b \u0431\u044b\u043b\u0430 \u043e\u0434\u043d\u0430 \u0438\u0437 \u0435\u0435 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439, \u0430 \u043d\u0435 \u0441\u044e\u0436\u0435\u0442. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 RTS, \u0433\u0434\u0435 \u0441\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0442 \u043d\u0430 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043c\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u0432 \u00ab\u041f\u0435\u0440\u0438\u043c\u0435\u0442\u0440\u0435\u00bb, \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u043c\u0435\u0445\u0430\u043d\u0438\u043a \u0431\u044b\u043b \u0442\u0435\u0440\u0440\u0430\u0444\u043e\u0440\u043c\u0438\u043d\u0433. \u0423 \u0438\u0433\u0440\u043e\u043a\u0430 \u0431\u044b\u043b\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u043e\u043c \u0441 \u0446\u0435\u043b\u044c\u044e \u0432\u043e\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043d\u0430 \u043d\u0435\u043c \u0441\u0432\u043e\u0438\u0445 \u0441\u043e\u043e\u0440\u0443\u0436\u0435\u043d\u0438\u0439 \u0430 \u0442\u0430\u043a\u0436\u0435 \u0446\u0435\u043b\u044b\u0439 \u0430\u0440\u0441\u0435\u043d\u0430\u043b \u0431\u043e\u0435\u0432\u044b\u0445 \u0435\u0434\u0438\u043d\u0438\u0446, \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u0445 \u044d\u0442\u043e\u0442 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0432 \u043f\u043e\u0442\u0440\u0435\u0441\u043a\u0430\u0432\u0448\u0438\u0439\u0441\u044f, \u043f\u043e\u043f\u043b\u044b\u0432\u0448\u0438\u0439 \u0438 \u0438\u0437\u0440\u044b\u0433\u0430\u044e\u0449\u0438\u0439 \u0440\u0430\u0441\u043a\u0430\u043b\u0435\u043d\u043d\u044b\u0435 \u043a\u0430\u043c\u043d\u0438\/\u043f\u0440\u043e\u0442\u0438\u0432\u043d\u044b\u0445 \u043d\u0430\u0441\u0435\u043a\u043e\u043c\u044b\u0445 \u0443\u0436\u0430\u0441.<\/p>\n<p>  \u041a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u043c\u0438\u0440 RTS \u043d\u044b\u043d\u0447\u0435 \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043f\u0430\u0434\u043e\u043a. \u0418\u043d\u0434\u0438-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0437\u0430\u043d\u044f\u0442\u044b \u0442\u0435\u043c, \u0447\u0442\u043e \u043a\u043b\u0435\u043f\u0430\u044e\u0442 \u0440\u0435\u0442\u0440\u043e-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u0440\u044b \u0438 rouge-like \u0438\u0433\u0440\u044b \u0437\u0443\u0431\u043e\u0434\u0440\u043e\u0431\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438, \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443, \u043f\u0435\u0440\u0435\u0438\u0433\u0440\u0430\u0432 \u0432 \u00ab\u041f\u0435\u0440\u0438\u043c\u0435\u0442\u0440\u00bb \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0437\u0430\u0434 \u044f \u0440\u0435\u0448\u0438\u043b, \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u0435\u043d \u0438 \u0441\u0430\u043c \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435 \u2014 \u0438\u0434\u0435\u044f \u0431\u044b\u043b\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u0438 \u0441 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438 \u0441 \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u0439\u043d\u043e\u0439 \u0442\u043e\u0447\u0435\u043a \u0437\u0440\u0435\u043d\u0438\u044f. \u041e\u0431\u043b\u0430\u0434\u0430\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043e\u043f\u044b\u0442\u043e\u043c \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0438\u0433\u0440 (\u0440\u0430\u043d\u0435\u0435 \u044f \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u043b \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043e\u0435-\u0447\u0442\u043e \u043d\u0430 XNA), \u044f \u043f\u043e\u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0445\u043e\u0442\u044c \u043a\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u0443\u0441\u043f\u0435\u0445\u0430 \u0432 \u043e\u0434\u0438\u043d\u043e\u0447\u043a\u0443 \u043c\u043d\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0447\u0435\u043c \u043d\u0438\u0431\u0443\u0434\u044c \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u043c \u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u043c. \u0412\u044b\u0431\u043e\u0440 \u043c\u043e\u0439 \u043f\u0430\u043b \u043d\u0430 Unity 3D, \u0447\u044c\u044f \u043f\u044f\u0442\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0442\u043e\u043b\u044c\u043a\u043e-\u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0448\u043b\u0430 \u0438\u0437 \u043f\u043e\u0434 \u043f\u0440\u0435\u0441\u0441\u0430. <\/p>\n<p>  \u0412\u043e\u043e\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0439 \u0432\u0430\u0433\u043e\u043d\u043e\u043c \u044d\u043d\u0442\u0443\u0437\u0438\u0430\u0437\u043c\u0430, \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0435\u043d\u0438\u0435\u043c \u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u00ab\u041f\u0435\u0440\u0438\u043c\u0435\u0442\u0440\u0430\u00bb \u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043d\u043e\u0439 \u0441\u0435\u0440\u0438\u0435\u0439 \u0432\u0438\u0434\u0435\u043e\u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u043e\u0432 \u043f\u043e Unity, \u044f \u043d\u0430\u0447\u0430\u043b \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430\u0431\u0440\u043e\u0441\u043a\u0438 \u0438 \u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043d\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b Unity Editor.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4><b>\u0427\u0442\u043e \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 community<\/b><\/h4>\n<p>  \u041a\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430, \u043f\u0435\u0440\u0432\u044b\u0439 \u043c\u043e\u0439 \u0431\u043b\u0438\u043d \u0432\u044b\u0448\u0435\u043b \u043a\u043e\u043c\u043e\u043c. \u0411\u0435\u0437 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u043e\u0431\u0434\u0443\u043c\u044b\u0432\u0430\u043d\u0438\u044f \u044f \u043d\u0430\u0447\u0430\u043b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u043b\u043e\u0441\u043a\u043e\u0441\u0442\u0438 \u0438 \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0442\u044c \u043b\u0438\u0431\u043e \u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0432\u0435\u0440\u0448\u0438\u043d\u044b \u044d\u0442\u043e\u0439 \u043f\u043b\u043e\u0441\u043a\u043e\u0441\u0442\u0438. \u041c\u043d\u043e\u0433\u0438\u0435 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0438, \u0445\u043e\u0442\u044f \u0431\u044b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0435 \u0441 Unity \u043c\u043e\u0433\u0443\u0442 \u0432\u043e\u0437\u0440\u0430\u0437\u0438\u0442\u044c \u00ab\u041d\u043e \u0432\u0435\u0434\u044c \u0443 Unity \u0435\u0441\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 Terrain, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u0446\u0435\u043b\u0435\u0439!\u00bb \u2014 \u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0430\u0432\u044b. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043b\u0438\u0448\u044c \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u044f, \u0431\u0443\u0434\u0443\u0447\u0438 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0443\u0432\u043b\u0435\u0447\u0435\u043d\u043d\u044b\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0441\u0432\u043e\u0435\u0439 \u0438\u0434\u0435\u0438 \u0437\u0430\u0431\u044b\u043b \u043e\u0431 \u043e\u0434\u043d\u043e\u0439 \u0432\u0430\u0436\u043d\u043e\u0439 \u0432\u0435\u0449\u0438: RTFM! \u0418\u0437\u0443\u0447\u0438 \u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u0438 \u0444\u043e\u0440\u0443\u043c\u044b \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0442\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u044f \u0431\u044b \u043d\u0435 \u0441\u0442\u0430\u043b \u0440\u0435\u0448\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0442\u0430\u043a\u0438\u043c \u043e\u0442\u043a\u0440\u043e\u0432\u0435\u043d\u043d\u043e \u0434\u0443\u0440\u0430\u0446\u043a\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c, \u0430 \u0441\u0440\u0430\u0437\u0443 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u0431\u044b \u0433\u043e\u0442\u043e\u0432\u044b\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u043c.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0434\u0432\u0443\u0445 \u0434\u043d\u0435\u0439 \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e \u043f\u043e\u0442\u0430 \u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0438\u0441\u0442\u0438\u043a\u0438 (\u041f\u043b\u043e\u0441\u043a\u043e\u0441\u0442\u044c \u044f\u0432\u043d\u043e \u043d\u0435 \u0431\u044b\u043b\u0430 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0442\u0430\u043a\u0438\u0445 \u0446\u0435\u043b\u044f\u0445), \u044f \u0442\u0430\u043a\u0438 \u043d\u0430\u0447\u0430\u043b \u0434\u0435\u043b\u0430\u0442\u044c \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Terrain. \u0414\u043e\u043b\u0436\u0435\u043d \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0441\u0440\u0435\u0434\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0447\u043b\u0435\u043d\u043e\u0432 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 Unity, \u0445\u043e\u0434\u0438\u043b\u0430 \u0438\u0434\u0435\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430 \u0434\u043b\u044f \u0441\u0432\u043e\u0435\u0439 \u0438\u0433\u0440\u044b. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043b\u044e\u0434\u0438 \u0437\u0430\u0434\u0430\u0432\u0430\u043b\u0438 \u043d\u0430 \u0444\u043e\u0440\u0443\u043c\u0430\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0438 \u043e\u0442\u0432\u0435\u0442\u044b. \u0418\u043c \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 SetHeights, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0439 \u043d\u0430 \u0432\u0445\u043e\u0434 \u043a\u0443\u0441\u043e\u043a \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0442 0f \u0434\u043e 1f heightmap&#8217;\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0442\u043e\u0447\u043a\u0438 (xBase; yBase) \u043d\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442.<\/p>\n<p>  \u0414\u043e\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u0441\u0432\u043e\u0438\u0445 \u043f\u043e\u0438\u0441\u043a\u043e\u0432, \u044f \u043d\u0430\u0447\u0430\u043b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443. \u041f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f \u0431\u044b\u043b \u0433\u043e\u0442\u043e\u0432 \u043f\u0430\u0440\u0443 \u0447\u0430\u0441\u043e\u0432 \u0441\u043f\u0443\u0441\u0442\u044f \u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u043b \u0432 \u0441\u0435\u0431\u044f \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0443\u044e \u0434\u0432\u0438\u0433\u0430\u043b\u043a\u0443 \u043a\u0430\u043c\u0435\u0440\u044b (\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043b\u0430\u0432\u0438\u0448\u0438), \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043a\u0440\u0430\u0442\u0435\u0440\u043e\u0432 \u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u044d\u0442\u0438\u0445 \u043a\u0440\u0430\u0442\u0435\u0440\u043e\u0432 \u043d\u0430 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442 \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043d\u0430 \u043b\u0435\u0432\u0443\u044e \u043a\u043b\u0430\u0432\u0438\u0448\u0443 (\u0431\u0438\u043b\u0434 \u043c\u043e\u0436\u043d\u043e \u0441\u0445\u0432\u0430\u0442\u0438\u0442\u044c \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0437\u0434\u0435\u0441\u044c).<\/p>\n<p>  \u0421\u0430\u043c\u0430 \u043f\u043e \u0441\u0435\u0431\u0435 \u0434\u0435\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0449\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0431\u044b\u043b\u0430 \u0434\u043e \u043d\u0435\u043f\u0440\u0438\u043b\u0438\u0447\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u042d\u0442\u043e \u0431\u044b\u043b \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">void ApplyAt(DeformationData data) {     currentHeights = data.terrainData.GetHeights(data.X - data.W\/2, data.Y - data.H\/2, W, H); \t\t\t     for (int i = 0; i &lt; data.W; i++) {         for (int j = 0; j &lt; data.H; j++) {             if (data.Type == DeformationType.Additive)                 currentHeights[i, j] += data.heightmap[i, j];             else                 currentHeights[i, j] *= data.heightmap[i, j];         }     } \t\t\t     data.terrainData.SetHeights(data.X - data.W\/2, data.Y - data.H\/2, currentHeights); }  <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041e\u0431\u044a\u0435\u043a\u0442 DeformationData \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043b \u0432 \u0441\u0435\u0431\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b X \u0438 Y, \u043a \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e, \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 heightmap, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0430\u0434\u0434\u0438\u0442\u0438\u0432\u043d\u043e \u043b\u0438\u0431\u043e \u043c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0438\u043a\u0430\u0442\u0438\u0432\u043d\u043e \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u043b\u0441\u044f \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442 \u0438 \u043f\u0440\u043e\u0447\u0438\u0439 boilerplate, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0439.<\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0431\u044b\u043b \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0439, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440,<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0440\u0430\u0442\u0435\u0440 \u043f\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">\/\/ \u041c\u0435\u0442\u043e\u0434\u044b \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u044c\u044e \u043a\u043b\u0430\u0441\u0441\u0430  - \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 H, W \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0435\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438. \/\/ \u041d\u0435\u0441\u043b\u043e\u0436\u043d\u043e \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e H - \u0432\u044b\u0441\u043e\u0442\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, W - \u0435\u0435 \u0448\u0438\u0440\u0438\u043d\u0430.  float GetDepth(float distanceToCenter, int holeDepth,                        int wallsHeight, int holeRadius, int craterRadius) {     if (distanceToCenter &lt;= holeRadius)     {         return (Mathf.Pow(distanceToCenter, 2) * (holeDepth + wallsHeight) \/ Mathf.Pow(holeRadius, 2)) - holeDepth;     } else if (distanceToCenter &lt;= craterRadius) {         return Mathf.Pow(craterRadius - distanceToCenter, 2) * wallsHeight \/ Mathf.Pow(craterRadius - holeRadius, 2);     } else return 0f; }  float[,] Generate(int holeDepth, int wallsHeight,                                    int holeRadius, int craterRadius) {     var heightmap = new float[W, H];      for (var x = 0; x &lt; W; x++)     {         for (var y = 0; y &lt; H; y++)         {             var offsetX = x - W \/ 2;             var offsetY = y - H \/ 2;             var depth = GetDepth(Mathf.Sqrt(offsetX * offsetX + offsetY * offsetY),                                 holeDepth, wallsHeight, holeRadius, craterRadius); \t    heightmap[x, y] = depth;         }     } }  <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0418 \u0432\u0441\u0435 \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u043e\u0441\u043d\u043e\u0432\u043e\u0439 \u0432\u0441\u0435\u0433\u043e Tech Demo, \u0435\u0441\u043b\u0438 \u0442\u0430\u043a \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0440\u0430\u0437\u0438\u0442\u044c\u0441\u044f.<\/p>\n<h4><b>\u0410\u043d\u0430\u043b\u0438\u0437 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u043f\u043e\u043f\u044b\u0442\u043a\u0438<\/b><\/h4>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 Tech Demo, \u0442\u043e, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0432 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0435 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0439. \u0415\u0441\u043b\u0438 \u0436\u0435 \u0432\u044b \u043d\u0435 \u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u0435\u0433\u043e (\u0437\u0430 \u0447\u0442\u043e \u044f \u0432\u0430\u0441 \u043d\u0435 \u0432\u0438\u043d\u044e), \u0442\u043e \u044f \u0432\u0430\u043c \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u043d\u0435 \u0442\u0430\u043a. \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0431\u044b\u043b\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c. \u0422\u043e\u0447\u043d\u0435\u0435 \u0435\u0435 \u043f\u043e\u043b\u043d\u043e\u0435 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435. \u041a\u043e\u0433\u0434\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0438\u0441\u044c \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, framerate \u043f\u0430\u0434\u0430\u043b \u0434\u043e \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0445 (\u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u044b\u0445) \u0447\u0438\u0441\u0435\u043b, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u043d\u0435\u043f\u0440\u0438\u0435\u043c\u043b\u0435\u043c\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0432 \u0438\u0433\u0440\u0435 \u043f\u043e \u0441\u0443\u0442\u0438 \u043d\u0435 \u0431\u044b\u043b\u043e. \u041c\u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0432\u044b\u044f\u0441\u043d\u0438\u0442\u044c, \u0447\u0442\u043e \u0441\u0430\u043c \u043f\u043e \u0441\u0435\u0431\u0435 \u043c\u0435\u0442\u043e\u0434 SetHeights() \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u043b\u043e\u0436\u043d\u0435\u0439\u0448\u0443\u044e \u0447\u0435\u0440\u0435\u0434\u0443 \u0440\u0430\u0441\u0447\u0435\u0442\u043e\u0432 LOD \u0434\u043b\u044f \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430 \u0438 \u043f\u043e \u044d\u0442\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u043d\u0435 \u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0439 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b, \u043c\u043e\u0438 \u043d\u0430\u0434\u0435\u0436\u0434\u044b \u0440\u0443\u0445\u043d\u0443\u043b\u0438 \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0439 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 Unity \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430, \u043d\u043e \u044f \u043d\u0435 \u0441\u0434\u0430\u0432\u0430\u043b\u0441\u044f \u0438 \u0432\u044b\u044f\u0441\u043d\u0438\u043b \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u0443\u044e, \u043d\u043e \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u0443\u044e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430 LOD.<\/p>\n<p>  \u0427\u0435\u043c \u043c\u0435\u043d\u044c\u0448\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043a\u0430\u0440\u0442\u044b \u0432\u044b\u0441\u043e\u0442 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430, \u0442\u0435\u043c \u043c\u0435\u043d\u044c\u0448\u0435 \u0443\u0434\u0430\u0440 \u043f\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 SetHeights().<\/p>\n<p>  \u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043a\u0430\u0440\u0442\u044b \u0432\u044b\u0441\u043e\u0442 \u2014 \u044d\u0442\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440, \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0437\u0443\u044e\u0449\u0438\u0439 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430. \u041e\u043d\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u043c (\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e), \u043e\u0442\u0447\u0435\u0433\u043e \u0432 \u0441\u043d\u0438\u043f\u043f\u0435\u0442\u0430\u0445 \u0432\u044b\u0448\u0435 \u0434\u043b\u044f \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043d\u0430 \u043a\u0430\u0440\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435. \u0418 \u043e\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430 256\u0445256 \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043a\u0430\u0440\u0442\u044b \u0432\u044b\u0441\u043e\u0442 \u0440\u0430\u0432\u043d\u044b\u043c 513, \u0447\u0442\u043e \u043f\u0440\u0438\u0434\u0430\u0441\u0442 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0443 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0438 \u043c\u0435\u043d\u0435\u0435 \u0443\u0433\u043b\u043e\u0432\u0430\u0442\u044b\u0435 \u043e\u0447\u0435\u0440\u0442\u0430\u043d\u0438\u044f. \u041f\u043e\u0447\u0435\u043c\u0443 \u0438\u043c\u0435\u043d\u043d\u043e 513, \u0430 \u043d\u0435 512, \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0435\u043a\u0446\u0438\u0438.<\/p>\n<p>  \u0418\u0433\u0440\u044b \u0441 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u043a\u0430\u0440\u0442\u044b \u0432\u044b\u0441\u043e\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u0438 \u043c\u043d\u0435 \u043d\u0430\u0439\u0442\u0438 \u0431\u043e\u043b\u0435\u0435-\u043c\u0435\u043d\u0435\u0435 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0434\u043b\u044f \u043c\u043e\u0435\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u043d\u043e \u044f \u0431\u044b\u043b \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0433\u043e\u0440\u0447\u0435\u043d \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438. \u0414\u043b\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430 \u0432 RTS, \u0435\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438, \u0447\u0442\u043e\u0431\u044b \u043d\u0430 \u043d\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0445\u043e\u0442\u044f \u0431\u044b \u0434\u0432\u0443\u043c \u0438\u0433\u0440\u043e\u043a\u0430\u043c. \u041f\u043e \u043c\u043e\u0438\u043c \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u043c \u043e\u0446\u0435\u043d\u043a\u0430\u043c, \u043a\u0430\u0440\u0442\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 2\u04452\u043a\u043c (\u0438\u043b\u0438 2048\u04452048 Unity Units) \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u043b\u0430 \u0431\u044b\u0442\u044c \u0432 \u0441\u0430\u043c\u044b\u0439 \u0440\u0430\u0437. \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u044c \u0432\u043b\u0438\u044f\u043d\u0438\u044f \u043d\u0430 framerate \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0439 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0440\u0430\u0437\u043c\u0435\u0440 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u0431\u044b\u0442\u044c \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 512\u0445512 \u0435\u0434\u0438\u043d\u0438\u0446. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u043e\u0434\u0438\u043d\u0430\u0440\u043d\u0430\u044f \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u043a\u0430\u0440\u0442\u044b \u0432\u044b\u0441\u043e\u0442 \u0434\u0430\u0432\u0430\u043b\u0430 \u043d\u0435 \u0441\u0430\u043c\u044b\u0435 \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u044f\u044e\u0449\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b, \u043a\u043e\u0433\u0434\u0430 \u0434\u0435\u043b\u043e \u043a\u0430\u0441\u0430\u043b\u043e\u0441\u044c \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430. \u041b\u0430\u043d\u0434\u0448\u0430\u0444\u0442 \u0431\u044b\u043b \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0443\u0433\u043b\u043e\u0432\u0430\u0442 \u0438 \u043a\u0440\u0438\u0432\u043e\u0432\u0430\u0442, \u0447\u0442\u043e \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e \u0443\u0434\u0432\u043e\u0435\u043d\u0438\u044f \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043a\u0430\u0440\u0442 \u0432\u044b\u0441\u043e\u0442.<\/p>\n<p>  \u0412 \u043e\u0431\u0449\u0435\u043c, \u0434\u0435\u043b\u0430 \u043e\u0431\u0441\u0442\u043e\u044f\u043b\u0438 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u043e.<\/p>\n<h4><b>Super Terrain \u2014 \u043a\u043e\u043d\u0446\u0435\u043f\u0442 \u0438 \u0442\u0435\u043e\u0440\u0438\u044f<\/b><\/h4>\n<p>  <\/p>\n<pre><code class=\"cs\">\u041c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f \u0437\u0430\u043c\u0435\u0442\u043a\u0430: \u0432 \u044d\u0442\u043e\u0439 \u0441\u0435\u043a\u0446\u0438\u0438 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0438 \u043a\u043e\u043d\u0446\u0435\u043f\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u0438 Super Terrain. \u041a\u043e\u0434 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0434\u0435\u0442\u0430\u043b\u044f\u0445 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0435\u043a\u0446\u0438\u0438. <\/code><\/pre>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u043e\u0433\u0434\u0430 \u043c\u0435\u043d\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u0441\u0435\u0449\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043c\u044b\u0441\u043b\u044c: \u00ab\u0420\u0430\u0437 \u043c\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442 \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0438\u043c\u0435\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u0443\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f\u0445, \u0442\u043e \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0443\u0447\u0443 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0445 \u0438 \u043d\u0435 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0438\u0445 \u0431\u043e\u043a \u043e \u0431\u043e\u043a? \u2014 \u041a\u0430\u043a chunk&#8217;\u0438 \u0432 Minecraft?\u00bb \u0418\u0434\u0435\u044f \u0431\u044b\u043b\u0430 \u043d\u0435\u043f\u043b\u043e\u0445\u043e\u0439, \u043d\u043e \u0431\u044b\u043b\u0430 \u0441\u043e\u043f\u0440\u044f\u0436\u0435\u043d\u0430 \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438:<\/p>\n<ul>\n<li>\u041a\u0430\u043a \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u043b\u044f \u00abchunk&#8217;\u0430\u00bb<\/li>\n<li>\u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043d\u0430 \u0441\u0442\u044b\u043a\u0430\u0445 \u00abchunk&#8217;\u043e\u0432\u00bb \u043d\u0435 \u0431\u044b\u043b\u043e \u0437\u0430\u043c\u0435\u0442\u043d\u044b\u0445 \u0448\u0432\u043e\u0432<\/li>\n<li>\u041a\u0430\u043a \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u043d\u0430 \u0441\u0442\u044b\u043a\u0430\u0445 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 chunk&#8217;\u043e\u0432<\/li>\n<\/ul>\n<p>  <\/p>\n<h6><b>\u041f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430<\/b><\/h6>\n<p>  \u041f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0443\u0441\u0442\u044f\u043a\u043e\u0432\u043e\u0439: \u042f \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0431\u0440\u0430\u043b \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u043b\u044f chunk&#8217;\u0430 256\u0445256 \u0441 \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e (heightmap resolution = 513). \u0422\u0430\u043a\u043e\u0439 setup \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u043b \u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e <i>\u043d\u0430 \u043c\u043e\u0435\u0439 \u043c\u0430\u0448\u0438\u043d\u0435<\/i>. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u0435\u0440\u0435\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440\u044b chunk&#8217;\u043e\u0432, \u043d\u043e \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u044d\u0442\u0430\u043f\u0435, \u0442\u0430\u043a\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043c\u0435\u043d\u044f \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043b\u043e.<\/p>\n<h6><b>\u0412\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430<\/b><\/h6>\n<p>  \u0427\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u0442\u043e \u0443 \u043d\u0435\u0435 \u0431\u044b\u043b\u043e \u0434\u0432\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445. \u041f\u0435\u0440\u0432\u0430\u044f, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0441\u043e\u0441\u0442\u043e\u044f\u043b\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0440\u0430\u0432\u043d\u044f\u0442\u044c \u0432\u044b\u0441\u043e\u0442\u044b \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 \u00ab\u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439\u00bb \u043a\u0430\u0440\u0442 \u0432\u044b\u0441\u043e\u0442 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 chunk&#8217;\u043e\u0432. \u0418\u043c\u0435\u043d\u043d\u043e \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u044f \u0438 \u043f\u043e\u043d\u044f\u043b, \u043f\u043e\u0447\u0435\u043c\u0443 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043a\u0430\u0440\u0442\u044b \u0432\u044b\u0441\u043e\u0442 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0442\u0435\u043f\u0435\u043d\u044c\u044e \u0434\u0432\u043e\u0439\u043a\u0438 + 1. \u041f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044e \u043d\u0430 \u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/b23\/f02\/e53\/b23f02e53c834f9b8d63115f376d5373.png\"\/><\/p>\n<p>  \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u043b\u043e\u0441\u044c \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e \u0432\u044b\u0441\u043e\u0442 \u0432 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430\u0445, \u00ab\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439\u00bb \u043f\u0438\u043a\u0441\u0435\u043b\u044c \u043a\u0430\u0440\u0442\u044b \u0432\u044b\u0441\u043e\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u043e \u0432\u044b\u0441\u043e\u0442\u0435 \u0440\u0430\u0432\u0435\u043d \u00ab\u043f\u0435\u0440\u0432\u043e\u043c\u0443\u00bb \u043f\u0438\u043a\u0441\u0435\u043b\u044e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/9e1\/ee4\/370\/9e1ee43709fc4c9da9034c7807cdb002.png\"\/><\/p>\n<p>  \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u00abSuper Terrain\u00bb \u2014 \u044d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u043c\u0430\u0442\u0440\u0438\u0446\u0430 Unity Terrain&#8217;\u043e\u0432, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0445 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u043c \u043d\u0430\u043b\u043e\u0436\u0435\u043d\u0438\u044f heightmap&#8217;\u043e\u0432 \u0438 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0439.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043e\u0434\u0430 \u0434\u043b\u044f \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u043e\u0432 \u0431\u044b\u043b\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430 (\u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0439 \u043c\u0430\u043b\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0431\u044b\u043b\u043e \u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u043d\u0430 \u043f\u043e\u0442\u043e\u043c \u2014 \u0441\u0435\u0439\u0447\u0430\u0441 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u044b Terrain&#8217;\u043e\u0432 \u0438 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u0430\u0440\u0442\u044b \u0432\u044b\u0441\u043e\u0442), \u043e\u0442\u043a\u0440\u044b\u043b\u0430\u0441\u044c \u0435\u0449\u0435 \u043e\u0434\u043d\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0430\u044f \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b (\u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0448\u0432\u043e\u0432 \u043d\u0430 \u0441\u0442\u044b\u043a\u0435 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u043e\u0432), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043a \u0441\u0447\u0430\u0441\u0442\u044c\u044e \u0431\u044b\u043b\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043b\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0434\u043b\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u00ab\u0441\u043e\u0432\u043c\u0435\u0449\u0435\u043d\u0438\u044f\u00bb \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u043e\u0432 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c Unity, \u0447\u0442\u043e \u043e\u043d\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e \u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u043c\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438 \u0431\u044b\u043b \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u043c\u0435\u0442\u043e\u0434 <a href=\"http:\/\/docs.unity3d.com\/ScriptReference\/Terrain.SetNeighbors.html\">SetHeighbors<\/a>. \u041c\u043d\u0435 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043a\u0430\u043a \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043d\u043e \u0431\u0435\u0437 \u043d\u0435\u0433\u043e \u043d\u0430 \u0441\u0442\u044b\u043a\u0430\u0445 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u043e\u0432 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0441 \u0442\u0435\u043d\u044f\u043c\u0438 \u0438 \u0442\u0435\u043c\u043d\u044b\u0435 \u043f\u043e\u043b\u043e\u0441\u044b.<\/p>\n<h6><b>\u0422\u0440\u0435\u0442\u044c\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430<\/b><\/h6>\n<p>  \u0421\u0430\u043c\u0430\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0438 \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u0438\u0437 \u0442\u0440\u0435\u0445, \u044d\u0442\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043d\u0435 \u0434\u0430\u0432\u0430\u043b\u0430 \u043c\u043d\u0435 \u043f\u043e\u043a\u043e\u044f \u043d\u0435 \u043c\u0435\u043d\u044c\u0448\u0435 \u043d\u0435\u0434\u0435\u043b\u0438. \u042f \u043e\u0442\u0431\u0440\u043e\u0441\u0438\u043b \u0447\u0435\u0442\u044b\u0440\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u0440\u0438\u0448\u0435\u043b \u043a \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443. \u0421\u0440\u0430\u0437\u0443 \u0441\u0434\u0435\u043b\u0430\u044e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435 \u043e\u0431 \u043e\u0434\u043d\u043e\u043c \u0432\u0430\u0436\u043d\u043e\u043c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0438 \u043c\u043e\u0435\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u2014 \u043e\u043d\u0430 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442, \u0447\u0442\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u043e\u0434\u0438\u043d chunk. \u0414\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e \u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0438\u0445 \u0441\u0442\u044b\u043a\u0435, \u043e\u0434\u043d\u0430\u043a\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043a\u0430\u0440\u0442\u044b \u0432\u044b\u0441\u043e\u0442 chunk&#8217;\u0430 \u0438 \u0432\u0441\u0435 \u043e\u043d\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u043c\u0438 (\u043a\u0430\u0440\u0442\u044b \u0432\u044b\u0441\u043e\u0442, \u0441\u0430\u043c\u0438 chunk&#8217;\u0438 \u0438 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438). \u0412 \u0446\u0435\u043b\u043e\u043c, \u044d\u0442\u043e \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435\u043c, \u0442\u0430\u043a \u043a\u0430\u043a \u043b\u044e\u0431\u0430\u044f \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0430 \u043f\u0443\u0442\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043c\u0430\u043b\u044b\u0445 \u043f\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u0438. \u0427\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u00ab\u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u043e\u0441\u0442\u0438\u00bb, \u0442\u043e \u044d\u0442\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u043a\u0430\u0440\u0442\u044b \u0432\u044b\u0441\u043e\u0442. \u0422\u043e \u0435\u0441\u0442\u044c \u043e\u0431\u044f\u0437\u0430\u043d\u0430 \u0431\u044b\u0442\u044c \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u043e\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0435 \u043a\u0430\u0440\u0442\u0430 \u0432\u044b\u0441\u043e\u0442, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u00ab\u043d\u0443\u043b\u0435\u0432\u044b\u0435\u00bb \u0443\u0447\u0430\u0441\u0442\u043a\u0438 \u043f\u0440\u0438 \u0430\u0434\u0434\u0438\u0442\u0438\u0432\u043d\u043e\u043c \u043b\u0438\u0431\u043e \u00ab\u0435\u0434\u0438\u043d\u0438\u0447\u043d\u044b\u0435\u00bb \u043f\u0440\u0438 \u043c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0438\u043a\u0430\u0442\u0438\u0432\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0445.<\/p>\n<p>  \u0421\u0430\u043c\u0430 \u043f\u043e \u0441\u0435\u0431\u0435 \u0438\u0434\u0435\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0434\u043b\u044f \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043b\u0430 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c:<\/p>\n<ol>\n<li>\u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c heightmap \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0430 \u0434\u0435\u0432\u044f\u0442\u044c \u0447\u0430\u0441\u0442\u0435\u0439 \u043f\u043e \u043e\u0434\u043d\u043e\u0439 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 chunk&#8217;\u043e\u0432, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0432\u043b\u0438\u044f\u0442\u044c \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f. \u0422\u0430\u043a \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u0437\u0430 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e chunk&#8217;\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u043e\u043f\u0430\u043b\u0430 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f, \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u0437\u0430 chunk&#8217;\u0438, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0435\u0441\u044f \u0441\u043b\u0435\u0432\u0430\/\u0441\u043f\u0440\u0430\u0432\u0430 \u0438\u043b\u0438 \u0441\u0432\u0435\u0440\u0445\u0443\/\u0441\u043d\u0438\u0437\u0443 \u0438 \u0442.\u0434. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 chunk, \u0442\u043e \u0435\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u043d\u0430 null.<\/li>\n<li>\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u044b\u0435 heightmap&#8217;\u044b \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c chunk&#8217;\u0430\u043c, \u043b\u0438\u0431\u043e \u043f\u0440\u043e\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0435\u0441\u043b\u0438 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u044b\u0439 heightmap \u0440\u0430\u0432\u0435\u043d null.<\/li>\n<\/ol>\n<p>  \u0422\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0438 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0435\u0441\u044f \u043a\u0430\u043a \u0432 \u0441\u0430\u043c\u043e\u043c \u0446\u0435\u043d\u0442\u0440\u0435 chunk&#8217;\u0430 \u0438 \u043d\u0435 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u044e\u0449\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 chunk&#8217;\u043e\u0432, \u0442\u0430\u043a \u0438 \u043d\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0430\u0445 \u0441 \u043d\u0438\u043c\u0438 \u043b\u0438\u0431\u043e \u0434\u0430\u0436\u0435 \u0432 \u0443\u0433\u043b\u0430\u0445. \u0414\u0435\u043b\u0438\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430 \u0434\u0435\u0432\u044f\u0442\u044c \u0447\u0430\u0441\u0442\u0435\u0439 (\u0430 \u043d\u0435 \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0435) \u043d\u0443\u0436\u043d\u043e \u043f\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0438\u043b\u0438 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0435 chunk&#8217;\u0430, \u0433\u0440\u0430\u043d\u0438\u0447\u043d\u044b\u0435 \u043f\u0438\u043a\u0441\u0435\u043b\u0438 \u0442\u043e\u0433\u043e, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e \u0441\u043e\u0441\u0435\u0434\u0441\u0442\u0432\u0443 \u0441 \u043d\u0438\u043c \u0442\u043e\u0436\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u044b. (\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0431\u044b\u043b\u043e \u0432\u0438\u0434\u0438\u043c\u044b\u043c \u0448\u0432\u043e\u0432 \u2014 \u0441\u043c. \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u043e\u043c\u0435\u0440 2).<\/p>\n<h4><b>Super Terrain \u2014 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430<\/b><\/h4>\n<p>  <\/p>\n<h6><b>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 SuperTerrain<\/b><\/h6>\n<p>  \u0412 \u0440\u0430\u043c\u043a\u0430\u0445 \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0431\u044b\u043b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u043c\u0435\u0437\u0430\u043d\u0438\u0437\u043c, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e Terrain&#8217;\u043e\u0432 \u0432 \u043e\u0434\u0438\u043d \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u00ab\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435\u00bb \u043a\u0430\u0440\u0442\u044b \u0432\u044b\u0441\u043e\u0442, \u043b\u043e\u0436\u0430\u0449\u0438\u0435\u0441\u044f \u043d\u0430 \u0432\u0435\u0441\u044c \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442 \u0446\u0435\u043b\u0438\u043a\u043e\u043c.<\/p>\n<p>  \u0421\u043a\u0430\u0436\u0443 \u0441\u0440\u0430\u0437\u0443, \u0447\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0430\u0441\u044c \u044d\u0442\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043a\u0430\u0440\u0442\u044b \u0432\u044b\u0441\u043e\u0442 \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430 \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u044b\u043c, \u0430 \u0434\u043b\u044f \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f <a href=\"http:\/\/www.playfuljs.com\/realistic-terrain-in-130-lines\/\">Square-Diamond \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c<\/a>, \u0432\u044b\u0445\u043e\u0434\u043e\u043c \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0438 \u0431\u044b\u043b\u0430 \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430 float&#8217;\u043e\u0432 \u2014 \u043d\u0430\u0448\u0430 \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043a\u0430\u0440\u0442\u0430 \u0432\u044b\u0441\u043e\u0442.<\/p>\n<p>  \u0412 \u0446\u0435\u043b\u043e\u043c, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 SuperTerrain \u2014 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438 \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0437\u0434\u0435\u0441\u044c<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">\/\/\/ &lt;summary&gt; \/\/\/ Compound terrain object. \/\/\/ &lt;\/summary&gt; public class SuperTerrain  {     \/\/\/ &lt;summary&gt;     \/\/\/ Contains the array of subterrain objects     \/\/\/ &lt;\/summary&gt;     private Terrain[,] subterrains; \t\t     \/\/\/ &lt;summary&gt;     \/\/\/ Superterrain detail. The resulting superterrain is 2^detail terrains.     \/\/\/ &lt;\/summary&gt;     \/\/\/ &lt;value&gt;The detail.&lt;\/value&gt;     public int Detail { get; private set; } \t\t     \/\/\/ &lt;summary&gt;     \/\/\/ Parent gameobject to nest created terrains into.     \/\/\/ &lt;\/summary&gt;     \/\/\/ &lt;value&gt;The parent.&lt;\/value&gt;     public Transform Parent { get; private set; } \t\t     \/\/\/ &lt;summary&gt;     \/\/\/ Builds the new terrain object.     \/\/\/ &lt;\/summary&gt;     \/\/\/ &lt;returns&gt;The new terrain.&lt;\/returns&gt;     private Terrain BuildNewTerrain()     {         \/\/ Using this divisor because of internal workings of the engine.         \/\/ The resulting terrain is still going to be subterrain size.         var divisor = GameplayConstants.SuperTerrainHeightmapResolution \/ GameplayConstants.SubterrainSize * 2;          var terrainData = new TerrainData {             size = new Vector3 (GameplayConstants.SubterrainSize \/ divisor,                                             GameplayConstants.WorldHeight,                                             GameplayConstants.SubterrainSize \/ divisor), \t    heightmapResolution = GameplayConstants.SuperTerrainHeightmapResolution         }; \t\t\t         var newTerrain = Terrain.CreateTerrainGameObject(terrainData).GetComponent&lt;Terrain&gt;(); \t\t\t         newTerrain.transform.parent = Parent;         newTerrain.transform.gameObject.layer = GameplayConstants.TerrainLayer;         newTerrain.heightmapPixelError = GameplayConstants.SuperTerrainPixelError; \t\t\t         return newTerrain;     } \t\t     \/\/\/ &lt;summary&gt;     \/\/\/ Initializes the terrain array and moves the terrain transforms to match their position in the array.     \/\/\/ &lt;\/summary&gt;     private void InitializeTerrainArray()     {         subterrains = new Terrain[Detail, Detail]; \t\t\t \tfor (int x = 0; x &lt; Detail; x++) { \t    for (int y = 0; y &lt; Detail; y++) { \t\tsubterrains[y, x] = BuildNewTerrain(); \t\tsubterrains[y, x].transform.Translate(new Vector3(x * GameplayConstants.SubterrainSize, \t\t\t                                                                       0f, \t\t\t                                                                       y * GameplayConstants.SubterrainSize)); \t    } \t}     } \t\t     \/\/\/ &lt;summary&gt;     \/\/\/ Initializes a new instance of the &lt;see cref=&quot;SuperTerrain&quot;\/&gt; class.     \/\/\/ &lt;\/summary&gt;     \/\/\/ &lt;param name=&quot;detail&quot;&gt;Superterrain detail. The resultsing superterrain is 2^detail terrains.&lt;\/param&gt;     \/\/\/ &lt;param name=&quot;parent&quot;&gt;Parent gameobject to nest created terrains into.&lt;\/param&gt;     public SuperTerrain(int detail, Transform parent)     {         Detail = detail; \tParent = parent; \t\t\t \tInitializeTerrainArray(); \tSetNeighbors();     }      \/\/\/ &lt;summary&gt;     \/\/\/ Iterates through the terrain object and sets the neightbours to match LOD settings.     \/\/\/ &lt;\/summary&gt;     private void SetNeighbors()     { \tForEachSubterrain ((x, y, subterrain) =&gt; {   \t\tsubterrain.SetNeighbors(SafeGetTerrain(x - 1, y), \t\t                                        SafeGetTerrain(x, y + 1), \t\t                                        SafeGetTerrain(x + 1, y), \t\t\t\t\t\t        SafeGetTerrain(x, y - 1)); \t});     }  #region [ Array Helpers ]     \/\/\/ &lt;summary&gt;     \/\/\/ Safely retrieves the terrain object from the array.     \/\/\/ &lt;\/summary&gt;     \/\/\/ &lt;param name=&quot;x&quot;&gt;The x coordinate.&lt;\/param&gt;     \/\/\/ &lt;param name=&quot;y&quot;&gt;The y coordinate.&lt;\/param&gt;     private Terrain SafeGetTerrain(int x, int y)     {         if (x &lt; 0 || y &lt; 0 || x &gt;= Detail || y &gt;= Detail) \t    return null; \treturn subterrains[y, x];     }      \/\/\/ &lt;summary&gt;     \/\/\/ Iterates over terrain object and executes the given action     \/\/\/ &lt;\/summary&gt;     \/\/\/ &lt;param name=&quot;lambda&quot;&gt;Lambda.&lt;\/param&gt;     private void ForEachSubterrain(Action&lt;int, int, Terrain&gt; lambda) {         for (int x = 0; x &lt; Detail; x++) { \t    for (int y = 0; y &lt; Detail; y++) { \t        lambda (x, y, SafeGetTerrain(x, y)); \t    } \t}     }  #endregion } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u043e\u0432 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 InitializeTerrainArray(), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 Terrain&#8217;\u043e\u0432 \u043d\u043e\u0432\u044b\u043c\u0438 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430\u043c\u0438 \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u0442 \u0438\u0445 \u043d\u0430 \u043d\u0443\u0436\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u0432 \u0438\u0433\u0440\u043e\u0432\u043e\u043c \u043c\u0438\u0440\u0435. \u041c\u0435\u0442\u043e\u0434 BuildNewTerrain() \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u0435\u0433\u043e \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442 \u0432\u043d\u0443\u0442\u0440\u044c GameObject&#8217;a \u00abparent\u00bb (\u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043d\u0430 \u0441\u0446\u0435\u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, \u0432\u043c\u0435\u0449\u0430\u044e\u0449\u0438\u0439 \u0432 \u0441\u0435\u0431\u044f chunk&#8217;\u0438 SuperTerrain&#8217;\u0430, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0437\u0430\u0433\u0440\u044f\u0437\u043d\u044f\u0442\u044c \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440 \u043b\u0438\u0448\u043d\u0438\u043c\u0438 \u0438\u0433\u0440\u043e\u0432\u044b\u043c\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438 \u0438 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c cleanup, \u0435\u0441\u043b\u0438 \u043e\u043d \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f.)<\/p>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0447\u0435\u0440\u043d\u044b\u043c\u0438 \u043f\u043e\u043b\u043e\u0441\u0430\u043c\u0438 \u043d\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0430\u0445 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430 \u2014 \u043c\u0435\u0442\u043e\u0434 SetNeighbours(), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0442\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u043c \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430\u043c \u0438 \u043f\u0440\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u043c \u0441\u043e\u0441\u0435\u0434\u0435\u0439. <b>\u0412\u0430\u0436\u043d\u043e\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435: <\/b> \u043c\u0435\u0442\u043e\u0434 TerrainData.SetNeighbors() \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f <b>\u0434\u043b\u044f \u0432\u0441\u0435\u0445<\/b> \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u043e\u0432 \u0432 \u0433\u0440\u0443\u043f\u043f\u0435. \u0422\u043e \u0435\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u0432\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438, \u0447\u0442\u043e \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442 \u0410 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043e\u0441\u0435\u0434\u043e\u043c \u0441\u0432\u0435\u0440\u0445\u0443 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430 \u0412, \u0442\u043e \u0432\u0430\u043c \u0442\u0430\u043a\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0442\u043e \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442 \u0412 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043e\u0441\u0435\u0434\u043e\u043c \u0441\u043d\u0438\u0437\u0443 \u0434\u043b\u044f \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430 \u0410. \u042d\u0442\u0430 \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u043e\u043d\u044f\u0442\u043d\u0430, \u043e\u0434\u043d\u0430\u043a\u043e \u043e\u043d\u0430 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u0438\u0442\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u0430, \u043a\u0430\u043a \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435.<\/p>\n<p>  \u0412 \u043a\u043e\u0434\u0435 \u0432\u044b\u0448\u0435 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 divisor&#8217;\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0433\u043e \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430. \u0415\u0441\u043b\u0438 \u0447\u0435\u0441\u0442\u043d\u043e, \u044f \u0438 \u0441\u0430\u043c \u043d\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u043f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430 \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c (\u0431\u0435\u0437 divisor&#8217;\u0430) \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 (\u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0431\u0430\u0433\u043e\u043c, \u0430 \u043c\u043e\u0436\u0435\u0442 \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043b\u043e\u0445\u043e \u0447\u0438\u0442\u0430\u043b \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e). \u0414\u0430\u043d\u043d\u0430\u044f \u043f\u043e\u043f\u0440\u0430\u0432\u043a\u0430 \u0431\u044b\u043b\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0430 \u044d\u043c\u043f\u0438\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u0438 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043d\u0435 \u043f\u043e\u0434\u0432\u043e\u0434\u0438\u043b\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0435\u0435 \u043a\u0430\u043a \u0435\u0441\u0442\u044c.<\/p>\n<p>  \u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0433\u043b\u0438 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u043d\u0438\u0437\u0443 \u043b\u0438\u0441\u0442\u0438\u043d\u0433\u0430 \u0438\u043c\u0435\u044e\u0442\u0441\u044f \u0434\u0432\u0430 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u0430-\u0445\u044d\u043b\u043f\u0435\u0440\u0430. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433\u0430 (\u0442\u0430\u043a \u043a\u0430\u043a \u044f \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u043b\u0438\u0441\u0442\u0438\u043d\u0433\u0438 \u0431\u043e\u043b\u0435\u0435-\u043c\u0435\u043d\u0435\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0448\u043b\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433\u043e\u0432, \u043d\u043e \u0432\u0441\u0435 \u0435\u0449\u0435 \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u0430). \u042d\u0442\u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0438 \u0434\u0430\u043b\u044c\u0448\u0435, \u043f\u0440\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0439. \u0418\u0437 \u0438\u0445 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043e\u043d\u0438 \u0434\u0435\u043b\u0430\u044e\u0442.<\/p>\n<h6><b>\u041f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u044b \u0432\u044b\u0441\u043e\u0442<\/b><\/h6>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c, \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442 \u0441\u043e\u0437\u0434\u0430\u043d, \u043d\u0430\u0441\u0442\u0430\u043b\u043e \u0441\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0443\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u00ab\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u0430\u0440\u0442\u0443 \u0432\u044b\u0441\u043e\u0442\u00bb. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 SuperTerrain \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0430<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u043f\u0430\u0440\u0430 \u043c\u0435\u0442\u043e\u0434\u043e\u0432<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">    \/\/\/ &lt;summary&gt;     \/\/\/ Sets the global heightmap to match the given one. Given heightmap must match the (SubterrainHeightmapResolution * Detail).     \/\/\/ &lt;\/summary&gt;     \/\/\/ &lt;param name=&quot;heightmap&quot;&gt;Heightmap to set the heights from.&lt;\/param&gt;     public void SetGlobalHeightmap(float[,] heightmap) {         ForEachSubterrain((x, y, subterrain) =&gt; { \t    var chunkStartX = x * GameplayConstants.SuperTerrainHeightmapResolution; \t    var chunkStartY = y * GameplayConstants.SuperTerrainHeightmapResolution;             var nextChunkStartX = chunkStartX +  GameplayConstants.SuperTerrainHeightmapResolution + 1;             var nextChunkStartY = chunkStartY + GameplayConstants.SuperTerrainHeightmapResolution + 1;             var sumHm = GetSubHeightMap(heightmap, nextChunkStartX, nextChunkStartY, chunkStartX, chunkStartY)); \t    subterrain.terrainData.SetHeights(0, 0, subHm);                                                                   \t});     } \t\t     \/\/\/ &lt;summary&gt;     \/\/\/ Retrieves the minor heightmap from the entire heightmap array.     \/\/\/ &lt;\/summary&gt;     \/\/\/ &lt;returns&gt;The minor height map.&lt;\/returns&gt;     \/\/\/ &lt;param name=&quot;heightMap&quot;&gt;Major heightmap.&lt;\/param&gt;     \/\/\/ &lt;param name=&quot;Xborder&quot;&gt;Xborder.&lt;\/param&gt;     \/\/\/ &lt;param name=&quot;Yborder&quot;&gt;Yborder.&lt;\/param&gt;     \/\/\/ &lt;param name=&quot;x&quot;&gt;The x coordinate.&lt;\/param&gt;     \/\/\/ &lt;param name=&quot;y&quot;&gt;The y coordinate.&lt;\/param&gt;     private float[,] GetSubHeightMap (float[,] heightMap, int Xborder, int Yborder, int x, int y)     {         if (Xborder == x || Yborder == y || x &lt; 0 || y &lt; 0) \t    return null;  \tvar temp = new float[Yborder - y, Xborder - x]; \t    for (int i = x; i &lt; Xborder; i++) { \t        for(int j = y; j &lt; Yborder; j++) { \t\t    temp[j - y, i - x] = heightMap[j, i]; \t\t} \t    } \t          return temp;     } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u043e\u0433\u043b\u0430\u0441\u0435\u043d, \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u044d\u0442\u0430 \u043f\u0430\u0440\u0430 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u043e, \u043d\u043e \u044f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0432\u0441\u0435 \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c. \u0418\u0442\u0430\u043a, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 SetGlobalHeightmap \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0441\u0430\u043c\u043e \u0437\u0430 \u0441\u0435\u0431\u044f. \u0412\u0441\u0435, \u0447\u0442\u043e \u043e\u043d \u0434\u0435\u043b\u0430\u0435\u0442 \u2014 \u0438\u0442\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u043e \u0432\u0441\u0435\u043c chunk&#8217;\u0430\u043c (\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0434\u0435\u0441\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u044b subterrain&#8217;\u0430\u043c\u0438) \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442 \u043a \u043d\u0438\u043c \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u043e\u0442 \u043a\u0443\u0441\u043e\u0447\u0435\u043a \u043a\u0430\u0440\u0442\u044b \u0432\u044b\u0441\u043e\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0435\u0433\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c. \u0417\u0434\u0435\u0441\u044c \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0437\u043b\u043e\u043f\u043e\u043b\u0443\u0447\u043d\u044b\u0439 SetHeights, \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0430\u0441 \u0438\u0434\u0442\u0438 \u043d\u0430 \u0432\u0441\u0435 \u044d\u0442\u0438 \u0438\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f. \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u0438\u0437 \u043a\u043e\u0434\u0430, \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 SuperTerrainHeightmapResolution \u043d\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043d\u0430 1 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043a\u0430\u0440\u0442\u044b \u0432\u044b\u0441\u043e\u0442 \u043e\u0442 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u0434\u0432\u043e\u0439\u043a\u0438 (\u0447\u044c\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0431\u043e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0435\u043a\u0446\u0438\u0438). \u0418 \u043f\u0443\u0441\u0442\u044c \u0432\u0430\u0441 \u043d\u0435 \u0441\u043c\u0443\u0442\u0438\u0442 \u0435\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u2014 \u044d\u0442\u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 \u0445\u0440\u0430\u043d\u0438\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043a\u0430\u0440\u0442\u044b \u0432\u044b\u0441\u043e\u0442 \u0434\u043b\u044f chunk&#8217;\u0430, \u0430 \u043d\u0435 \u0434\u043b\u044f \u0432\u0441\u0435\u0433\u043e SuperTerrain. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043a\u043e\u0434 SuperTerrain \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b, \u044f \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043a\u0430\u0436\u0443 \u0432\u0430\u043c \u043a\u043b\u0430\u0441\u0441 GameplayConstants. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0442\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435, \u0447\u0442\u043e \u0436\u0435 \u0432\u0441\u0435 \u0442\u0430\u043a\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442. \u042f \u0443\u0431\u0440\u0430\u043b \u0438\u0437 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u0432\u0441\u0435 \u043d\u0435 \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0435\u0435\u0441\u044f \u043a SuperTerrain.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">GameplayConstants.cs<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">namespace Habitat.Game {     \/\/\/ &lt;summary&gt;     \/\/\/ Contains the gameplay constants.     \/\/\/ &lt;\/summary&gt;     public static class GameplayConstants     { \t\/\/\/ &lt;summary&gt; \t\/\/\/ The height of the world. Used in terrain raycasting and Superterrain generation. \t\/\/\/ &lt;\/summary&gt; \tpublic const float WorldHeight = 512f;  \t\/\/\/ &lt;summary&gt; \t\/\/\/ Number of the &quot;Terrain&quot; layer \t\/\/\/ &lt;\/summary&gt; \tpublic const int TerrainLayer = 8;  \t\/\/\/ &lt;summary&gt; \t\/\/\/ Calculated mask for raycasting against the terrain. \t\/\/\/ &lt;\/summary&gt; \tpublic const int TerrainLayerMask = 1 &lt;&lt; TerrainLayer;  \t\/\/\/ &lt;summary&gt; \t\/\/\/ Superterrain part side size. \t\/\/\/ &lt;\/summary&gt; \tpublic const int SubterrainSize = 256;  \t\/\/\/ &lt;summary&gt; \t\/\/\/ Heightmap resolution for the SuperTerrain. \t\/\/\/ &lt;\/summary&gt; \tpublic const int SuperTerrainHeightmapResolution = 512;  \t\/\/\/ &lt;summary&gt; \t\/\/\/ Pixel error for the SuperTerrain. \t\/\/\/ &lt;\/summary&gt;         public const int SuperTerrainPixelError = 1;     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0427\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u0430 GetSubHeightMap, \u0442\u043e \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0445\u044d\u043b\u043f\u0435\u0440, \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u0447\u0430\u0441\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0439 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0432 \u043c\u0430\u0442\u0440\u0438\u0446\u0443-\u043c\u0438\u043d\u043e\u0440. \u042d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e SetHeights \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u043c\u0430\u0442\u0440\u0438\u0446\u044b. \u042d\u0442\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0446\u0435\u043b\u0443\u044e \u043a\u0443\u0447\u0443 \u043b\u0438\u0448\u043d\u0438\u0445 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0439 \u043f\u0430\u043c\u044f\u0442\u0438, \u043d\u043e \u0441 \u043d\u0438\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u043e\u0434\u0435\u043b\u0430\u0442\u044c. \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 Unity \u043d\u0435 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<p>  \u041c\u0435\u0442\u043e\u0434 GetSubHeightMap \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u0440\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0439, \u043d\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u043f\u043e\u0437\u0436\u0435. <\/p>\n<h6><b>\u041f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0439<\/b><\/h6>\n<p>  \u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0439 \u043d\u0443\u0436\u043d\u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u0440\u0442\u0430 \u0432\u044b\u0441\u043e\u0442, \u043d\u043e \u0438 \u043f\u0440\u043e\u0447\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0442\u0438\u043f\u0430 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442, \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432 \u0438 \u0442.\u0434. \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0432\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0432 \u043a\u043b\u0430\u0441\u0441 TerrainDeformation, \u043b\u0438\u0441\u0442\u0438\u043d\u0433 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0437\u0434\u0435\u0441\u044c.<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">namespace Habitat.DynamicTerrain.Deformation {     public abstract class TerrainDeformation     { \t\/\/\/ &lt;summary&gt; \t\/\/\/ Height of the deformation in hightmap pixels. \t\/\/\/ &lt;\/summary&gt;         public int H { get; private set; } \t         \/\/\/ &lt;summary&gt; \t\/\/\/ Width of the deformation in hightmap pixels. \t\/\/\/ &lt;\/summary&gt;         public int W { get; private set; } \t         \/\/\/ &lt;summary&gt; \t\/\/\/ Heightmap matrix object \t\/\/\/ &lt;\/summary&gt;         public float[,] Heightmap { get; private set; } \t         \/\/\/ &lt;summary&gt; \t\/\/\/ Initializes a new instance of the &lt;see cref=&quot;Habitat.DynamicTerrain.Deformation.TerrainDeformation&quot;\/&gt; class. \t\/\/\/ &lt;\/summary&gt; \t\/\/\/ &lt;param name=&quot;height&quot;&gt;Height in heightmap pixels&lt;\/param&gt; \t\/\/\/ &lt;param name=&quot;width&quot;&gt;Width in heightmap pixels&lt;\/param&gt;         protected TerrainDeformation(int height, int width)         {             H = height;             W = width; \t    Heightmap = new float[height,width];         }  \t\/\/\/ &lt;summary&gt; \t\/\/\/ Initializes a new instance of the &lt;see cref=&quot;Habitat.DynamicTerrain.Deformation.TerrainDeformation&quot;\/&gt; class. \t\/\/\/ &lt;\/summary&gt; \t\/\/\/ &lt;param name=&quot;bitmap&quot;&gt;Normalized heightmap matrix.&lt;\/param&gt;         protected TerrainDeformation(float[,] bitmap)         {             Heightmap = bitmap;             H = bitmap.GetUpperBound(0);             W = bitmap.GetUpperBound(1);         }  \t\/\/\/ &lt;summary&gt; \t\/\/\/ Applies deformation to the point. Additive by default. \t\/\/\/ &lt;\/summary&gt; \t\/\/\/ &lt;returns&gt;The to point.&lt;\/returns&gt; \t\/\/\/ &lt;param name=&quot;currentValue&quot;&gt;Current value.&lt;\/param&gt; \t\/\/\/ &lt;param name=&quot;newValue&quot;&gt;New value.&lt;\/param&gt; \tpublic virtual float ApplyToPoint(float currentValue, float newValue) { \t    return currentValue + newValue; \t}  \t\/\/\/ &lt;summary&gt; \t\/\/\/ Generates the heightmap matrix based on constructor parameters. \t\/\/\/ &lt;\/summary&gt; \tpublic abstract TerrainDeformation Generate();     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041d\u0435\u0441\u043b\u043e\u0436\u043d\u043e \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u0438 \u044d\u0442\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 Generate(), \u0433\u0434\u0435 \u0438 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u043b\u043e\u0433\u0438\u043a\u0443 \u043f\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e heightmap&#8217;\u0430 \u0434\u043b\u044f \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438. \u0422\u0430\u043a\u0436\u0435 TerrainDeformation \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u043a \u0442\u0435\u043a\u0443\u0449\u0435\u043c\u0443 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0443 \u2014 \u044d\u0442\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 ApplyToPoint. \u041f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u043d \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043a\u0430\u043a \u0430\u0434\u0434\u0438\u0442\u0438\u0432\u043d\u0443\u044e, \u043d\u043e \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0432 \u043c\u0435\u0442\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0432\u0443\u0445 \u0432\u044b\u0441\u043e\u0442. \u0427\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0430 \u0441\u0443\u0431-\u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0438\u0445 \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c chunk&#8217;\u0430\u043c, \u0442\u043e \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043a\u043b\u0430\u0441\u0441\u0435 SuperTerrain \u0438 \u0432\u044b\u0434\u0435\u043b\u0435\u043d \u0432 <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0433\u0440\u0443\u043f\u043f\u0443 \u043c\u0435\u0442\u043e\u0434\u043e\u0432:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">\/\/\/ &lt;summary&gt; \/\/\/ Compound terrain object. \/\/\/ &lt;\/summary&gt; public class SuperTerrain  {         \/\/...      \/\/\/&lt;summary&gt;     \/\/\/Resolution of each terrain in the SuperTerrain;     \/\/\/&lt;\/summary&gt;     private readonly int hmResolution = GameplayConstants.SuperTerrainHeightmapResolution;      \/\/\/ Applies the partial heightmap to a single terrain object.     \/\/\/ &lt;\/summary&gt;     \/\/\/ &lt;param name=&quot;heightmap&quot;&gt;Heightmap.&lt;\/param&gt;     \/\/\/ &lt;param name=&quot;chunkX&quot;&gt;Terrain x.&lt;\/param&gt;     \/\/\/ &lt;param name=&quot;chunkY&quot;&gt;Terrain y.&lt;\/param&gt;     \/\/\/ &lt;param name=&quot;startX&quot;&gt;Start x.&lt;\/param&gt;     \/\/\/ &lt;param name=&quot;startY&quot;&gt;Start y.&lt;\/param&gt;     \/\/\/ &lt;param name=&quot;type&quot;&gt;Deformation type.&lt;\/param&gt;     private void ApplyPartialHeightmap(float[,] heightmap, int chunkX, int chunkY,                                                             int startX, int startY, TerrainDeformation td)     { \tif (heightmap == null)             return;  \tvar current = subterrains [chunkY, chunkX].terrainData.GetHeights(             startX,             startY,             heightmap.GetUpperBound (1) + 1,             heightmap.GetUpperBound (0) + 1);  \t         for (int x = 0; x &lt;= heightmap.GetUpperBound(1); x++) {             for (int y = 0; y &lt;= heightmap.GetUpperBound(0); y++) { \t\tcurrent[y, x] = td.ApplyToPoint(current[y, x], heightmap[y, x]); \t    } \t} \t         subterrains[chunkY, chunkX].terrainData.SetHeights (startX, startY, current);     }      private int TransformCoordinate (float coordinate)     {         return Mathf.RoundToInt(coordinate * hmResolution \/ GameplayConstants.SubterrainSize);     }      \/\/\/ &lt;summary&gt;     \/\/\/ Applies the local deformation.     \/\/\/ &lt;\/summary&gt;     \/\/\/ &lt;param name=&quot;deformation&quot;&gt;Deformation.&lt;\/param&gt;     \/\/\/ &lt;param name=&quot;x&quot;&gt;The x coordinate.&lt;\/param&gt;     \/\/\/ &lt;param name=&quot;y&quot;&gt;The y coordinate.&lt;\/param&gt;     public void ApplyDeformation(TerrainDeformation td, float xCoord, float yCoord)     {         int x = TransformCoordinate (xCoord); \tint y = TransformCoordinate (yCoord);  \tvar chunkX = x \/ hmResolution; \tvar chunkY = y \/ hmResolution;          ApplyPartialHeightmap(GetBottomLeftSubmap(td, x, y), chunkX - 1, chunkY - 1, hmResolution, hmResolution, td); \tApplyPartialHeightmap(GetLeftSubmap(td, x, y), chunkX - 1, chunkY, hmResolution, y % hmResolution, td); \tApplyPartialHeightmap(GetTopLeftSubmap(td, x, y), chunkX - 1, chunkY + 1, hmResolution, 0, td); \tApplyPartialHeightmap(GetBottomSubmap(td, x, y), chunkX, chunkY - 1, x % hmResolution, hmResolution, td); \tApplyPartialHeightmap(GetBottomRightSubmap(td, x, y), chunkX + 1, chunkY - 1, 0, hmResolution, td); \tApplyPartialHeightmap(GetMiddleSubmap(td, x, y), chunkX, chunkY, x % hmResolution, y % hmResolution, td); \tApplyPartialHeightmap(GetTopSubmap(td, x, y), chunkX, chunkY + 1, x % hmResolution, 0, td); \tApplyPartialHeightmap(GetRightSubmap(td, x, y), chunkX + 1, chunkY, 0, y % hmResolution, td);    \tApplyPartialHeightmap(GetTopRightSubmap(td, x, y), chunkX + 1, chunkY + 1, 0, 0, td);                 }              \/\/\/Retrieves the bottom-left part of the deformation (Subheightmap, applied to the bottom     \/\/\/left chunk of the targetChunk) or null if no such submap has to be applied.     \/\/\/Covers corner cases     private float[,] GetBottomLeftSubmap(TerrainDeformation td, int x, int y) {        if (x % hmResolution == 0 && y % hmResolution == 0 && x \/ hmResolution &gt; 0 && y \/ hmResolution &gt; 0)        {            return new float[,] {{ td.Heightmap[0, 0] }};        }        return null;     }              \/\/\/Retrieves the left part of the deformation (Subheightmap, applied to the     \/\/\/left chunk of the targetChunk) or null if no such submap has to be applied.     \/\/\/Covers edge cases             private float[,] GetLeftSubmap(TerrainDeformation td, int x, int y) {         if (x % hmResolution == 0 && x \/ hmResolution &gt; 0)         {             int endY = Math.Min((y \/ hmResolution + 1) * hmResolution, y + td.H);             return GetSubHeightMap(td.Heightmap, 1, endY - y, 0, 0);         }         return null;     }              \/\/\/Retrieves the bottom part of the deformation (Subheightmap, applied to the bottom     \/\/\/chunk of the targetChunk) or null if no such submap has to be applied.     \/\/\/Covers edge cases     private float[,] GetBottomSubmap(TerrainDeformation td, int x, int y) {         if (y % hmResolution == 0 && y \/ hmResolution &gt; 0)         {             int endX = Math.Min((x \/ hmResolution + 1) * hmResolution, x + td.W);             return GetSubHeightMap(td.Heightmap, endX - x, 1, 0, 0);         }         return null;     }              \/\/\/Retrieves the top-left part of the deformation (Subheightmap, applied to the top     \/\/\/left chunk of the targetChunk) or null if no such submap has to be applied.     \/\/\/Covers split edge cases     private float[,] GetTopLeftSubmap(TerrainDeformation td, int x, int y) {         if (x % hmResolution == 0 && x \/ hmResolution &gt; 0)         {             int startY = (y \/ hmResolution + 1) * hmResolution;             int endY = y + td.H;             if (startY &gt; endY) return null;             return GetSubHeightMap(td.Heightmap, 1, td.H, 0, startY - y);         }         return null;     }      \/\/\/Retrieves the bottom-right part of the deformation (Subheightmap, applied to the bottom     \/\/\/right chunk of the targetChunk) or null if no such submap has to be applied.     \/\/\/Covers split edge cases     private float[,] GetBottomRightSubmap(TerrainDeformation td, int x, int y) {         if (y % hmResolution == 0 && y \/ hmResolution &gt; 0)         {             int startX = (x \/ hmResolution + 1) * hmResolution;             int endX = x + td.W;             if (startX &gt; endX) return null;             return GetSubHeightMap(td.Heightmap, td.W, 1, startX - x, 0);         }         return null;     }              \/\/\/Retrieves the main deformation part.     private float[,] GetMiddleSubmap(TerrainDeformation td, int x, int y) {         int endX = Math.Min((x \/ hmResolution + 1) * hmResolution, x + td.W);         int endY = Math.Min((y \/ hmResolution + 1) * hmResolution, y + td.H);         return GetSubHeightMap(td.Heightmap,                       Math.Min(endX - x + 1, td.Heightmap.GetUpperBound(0) + 1),                       Math.Min(endY - y + 1, td.Heightmap.GetUpperBound(1) + 1),                       0, 0);     }          \/\/\/Retrieves the top deformation part or null if none required     private float[,] GetTopSubmap(TerrainDeformation td, int x, int y) {         int startY = (y \/ hmResolution + 1) * hmResolution;         if (y + td.H &lt; startY) return null;         int endX = Math.Min((x \/ hmResolution + 1) * hmResolution, x + td.W);           return GetSubHeightMap(td.Heightmap, Math.Min (endX - x + 1, td.Heightmap.GetUpperBound(0) + 1), td.H, 0, startY - y);      }              \/\/\/Retrieves the left deformation part or null if none required     private float[,] GetRightSubmap(TerrainDeformation td, int x, int y) {         int startX = (x \/ hmResolution + 1) * hmResolution;         if (x + td.W &lt; startX) return null;         int endY = Math.Min((y \/ hmResolution + 1) * hmResolution, y + td.H);         return GetSubHeightMap(td.Heightmap, td.W, Math.Min(endY - y + 1, td.Heightmap.GetUpperBound(1) + 1), startX - x, 0);     }              \/\/\/Retrieves the top-right part of the main deformation.     private float[,] GetTopRightSubmap(TerrainDeformation td, int x, int y) {         int startX = (x \/ hmResolution + 1) * hmResolution;         int startY = (y \/ hmResolution + 1) * hmResolution;         if (x + td.W &lt; startX || y + td.H &lt; startY) return null;         return GetSubHeightMap(td.Heightmap, td.W, td.H, startX - x, startY - y);     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041a\u0430\u043a \u0432\u044b \u0443\u0436\u0435 \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u0434\u043e\u0433\u0430\u0434\u0430\u043b\u0438\u0441\u044c, \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 public \u043c\u0435\u0442\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0435\u0441\u0442\u044c \u0432 \u043b\u0438\u0441\u0442\u0438\u043d\u0433\u0435 \u2014 \u0438 \u0435\u0441\u0442\u044c \u0441\u0430\u043c\u044b\u0439 \u0433\u043b\u0430\u0432\u043d\u044b\u0439. \u041c\u0435\u0442\u043e\u0434 ApplyDeformation() \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043a \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0443 \u0432 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u0445. \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u043f\u0440\u0438 \u0435\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u044f \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u043d\u0430 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0435 \u0432 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043d\u0430 \u043a\u0430\u0440\u0442\u0435 \u0432\u044b\u0441\u043e\u0442 (\u043f\u043e\u043c\u043d\u0438\u0442\u0435? \u0415\u0441\u043b\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430 \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u043e\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043a\u0430\u0440\u0442\u044b \u0432\u044b\u0441\u043e\u0442, \u0442\u043e \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0443\u0447\u0435\u0441\u0442\u044c). \u0412\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u043f\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044e \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432\u043d\u0443\u0442\u0440\u0438 \u0434\u0435\u0432\u044f\u0442\u0438 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 ApplyPartialHeightmap, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442 \u043a\u0443\u0441\u043a\u0438 \u043a\u0430\u0440\u0442\u044b \u0432\u044b\u0441\u043e\u0442 \u043e\u0442 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u0438\u043c chunk&#8217;\u0430\u043c. \u041a\u0430\u043a \u044f \u0443\u0436\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u0440\u0430\u043d\u0435\u0435, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u0435\u0432\u044f\u0442\u044c \u0447\u0430\u0441\u0442\u0435\u0439, \u0430 \u043d\u0435 \u0447\u0435\u0442\u044b\u0440\u0435 \u0447\u0442\u043e\u0431\u044b \u0443\u0447\u0435\u0441\u0442\u044c \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0433\u0440\u0430\u043d\u0438\u0447\u043d\u044b\u0435 \u0438 \u0443\u0433\u043b\u043e\u0432\u044b\u0435 \u0441\u043b\u0443\u0447\u0430\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/3e8\/561\/7b6\/3e85617b67db4d599ea0a7e500afa224.png\"\/><\/p>\n<p>  \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0438\u043c \u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u044b GetXXXSubmap() \u2014 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043c\u0438\u043d\u043e\u0440\u043e\u0432 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438 \u0433\u0440\u0430\u043d\u0438\u0446\u0430\u0445 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 chunk&#8217;\u043e\u0432. \u041a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 null, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0432\u043b\u0438\u044f\u043d\u0438\u044f \u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 chunk \u0438 \u043c\u0435\u0442\u043e\u0434 \u043f\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044e \u044d\u0442\u0438\u0445 \u0441\u0430\u043c\u044b\u0445 \u043c\u0438\u043d\u043e\u0440\u043e\u0432 (ApplyPartialHeightmap()) \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u0442, \u0435\u0441\u043b\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434 \u0435\u043c\u0443 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 null. <\/p>\n<h4><b>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0438 \u0432\u044b\u0432\u043e\u0434\u044b<\/b><\/h4>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0434\u0430\u043b\u0435\u043a \u043e\u0442 \u0438\u0434\u0435\u0430\u043b\u0430, \u043d\u043e \u043e\u043d \u0443\u0436\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0435\u043d \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0430\u0436\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043a\u043e\u0435-\u043a\u0430\u043a\u043e\u0439 \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u0438 \u0432 \u043f\u043b\u0430\u043d\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u0421\u0440\u0435\u0434\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435:<\/p>\n<ul>\n<li> \u0422\u044f\u0436\u0435\u043b\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435, \u0447\u0442\u043e\u0431\u044b \u0441\u043d\u0438\u0437\u0438\u0442\u044c \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u043d\u0430 framerate \u0432 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u044b\u0445 \u0441\u0446\u0435\u043d\u0430\u0445. <\/li>\n<li> \u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u0435 \u043d\u0430 \u043c\u0438\u043d\u043e\u0440\u044b, \u0438\u0437\u0431\u0430\u0432\u0438\u0432\u0448\u0438\u0441\u044c \u043e\u0442 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041f\u043e\u043a\u0430-\u0447\u0442\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u043e\u0436\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c\u0441\u044f \u0441\u0430\u043c\u044b\u043c\u0438 \u0447\u0430\u0441\u0442\u044b\u043c\u0438 \u043a\u0435\u0439\u0441\u0430\u043c\u0438 \u2014 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u0440\u044f\u043c\u043e \u043f\u043e \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435 chunk&#8217;\u0430. <\/li>\n<li> \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u044e \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430, \u043d\u043e \u0438 \u043d\u0430 \u0435\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0443\u0440\u0443 \u2014 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0441 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c splat-map&#8217;\u043e\u0432. <\/li>\n<li> \u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0434\u0444\u0435\u043e\u0440\u043c\u0430\u0446\u0438\u0439 \u0437\u0430 \u043e\u0434\u0438\u043d \u043a\u0430\u0434\u0440. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u0442\u044c \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0434\u043b\u044f chunk&#8217;\u043e\u0432 \u0432 \u043a\u0430\u043a\u043e\u043c-\u043d\u0438\u0431\u0443\u0434\u044c \u0431\u0443\u0444\u0435\u0440\u0435 \u0438 \u043f\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043b\u043e\u0433\u0438\u043a\u0438 \u043a\u0430\u043a\u0438\u043c-\u043b\u0438\u0431\u043e \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0438\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u2014 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043e\u0434\u0438\u043d \u0432\u044b\u0437\u043e\u0432 SetHeights \u043d\u0430 chunk, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0431\u044b\u043b\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0439. <\/li>\n<\/ul>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b<\/b><\/p>\n<div class=\"spoiler_text\">\u041c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0435, \u0435\u0434\u0432\u0430 \u0437\u0430\u043c\u0435\u0442\u043d\u044b\u0435 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438\u0437-\u0437\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u043f\u0430\u0434\u0430\u043d\u0438\u0439 \u0441\u043d\u0430\u0440\u044f\u0434\u043e\u0432:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/4ad\/307\/b8c\/4ad307b8c936403aa9fba8f24d798135.png\"\/><\/p>\n<p>  \u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0440\u0430\u0437\u043b\u043e\u043c \u0432 \u0437\u0435\u043c\u043b\u0435 (\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0431\u044b\u043b\u0438 \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u043d\u044b \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u043e, \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 \u2014 \u00ab\u0437\u0443\u0431\u0447\u0430\u0442\u044b\u0435\u00bb \u0441\u0442\u0435\u043d\u043a\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/17e\/05e\/0cb\/17e05e0cb756495e8203eecb42e2a725.png\"\/><\/p>\n<p>  \u041e\u0434\u0438\u043d \u0438\u0437 chunk&#8217;\u043e\u0432 \u0432\u044b\u0434\u0435\u043b\u0435\u043d, \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0430 \u0441\u0442\u044b\u043a\u0430\u0445 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u0432\u0435\u0440\u043d\u043e, \u0432\u0438\u0434\u0438\u043c\u044b\u0445 \u0440\u0430\u0437\u0440\u044b\u0432\u043e\u0432 \u043d\u0435\u0442:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/b70\/586\/623\/b70586623d034a24a86f704833586f65.png\"\/><\/p>\n<p>  \u0411\u043e\u043b\u044c\u0448\u043e\u0439 \u043a\u0440\u0430\u0442\u0435\u0440, \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0439 \u0432\u0435\u0441\u044c chunk.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/c7e\/838\/bf4\/c7e838bf4e9f48bd811ab5c27cf311da.png\"\/>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412\u0438\u0434\u0435\u043e<\/b><\/p>\n<div class=\"spoiler_text\"><a href=\"https:\/\/www.youtube.com\/watch?v=GGgEALJ1MoE\">\u041c\u0430\u043b\u044b\u0435 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e\u0442 \u0432\u044b\u0441\u0442\u0440\u0435\u043b\u043e\u0432<\/a><\/p>\n<p>  <a href=\"https:\/\/www.youtube.com\/watch?v=yMv34YodQbE\">\u0410\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0438 \u043a\u0440\u0430\u0442\u0435\u0440\u044b<\/a>  <\/div>\n<\/div>\n<p>  \u0418, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0438\u0433\u0440\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0435 \u0434\u0435\u043c\u043e:<\/p>\n<p>  <a href=\"https:\/\/drive.google.com\/file\/d\/0ByET7N3PxyMbOEE4ZWlURmtvcnM\/view?usp=sharing\">\u0414\u043b\u044f Windows<\/a><\/p>\n<p>  <a href=\"https:\/\/drive.google.com\/file\/d\/0ByET7N3PxyMbb2xGMkc5N0ljTFU\/view?usp=sharing\">\u0414\u043b\u044f Linux<\/a><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439<\/b><\/p>\n<div class=\"spoiler_text\">\u042d\u0442\u043e \u043d\u0435 \u0434\u0435\u043c\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0439, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 RTS, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u044f \u0434\u0435\u043b\u0430\u044e. \u0412 \u043d\u0435\u0439 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u0435\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442 \u0438 \u044d\u0442\u0430 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u0439. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0432\u0435\u0449\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442 \u0432 \u0438\u0433\u0440\u0435 \u2014 \u044d\u0442\u043e \u0441\u0442\u0440\u0435\u043b\u044c\u0431\u0430 \u0442\u0430\u043d\u043a\u043e\u0432. \u041e\u0434\u043d\u0430\u043a\u043e, \u043d\u0430\u0436\u0430\u0432 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0448\u0443 &quot;~&quot; \u0432 \u0438\u0433\u0440\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c development console. \u041d\u0430\u043f\u0438\u0441\u0430\u0432 \u00abman\u00bb \u0438\u043b\u0438 \u00abhelp\u00bb, \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434, \u0441\u0440\u0435\u0434\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u0443\u0434\u0443\u0442 spawn_crater \u0438 sv_spawn_animdef. \u0418\u0445 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043a\u0440\u0430\u0442\u0435\u0440\/\u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043a\u0430\u043a \u0432 \u0432\u0438\u0434\u0435\u043e. \u042f \u0431\u0443\u0434\u0443 \u043e\u0447\u0435\u043d\u044c \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0435\u043d \u0432\u0430\u043c, \u0435\u0441\u043b\u0438 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0434\u0435\u043c\u043e \u043d\u0430 \u0441\u0432\u043e\u0435\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 benchmark&#8217;\u0438 \u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b (\u0432\u0430\u0448 framerate \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0434\u0435\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0432\u0430\u0448\u0438 \u043e\u0449\u0443\u0449\u0435\u043d\u0438\u044f \u0432 \u0446\u0435\u043b\u043e\u043c) \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f \u043a \u0430\u0440\u0445\u0438\u0432\u0443 \u0441 \u0434\u0435\u043c\u043e (\u043d\u0430 google drive).<\/p>\n<p>  \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u0414\u0435\u043c\u043e: \u041c\u044b\u0448\u044c + WASD = \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043a\u0430\u043c\u0435\u0440\u044b. \u041a\u043e\u043b\u0435\u0441\u0438\u043a\u043e \u043c\u044b\u0448\u0438 = \u0437\u0443\u043c. Ctrl = \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043a\u0430\u043c\u0435\u0440\u0443.  <\/div>\n<\/div>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/269645\/\"> http:\/\/habrahabr.ru\/post\/269645\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0414\u0430\u0432\u043d\u044b\u043c-\u0434\u0430\u0432\u043d\u043e \u044f \u0438\u043c\u0435\u043b \u0440\u0430\u0434\u043e\u0441\u0442\u044c \u0438\u0433\u0440\u0430\u0442\u044c \u0432 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0435\u0439\u0448\u0443\u044e RTS \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u00ab\u041f\u0435\u0440\u0438\u043c\u0435\u0442\u0440: \u0413\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u044f \u0412\u043e\u0438\u043d\u044b\u00bb (\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 steam) \u043e\u0442 \u043e\u0442\u0435\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 K-D Labs. \u042d\u0442\u043e \u0438\u0433\u0440\u0430 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0435 \u043b\u0435\u0442\u0430\u044e\u0449\u0438\u0435 \u0433\u043e\u0440\u043e\u0434\u0430 \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u00ab\u0424\u0440\u0435\u0439\u043c\u044b\u00bb \u0431\u043e\u0440\u043e\u0437\u0434\u044f\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u044b \u00ab\u0421\u043f\u0430\u043d\u0434\u0436\u0430\u00bb \u2014 \u0446\u0435\u043f\u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0445 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u043c\u0438\u0440\u043e\u0432. \u0421\u044e\u0436\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0439 \u0438 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u044b\u0439, \u043d\u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u0438 \u0438\u043d\u043d\u043e\u0432\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0439 \u0438\u0433\u0440\u044b \u0431\u044b\u043b\u0430 \u043e\u0434\u043d\u0430 \u0438\u0437 \u0435\u0435 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439, \u0430 \u043d\u0435 \u0441\u044e\u0436\u0435\u0442. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 RTS, \u0433\u0434\u0435 \u0441\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0442 \u043d\u0430 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043c\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u0432 \u00ab\u041f\u0435\u0440\u0438\u043c\u0435\u0442\u0440\u0435\u00bb, \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u043c\u0435\u0445\u0430\u043d\u0438\u043a \u0431\u044b\u043b \u0442\u0435\u0440\u0440\u0430\u0444\u043e\u0440\u043c\u0438\u043d\u0433. \u0423 \u0438\u0433\u0440\u043e\u043a\u0430 \u0431\u044b\u043b\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u043e\u043c \u0441 \u0446\u0435\u043b\u044c\u044e \u0432\u043e\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043d\u0430 \u043d\u0435\u043c \u0441\u0432\u043e\u0438\u0445 \u0441\u043e\u043e\u0440\u0443\u0436\u0435\u043d\u0438\u0439 \u0430 \u0442\u0430\u043a\u0436\u0435 \u0446\u0435\u043b\u044b\u0439 \u0430\u0440\u0441\u0435\u043d\u0430\u043b \u0431\u043e\u0435\u0432\u044b\u0445 \u0435\u0434\u0438\u043d\u0438\u0446, \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u0445 \u044d\u0442\u043e\u0442 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0432 \u043f\u043e\u0442\u0440\u0435\u0441\u043a\u0430\u0432\u0448\u0438\u0439\u0441\u044f, \u043f\u043e\u043f\u043b\u044b\u0432\u0448\u0438\u0439 \u0438 \u0438\u0437\u0440\u044b\u0433\u0430\u044e\u0449\u0438\u0439 \u0440\u0430\u0441\u043a\u0430\u043b\u0435\u043d\u043d\u044b\u0435 \u043a\u0430\u043c\u043d\u0438\/\u043f\u0440\u043e\u0442\u0438\u0432\u043d\u044b\u0445 \u043d\u0430\u0441\u0435\u043a\u043e\u043c\u044b\u0445 \u0443\u0436\u0430\u0441.<\/p>\n<p>  \u041a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u043c\u0438\u0440 RTS \u043d\u044b\u043d\u0447\u0435 \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043f\u0430\u0434\u043e\u043a. \u0418\u043d\u0434\u0438-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0437\u0430\u043d\u044f\u0442\u044b \u0442\u0435\u043c, \u0447\u0442\u043e \u043a\u043b\u0435\u043f\u0430\u044e\u0442 \u0440\u0435\u0442\u0440\u043e-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u0440\u044b \u0438 rouge-like \u0438\u0433\u0440\u044b \u0437\u0443\u0431\u043e\u0434\u0440\u043e\u0431\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438, \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443, \u043f\u0435\u0440\u0435\u0438\u0433\u0440\u0430\u0432 \u0432 \u00ab\u041f\u0435\u0440\u0438\u043c\u0435\u0442\u0440\u00bb \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0437\u0430\u0434 \u044f \u0440\u0435\u0448\u0438\u043b, \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u0435\u043d \u0438 \u0441\u0430\u043c \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435 \u2014 \u0438\u0434\u0435\u044f \u0431\u044b\u043b\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u0438 \u0441 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438 \u0441 \u0433\u0435\u0439\u043c\u043f\u043b\u0435\u0439\u043d\u043e\u0439 \u0442\u043e\u0447\u0435\u043a \u0437\u0440\u0435\u043d\u0438\u044f. \u041e\u0431\u043b\u0430\u0434\u0430\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043e\u043f\u044b\u0442\u043e\u043c \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0438\u0433\u0440 (\u0440\u0430\u043d\u0435\u0435 \u044f \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u043b \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043e\u0435-\u0447\u0442\u043e \u043d\u0430 XNA), \u044f \u043f\u043e\u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0445\u043e\u0442\u044c \u043a\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u0443\u0441\u043f\u0435\u0445\u0430 \u0432 \u043e\u0434\u0438\u043d\u043e\u0447\u043a\u0443 \u043c\u043d\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0447\u0435\u043c \u043d\u0438\u0431\u0443\u0434\u044c \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u043c \u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u043c. \u0412\u044b\u0431\u043e\u0440 \u043c\u043e\u0439 \u043f\u0430\u043b \u043d\u0430 Unity 3D, \u0447\u044c\u044f \u043f\u044f\u0442\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0442\u043e\u043b\u044c\u043a\u043e-\u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0448\u043b\u0430 \u0438\u0437 \u043f\u043e\u0434 \u043f\u0440\u0435\u0441\u0441\u0430. <\/p>\n<p>  \u0412\u043e\u043e\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0439 \u0432\u0430\u0433\u043e\u043d\u043e\u043c \u044d\u043d\u0442\u0443\u0437\u0438\u0430\u0437\u043c\u0430, \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0435\u043d\u0438\u0435\u043c \u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u00ab\u041f\u0435\u0440\u0438\u043c\u0435\u0442\u0440\u0430\u00bb \u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043d\u043e\u0439 \u0441\u0435\u0440\u0438\u0435\u0439 \u0432\u0438\u0434\u0435\u043e\u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u043e\u0432 \u043f\u043e Unity, \u044f \u043d\u0430\u0447\u0430\u043b \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430\u0431\u0440\u043e\u0441\u043a\u0438 \u0438 \u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043d\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b Unity Editor.  <\/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-266898","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/266898","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=266898"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/266898\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=266898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=266898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=266898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}