{"id":337525,"date":"2022-08-25T21:00:13","date_gmt":"2022-08-25T21:00:13","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=337525"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=337525","title":{"rendered":"<span>Godot | Open Dungeon | \u0427\u0430\u0441\u0442\u044c beta<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0411\u043e\u043b\u044c\u0448\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u0434\u043b\u044f \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0430 \u0438\u0433\u0440\u044b: \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0443\u0440\u043e\u0432\u043d\u044f, \u0432\u0440\u0430\u0433\u0438, \u0430\u043f\u0433\u0440\u0435\u0439\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0435 \u0432\u044b\u0441\u0442\u0440\u0435\u043b\u044b.<\/p>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/6307c79ccca9c98d660475ad\" data-style=\"\" id=\"6307c79ccca9c98d660475ad\" width=\"\"><\/div>\n<p>\u0410\u0440\u0445\u0438\u0432 \u0441 \u0433\u043e\u0442\u043e\u0432\u044b\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435: <a href=\"https:\/\/thenonsense.itch.io\/opendungeon\" rel=\"noopener noreferrer nofollow\">https:\/\/thenonsense.itch.io\/opendungeon<\/a><\/p>\n<div class=\"embed_link\">\n<div class=\"embed__thumb\" style=\"background-image: url(&quot;https:\/\/img.itch.zone\/aW1nLzk4NTI3NzQuanBn\/original\/O9oAvV.jpg&quot;);\"><\/div>\n<div class=\"embed__caption\">\n<div class=\"embed__caption-title\"><span>Open Dungeon<\/span><\/div>\n<p><a href=\"https:\/\/thenonsense.itch.io\/opendungeon\" target=\"_blank\" rel=\"noopener noreferrer nofollow\" class=\"embed__caption-link\">thenonsense.itch.io<\/a><\/div>\n<\/div>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u043c \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f alfa \u0434\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f beta:<\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c Godot. \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 <strong>Open Dungeon<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0440\u0430\u043d\u0435\u0435 \u0432 <a href=\"https:\/\/habr.com\/ru\/post\/683986\/\" rel=\"noopener noreferrer nofollow\">\u0447\u0430\u0441\u0442\u0438 alpha<\/a> . \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0446\u0435\u043d\u0430 <strong>MainScene<\/strong>.<\/p>\n<details class=\"spoiler\">\n<summary>\u0423\u0440\u043e\u0432\u0435\u043d\u044c<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043a <strong>Main<\/strong> (\u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0443\u0437\u0435\u043b \u0441\u0446\u0435\u043d\u044b) \u043d\u043e\u0432\u044b\u0439 \u0443\u0437\u0435\u043b <strong>Spatial<\/strong>. \u041f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u043c \u0432 \u043d\u0435\u0433\u043e \u0432\u0441\u0435 \u043a\u043e\u043f\u0438\u0438 Pol \u0438 Pillar, \u0437\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u0443\u0435\u043c \u044d\u0442\u043e\u0442 \u0443\u0437\u0435\u043b \u0432 <strong>Level_A1<\/strong>.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/b54\/be4\/7aa\/b54be47aacfd2b4a2e57c39b5c4479d5.jpg\" alt=\"\u0434\u0430\u043b\u0435\u0435 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0443\u0437\u0435\u043b Spatial\" title=\"\u0434\u0430\u043b\u0435\u0435 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0443\u0437\u0435\u043b Spatial\" width=\"451\" height=\"233\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b54\/be4\/7aa\/b54be47aacfd2b4a2e57c39b5c4479d5.jpg\" data-blurred=\"true\"\/><figcaption>\u0434\u0430\u043b\u0435\u0435 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0443\u0437\u0435\u043b Spatial<\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/c6b\/330\/c34\/c6b330c341bfc3bcd29bc11485d903eb.jpg\" alt=\"\u041f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0432 Spatial\" title=\"\u041f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0432 Spatial\" width=\"750\" height=\"569\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c6b\/330\/c34\/c6b330c341bfc3bcd29bc11485d903eb.jpg\" data-blurred=\"true\"\/><figcaption>\u041f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0432 Spatial<\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/19f\/e27\/6b3\/19fe276b39a3f016fd940f0a93d101d1.jpg\" alt=\"\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c Spatial \u0432 Level_A1\" title=\"\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c Spatial \u0432 Level_A1\" width=\"686\" height=\"469\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/19f\/e27\/6b3\/19fe276b39a3f016fd940f0a93d101d1.jpg\" data-blurred=\"true\"\/><figcaption>\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c Spatial \u0432 Level_A1<\/figcaption><\/figure>\n<p>\u0429\u0451\u043b\u043a\u0430\u0435\u043c \u043f\u043e \u0443\u0437\u043b\u0443 \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439, \u0432\u044b\u0431\u0438\u0440\u0430\u044f <strong>Save Branch as Scene<\/strong>. \u0414\u0435\u043b\u0430\u0435\u043c \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u0449\u0435\u043b\u0447\u043e\u043a \u043d\u0430 \u043f\u0430\u043f\u043a\u0435 <strong>Prefabs<\/strong> (\u0432\u0445\u043e\u0434\u044f \u0432 \u043d\u0435\u0451) \u0437\u0430\u0442\u0435\u043c \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0441\u0432\u0435\u0440\u0445\u0443 \u0441\u043f\u0440\u0430\u0432\u0430 <strong>Create Folder<\/strong>. \u041f\u0438\u0448\u0435\u043c \u0438\u043c\u044f \u043f\u0430\u043f\u043a\u0438 &#8212; <strong>Levels<\/strong>. \u041e\u043a. \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043f\u0440\u0435\u0444\u0430\u0431 \u0443\u0440\u043e\u0432\u043d\u044f.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/31a\/f29\/f2d\/31af29f2d328b95b1a937b1d407c0aa3.jpg\" width=\"492\" height=\"586\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/31a\/f29\/f2d\/31af29f2d328b95b1a937b1d407c0aa3.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/68f\/3d4\/95f\/68f3d495f8feff18ed874237741a3d1f.jpg\" width=\"990\" height=\"366\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/68f\/3d4\/95f\/68f3d495f8feff18ed874237741a3d1f.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/95c\/798\/627\/95c7986278b1b452f0940315983e469b.jpg\" width=\"994\" height=\"368\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/95c\/798\/627\/95c7986278b1b452f0940315983e469b.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0446\u0435\u043d\u0435 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0437\u0435\u043b level_A1, \u0432\u0441\u0435 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0441\u0436\u0430\u043b\u0438\u0441\u044c \u0432\u043d\u0443\u0442\u0440\u044c \u043d\u0435\u0433\u043e. \u0412 Godot \u043c\u043e\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u0441\u0446\u0435\u043d\u044b-\u043f\u0440\u0435\u0444\u0430\u0431\u0430, \u043d\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044f \u0435\u0433\u043e \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e (\u0432 \u043c\u0435\u043d\u044f \u043f\u043e \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0435 \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 Editable Children), \u043d\u043e \u043c\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0438 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0441\u0446\u0435\u043d-\u043f\u0440\u0435\u0444\u0430\u0431\u043e\u0432 \u0431\u0443\u0434\u0435\u043c \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0438\u0445 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043e\u043a\u043d\u0435.<\/p>\n<p>\u041e\u0442\u043a\u0440\u043e\u0435\u043c <strong>Level_A1<\/strong> \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0446\u0435\u043d\u043e\u0439, \u0449\u0451\u043b\u043a\u043d\u0443\u0432 \u043f\u043e \u0437\u043d\u0430\u0447\u043a\u0443 \u0440\u044f\u0434\u043e\u043c \u0441 \u0433\u043b\u0430\u0437\u043e\u043c.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/c8e\/f90\/41e\/c8ef9041ec130a7bc2ce3cee50f0f765.jpg\" width=\"516\" height=\"465\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c8e\/f90\/41e\/c8ef9041ec130a7bc2ce3cee50f0f765.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/17a\/6a3\/fb8\/17a6a3fb8a0c4982ddf3c765663f54ea.jpg\" width=\"830\" height=\"504\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/17a\/6a3\/fb8\/17a6a3fb8a0c4982ddf3c765663f54ea.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u044b\u0434\u0435\u043b\u0438\u043c \u0443\u0437\u043b\u044b <strong>Pol_A<\/strong> \u0438 <strong>Pol_A2<\/strong>, \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c (Ctrl + D). \u0421\u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0430 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 Transform \u0432 \u043f\u043e\u043b\u0435 <strong>Translation<\/strong> \u0434\u043e\u043f\u0438\u0448\u0435\u043c \u043a <strong>0<\/strong> \u0432 \u044f\u0447\u0435\u0439\u043a\u0435 Z \u0435\u0449\u0451 <strong>\u043c\u0438\u043d\u0443\u0441 10<\/strong> \u0438 \u043d\u0430\u0436\u043c\u0451\u043c \u0432\u0432\u043e\u0434 (Enter). \u041a\u0430\u0436\u0434\u044b\u0439 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u0443\u0441\u043e\u0447\u0435\u043a \u0441\u0434\u0432\u0438\u043d\u0435\u0442\u0441\u044f \u043d\u0430 \u043c\u0438\u043d\u0443\u0441 10 \u043f\u0443\u043d\u043a\u0442\u043e\u0432, \u0438 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0443\u0436\u0435 4 \u043f\u0440\u0438\u043c\u044b\u043a\u0430\u044e\u0449\u0438\u0445 \u0434\u0440\u0443\u0433 \u043a \u0434\u0440\u0443\u0433\u0443 \u043a\u0443\u0441\u043a\u0430 \u043f\u043e\u043b\u0430.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/dbe\/6c6\/f90\/dbe6c6f901c57060579c5071f65ff2bd.jpg\" width=\"1271\" height=\"667\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/dbe\/6c6\/f90\/dbe6c6f901c57060579c5071f65ff2bd.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/28c\/3a9\/c59\/28c3a9c590fead3eb1bfe28a46720756.jpg\" width=\"902\" height=\"441\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/28c\/3a9\/c59\/28c3a9c590fead3eb1bfe28a46720756.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435 (\u043f\u0440\u0438\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u043d\u044f\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e), \u0442\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u0440\u0430\u0441\u0441\u0447\u0451\u0442\u0430 \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0432 \u043f\u043e\u043b\u0435 \u043a \u0442\u0435\u043a\u0443\u0449\u0435\u043c\u0443 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0443 <em>+ \u0447\u0438\u0441\u043b\u043e<\/em> \u0438\u043b\u0438 <em>&#8212; \u0447\u0438\u0441\u043b\u043e<\/em>, \u0447\u0442\u043e\u0431\u044b Godot \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u043b \u043d\u043e\u0432\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u0415\u0441\u043b\u0438 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u044b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043f\u043e\u043b\u0435\u0439 \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435 \u0431\u0443\u0434\u0435\u0442 \u043a\u0430\u0441\u0430\u0442\u044c\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u0438\u0445 \u0432\u0441\u0435\u0445 (\u0435\u0441\u043b\u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043e\u0434\u043d\u043e\u0442\u0438\u043f\u043d\u044b\u0435, \u0438\u043b\u0438 \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0435\u0441\u0442\u044c \u0443 \u0432\u0441\u0435\u0445 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432).<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0442\u0440\u0438 \u0443\u0437\u043b\u0430 Pillar \u0438 \u043e\u0442\u043e\u0434\u0432\u0438\u043d\u0435\u043c \u0438\u0445 \u0434\u0430\u043b\u044c\u0448\u0435 \u0437\u0430 \u0441\u0438\u043d\u044e\u044e \u0441\u0442\u0440\u0435\u043b\u043a\u0443 \u043f\u043e \u043e\u0441\u0438 Z.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/838\/483\/9d8\/8384839d8e438c9c51f107b7addc5352.jpg\" width=\"772\" height=\"388\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/838\/483\/9d8\/8384839d8e438c9c51f107b7addc5352.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0421\u0443\u043d\u0434\u0443\u043a\u0438<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0412\u044b\u0434\u0435\u043b\u0438\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0443\u0437\u0435\u043b <strong>Pillar_A6<\/strong> \u0438 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u0435\u0433\u043e \u043e\u0431\u0440\u0430\u0442\u043d\u043e, \u043d\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0435, \u0434\u043e\u0441\u0442\u0430\u0432 \u0438\u0437 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0436\u043c\u0451\u043c \u043d\u0430 \u0443\u0437\u0435\u043b \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u0438 \u0432\u044b\u0431\u0435\u0440\u0435\u043c \u043f\u0443\u043d\u043a\u0442 <strong>Make Lo\u0441al.<\/strong><\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/0cc\/159\/105\/0cc159105b5c7979d6f234c0f8165466.jpg\" width=\"472\" height=\"672\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0cc\/159\/105\/0cc159105b5c7979d6f234c0f8165466.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/515\/5a4\/073\/5155a4073141a8b122e314e4ea9430ad.jpg\" width=\"764\" height=\"520\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/515\/5a4\/073\/5155a4073141a8b122e314e4ea9430ad.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0420\u0430\u0441\u0442\u0440\u0435\u0431\u0443\u0448\u0438\u0432 \u043f\u0440\u0435\u0444\u0430\u0431 \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043d\u0438\u0436\u043d\u0438\u0439 \u043f\u0440\u0438\u043f\u043b\u044e\u0441\u043d\u0443\u0442\u044b\u0439 \u043a\u0443\u0431\u0438\u043a (MeshInstance3), \u043a\u043e\u043b\u043e\u043d\u043d\u0443 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u043c \u0434\u043e \u043a\u0443\u0431\u0430 \u0438 \u0441\u0434\u0432\u0438\u0433\u0430\u0435\u043c \u0432\u043d\u0438\u0437, \u0432\u0435\u0440x\u043d\u0438\u0439 \u0441\u043f\u043b\u044e\u0449\u0435\u043d\u043d\u044b\u0439 \u043a\u0443\u0431 \u043e\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0432\u0435\u0440\u0445\u0443, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044f \u043d\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u043c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0438.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/378\/eb8\/8ad\/378eb88ad9c2917a8c348ea906553270.jpg\" width=\"760\" height=\"328\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/378\/eb8\/8ad\/378eb88ad9c2917a8c348ea906553270.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/9ad\/225\/5cb\/9ad2255cb3fd99724d8cafd6c67d07ab.jpg\" width=\"742\" height=\"366\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9ad\/225\/5cb\/9ad2255cb3fd99724d8cafd6c67d07ab.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u0439\u0434\u0451\u043c \u0432 \u043f\u043e\u043b\u0435 <strong>Mesh<\/strong> \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 \u044d\u0442\u0438\u0445 \u0434\u0432\u0443\u0445 MeshInstance, \u0432\u044b\u0431\u0440\u0430\u0432 \u0442\u0430\u043c \u043e\u043f\u0446\u0438\u044e <strong>Make Unique<\/strong>. \u0412\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f, \u043e\u0434\u043d\u0430\u043a\u043e \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u044b \u043f\u0435\u0440\u0435\u043d\u0430\u0437\u043d\u0430\u0447\u0438\u043b\u0438 \u0441\u0435\u0442\u043a\u0430\u043c \u0444\u043e\u0440\u043c\u0443 \u0438 \u043e\u043d\u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u0430 \u043a \u0444\u043e\u0440\u043c\u0435, \u043e\u0441\u0442\u0430\u0432\u0448\u0435\u0439\u0441\u044f \u0443 \u043a\u0443\u0431\u0438\u043a\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u0435\u0444\u0430\u0431\u043e\u0432 \u0441 \u043a\u043e\u043b\u043e\u043d\u043d\u0430\u043c\u0438.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/437\/c50\/5fe\/437c505fef2aa1741f596d50e7237ba8.jpg\" width=\"1267\" height=\"625\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/437\/c50\/5fe\/437c505fef2aa1741f596d50e7237ba8.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0436\u0430\u0442\u044c \u043d\u0430 \u0443\u0437\u0435\u043b <strong>CollisionShape<\/strong> \u0438 \u0442\u043e\u0436\u0435 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043e\u043f\u0446\u0438\u044e <strong>Make Unique<\/strong> \u0432 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c \u0441\u043f\u0438\u0441\u043a\u0435 \u0434\u043b\u044f \u0435\u0433\u043e <strong>Shape<\/strong>. \u0415\u0441\u043b\u0438 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0442\u043e \u0432\u044b \u0441\u0430\u043c\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u044f \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u0430 \u0441 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u044f\u043c\u0438 \u043a\u043e\u043b\u043e\u043d\u043d &#8212; \u043f\u043e\u0442\u044f\u043d\u0443\u0432 \u0437\u0430 \u0442\u043e\u0447\u043a\u0443 \u043a\u0443\u0431\u0430 \u0438 \u0443\u0432\u0438\u0434\u0435\u0432, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u0435 \u043a\u0443\u0431\u0438\u043a\u0438 \u043a\u043e\u043b\u043e\u043d\u043d \u0442\u043e\u0436\u0435 \u0442\u044f\u043d\u0443\u0442\u0441\u044f. \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f Make Unique \u044d\u0442\u0430 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u044f \u0441\u0442\u0430\u043d\u0435\u0442 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0439, \u043d\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0439 \u0441 \u043f\u0440\u043e\u0447\u0438\u043c\u0438.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/121\/c1b\/034\/121c1b0343b7bd2729b349578d98e83d.jpg\" width=\"1251\" height=\"545\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/121\/c1b\/034\/121c1b0343b7bd2729b349578d98e83d.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/5c3\/646\/26d\/5c364626d479ca5303e7984529053905.jpg\" alt=\"\u0412\u0430\u0440\u0438\u0430\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 Make Unique \u043d\u0435 \u0431\u044b\u043b \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d - \u043a\u043e\u043b\u043b\u0430\u0439\u0434\u0435\u0440\u044b \u0432 \u043a\u043e\u043b\u043e\u043d\u043d\u0430\u0445 \u0442\u044f\u043d\u0443\u0442\u0441\u044f \u0432\u0441\u043b\u0435\u0434 \u0437\u0430 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u043c \u043a\u043e\u043b\u043b\u0430\u0439\u0434\u0435\u0440\u043e\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0430.\" title=\"\u0412\u0430\u0440\u0438\u0430\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 Make Unique \u043d\u0435 \u0431\u044b\u043b \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d - \u043a\u043e\u043b\u043b\u0430\u0439\u0434\u0435\u0440\u044b \u0432 \u043a\u043e\u043b\u043e\u043d\u043d\u0430\u0445 \u0442\u044f\u043d\u0443\u0442\u0441\u044f \u0432\u0441\u043b\u0435\u0434 \u0437\u0430 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u043c \u043a\u043e\u043b\u043b\u0430\u0439\u0434\u0435\u0440\u043e\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0430.\" width=\"568\" height=\"365\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5c3\/646\/26d\/5c364626d479ca5303e7984529053905.jpg\" data-blurred=\"true\"\/><figcaption>\u0412\u0430\u0440\u0438\u0430\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 Make Unique \u043d\u0435 \u0431\u044b\u043b \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d &#8212; \u043a\u043e\u043b\u043b\u0430\u0439\u0434\u0435\u0440\u044b \u0432 \u043a\u043e\u043b\u043e\u043d\u043d\u0430\u0445 \u0442\u044f\u043d\u0443\u0442\u0441\u044f \u0432\u0441\u043b\u0435\u0434 \u0437\u0430 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u043c \u043a\u043e\u043b\u043b\u0430\u0439\u0434\u0435\u0440\u043e\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0430.<\/figcaption><\/figure>\n<p>\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0443\u0437\u0435\u043b <strong>Pillar_A6<\/strong> \u0432 <strong>Chest_A<\/strong>. \u0412 \u043f\u043e\u043b\u0435 <strong>Translation<\/strong> \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u043e\u043a \u0441\u0431\u0440\u043e\u0441\u0430 \u043a\u043e\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442, \u0447\u0442\u043e\u0431\u044b Chest_A \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 (0 \u043f\u043e \u0432\u0441\u0435\u043c \u0442\u0440\u0451\u043c \u043e\u0441\u044f\u043c).<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/0f7\/df8\/cb6\/0f7df8cb61b035fd8242ed0bc5b93281.jpg\" width=\"1255\" height=\"497\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0f7\/df8\/cb6\/0f7df8cb61b035fd8242ed0bc5b93281.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/351\/22b\/8e2\/35122b8e29445bae027d3504c3bffaea.jpg\" width=\"1257\" height=\"592\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/351\/22b\/8e2\/35122b8e29445bae027d3504c3bffaea.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0445\u043e\u0434\u0438\u043c \u0435\u0433\u043e. \u0418 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043c \u0432 \u043f\u0440\u0435\u0444\u0430\u0431 (\u043f\u0440\u0430\u0432\u0430\u044f \u043a\u043d\u043e\u043f\u043a\u0430, <strong>Save Branch as Scene<\/strong>). <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/2ab\/f37\/3b3\/2abf373b3f37b085e50265f3cf0cacea.jpg\" width=\"686\" height=\"595\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2ab\/f37\/3b3\/2abf373b3f37b085e50265f3cf0cacea.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u0435\u0439\u0447\u0430\u0441 \u0443 \u043d\u0430\u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u0430 \u043f\u0430\u043f\u043a\u0430 Levels \u0432\u043d\u0443\u0442\u0440\u0438 Prefabs, \u043f\u043e\u0434\u043d\u0438\u043c\u0435\u043c\u0441\u044f \u0432\u044b\u0448\u0435 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c Chest_A \u0441\u044e\u0434\u0430. \u0422\u0430\u043a\u0436\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0441\u0446\u0435\u043d\u0443 Level_A1 (\u0412\u0435\u0440\u0445\u043d\u044f\u044f \u043f\u0430\u043d\u0435\u043b\u044c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 &#8212; Scene &#8212; Save Scene).<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/f0d\/eb4\/21d\/f0deb421da8b3a19f70f2581a1735bf7.jpg\" width=\"999\" height=\"366\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f0d\/eb4\/21d\/f0deb421da8b3a19f70f2581a1735bf7.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/8bd\/f5b\/fa8\/8bdf5bfa8e5b9a8f328278e43d3a9d16.jpg\" width=\"984\" height=\"371\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8bd\/f5b\/fa8\/8bdf5bfa8e5b9a8f328278e43d3a9d16.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u0439\u0434\u0451\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u043d\u0443\u0442\u0440\u044c <strong>Chest_A<\/strong>, \u0449\u0435\u043b\u043a\u043d\u0443\u0432 \u043f\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c\u0443 \u0437\u043d\u0430\u0447\u043a\u0443. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/180\/ac6\/b5c\/180ac6b5c865e16e8b3f8606334c6bea.jpg\" width=\"721\" height=\"324\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/180\/ac6\/b5c\/180ac6b5c865e16e8b3f8606334c6bea.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u044b\u0434\u0435\u043b\u0438\u043c \u0443\u0437\u0435\u043b <strong>Area<\/strong>, \u0438 \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435 \u0432 \u044f\u0447\u0435\u0439\u043a\u0430\u0445 <strong>Layer<\/strong> \u0443 <strong>Collision<\/strong> \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u044f\u0447\u0435\u0439\u043a\u0443 <strong>3<\/strong>, \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u044f \u0441\u0443\u043d\u0434\u0443\u043a\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0438 \u043a\u043e\u043b\u043e\u043d\u043d, \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044f\u0441\u044c \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u0441\u043b\u043e\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/794\/b97\/718\/794b97718f67d32ce1eefbad245cf709.jpg\" width=\"1277\" height=\"499\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/794\/b97\/718\/794b97718f67d32ce1eefbad245cf709.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u044b\u0434\u0435\u043b\u0438\u043c \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0443\u0437\u0435\u043b <strong>Chest_A<\/strong> \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u0443\u0437\u0435\u043b <strong>Spatial<\/strong>. \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u043c \u0435\u0433\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0432\u0432\u0435\u0440\u0445 \u0438 \u0432\u043f\u0440\u0430\u0432\u043e \u043f\u043e \u043e\u0441\u0438 Z, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043d\u0430 \u0431\u043e\u043a\u043e\u0432\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0441\u0443\u043d\u0434\u0443\u043a\u0430, \u0432 \u0449\u0435\u043b\u0438 \u043c\u0435\u0436\u0434\u0443 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438 &#171;\u043a\u0440\u044b\u0448\u043a\u043e\u0439&#187;. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/a19\/144\/74b\/a1914474b8604438f0c6a09c450891b4.jpg\" width=\"721\" height=\"418\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a19\/144\/74b\/a1914474b8604438f0c6a09c450891b4.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/6b7\/1d7\/c3f\/6b71d7c3f2fc4b8657d1e4478399d05f.jpg\" width=\"778\" height=\"522\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6b7\/1d7\/c3f\/6b71d7c3f2fc4b8657d1e4478399d05f.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u043c &#171;\u043a\u0440\u044b\u0448\u043a\u0443&#187; (MeshInstance4) \u0432\u043d\u0443\u0442\u0440\u044c Spatial. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/6eb\/b70\/b82\/6ebb70b82d4e54136e4f4c3991723013.jpg\" width=\"745\" height=\"428\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6eb\/b70\/b82\/6ebb70b82d4e54136e4f4c3991723013.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u044b\u0434\u0435\u043b\u0438\u043c \u0443\u0437\u0435\u043b Spatial \u0438 \u043f\u043e\u0432\u0435\u0440\u043d\u0451\u043c \u0435\u0433\u043e \u043f\u043e \u043e\u0441\u0438 X \u043f\u043e\u0442\u044f\u043d\u0443\u0432 \u0437\u0430 \u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u043a\u0440\u0443\u0433 (\u043a\u0430\u043a \u0431\u044b \u043f\u0440\u0438\u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044f &#171;\u043a\u0440\u044b\u0448\u043a\u0443&#187;). \u0418\u043b\u0438 \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u0431\u0438\u0442\u044c \u0443\u0433\u043e\u043b \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430 \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435 (\u043d\u0430\u0431\u0438\u0440\u0430\u0435\u043c \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435 \u0434\u043b\u044f Rotation Degrees -25 \u0432 \u044f\u0447\u0435\u0439\u043a\u0435 X).<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/62d\/82d\/dce\/62d82ddce57792e697fedeb3c8d1749d.jpg\" width=\"1261\" height=\"458\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/62d\/82d\/dce\/62d82ddce57792e697fedeb3c8d1749d.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0441\u0446\u0435\u043d\u0443. \u0417\u0430\u043a\u0440\u043e\u0435\u043c \u0435\u0451 \u0432\u043a\u043b\u0430\u0434\u043a\u0443, \u043d\u0430\u0436\u0430\u0432 \u043d\u0430 \u043a\u0440\u0435\u0441\u0442\u0438\u043a \u0440\u044f\u0434\u043e\u043c \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c. <\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/3a9\/7ce\/76d\/3a97ce76dac182b70bae39bbe2bc1377.jpg\" width=\"359\" height=\"72\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3a9\/7ce\/76d\/3a97ce76dac182b70bae39bbe2bc1377.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u0441\u044f \u0441\u043d\u043e\u0432\u0430 \u0432 \u0441\u0446\u0435\u043d\u0435 \u0443\u0440\u043e\u0432\u043d\u044f. \u0421\u0434\u0435\u043b\u0430\u0435\u043c \u043f\u0430\u0440\u0443 \u043a\u043e\u043f\u0438\u0439 <strong>Chest_A<\/strong> (\u0421trl + D) \u0441\u0434\u0432\u0438\u0433\u0430\u044f \u043a\u0430\u0436\u0434\u0443\u044e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e Z. \u0417\u0430\u0442\u0435\u043c \u0432\u044b\u0434\u0435\u043b\u0438\u043c \u0432\u0441\u0435 \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u043c \u043f\u0440\u0430\u0432\u0435\u0435 \u043f\u043e \u043e\u0441\u0438 X, \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043e\u0442 \u043a\u043e\u043b\u043e\u043d\u043d.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/2a4\/be4\/729\/2a4be47296bbc96fab527b6d0e2675f9.jpg\" width=\"660\" height=\"563\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2a4\/be4\/729\/2a4be47296bbc96fab527b6d0e2675f9.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/7a3\/77b\/f6e\/7a377bf6ef43550b9b2d19bd6b524fec.jpg\" width=\"622\" height=\"288\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7a3\/77b\/f6e\/7a377bf6ef43550b9b2d19bd6b524fec.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/d33\/e2e\/873\/d33e2e8732e382250c24d04f40bf8ccb.jpg\" width=\"924\" height=\"418\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d33\/e2e\/873\/d33e2e8732e382250c24d04f40bf8ccb.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0438\u0433\u0440\u0443. \u041f\u0435\u0440\u0441\u043e\u043d\u0430\u0436 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0441\u043a\u0432\u043e\u0437\u044c \u0441\u0443\u043d\u0434\u0443\u043a\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u043f\u0435\u0440\u0435\u0432\u0435\u043b\u0438 \u0438\u0445 \u0432 \u0441\u043b\u043e\u0439, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u0442 \u0440\u0435\u0439\u043a\u0430\u0441\u0442 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430. \u0422\u0430\u043a \u043f\u043e\u043a\u0430 \u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u043c.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/416\/529\/c2e\/416529c2ed2b3b91ee9bf9a964df03ac.jpg\" width=\"529\" height=\"320\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/416\/529\/c2e\/416529c2ed2b3b91ee9bf9a964df03ac.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0417\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0434\u043b\u044f \u0432\u0440\u0430\u0433\u0430<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0421\u0434\u0435\u043b\u0430\u0435\u043c \u043a\u043e\u043f\u0438\u044e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0441\u0443\u043d\u0434\u0443\u043a\u0430 <strong>Chest_A3<\/strong>. \u0412\u044b\u0434\u0435\u043b\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0439\u0441\u044f <strong>Chest_A4<\/strong> \u0438 \u0441\u0431\u0440\u043e\u0441\u0438\u043c \u0435\u0433\u043e <strong>Translation<\/strong> \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/a54\/d5f\/32f\/a54d5f32fd9272c6a0f678ad6f0d7dfd.jpg\" width=\"1259\" height=\"307\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a54\/d5f\/32f\/a54d5f32fd9272c6a0f678ad6f0d7dfd.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/317\/3d9\/ff8\/3173d9ff803d202a14c87961865da3ff.jpg\" width=\"1251\" height=\"338\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/317\/3d9\/ff8\/3173d9ff803d202a14c87961865da3ff.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0429\u0435\u043b\u043a\u0430\u0435\u043c \u043f\u043e <strong>Chest_A4<\/strong> \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u0438 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u0435\u0433\u043e \u043d\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435 (<strong>Make Local<\/strong>).<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/91f\/7f4\/d25\/91f7f4d25c3cb2c4963ff3f6f99e2b64.jpg\" width=\"498\" height=\"678\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/91f\/7f4\/d25\/91f7f4d25c3cb2c4963ff3f6f99e2b64.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/d67\/405\/e35\/d67405e3552c6ddcd4ee7e9c40a71159.jpg\" width=\"657\" height=\"482\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d67\/405\/e35\/d67405e3552c6ddcd4ee7e9c40a71159.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u0443\u0435\u043c \u0443\u0437\u0435\u043b \u0432 <strong>Enemy_red<\/strong>. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/470\/a57\/810\/470a578108ec4d41b16bfdb3f9a35ffc.jpg\" width=\"668\" height=\"204\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/470\/a57\/810\/470a578108ec4d41b16bfdb3f9a35ffc.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0423 \u043e\u0431\u043e\u0438\u0445 \u043a\u0443\u0431\u0438\u043a\u043e\u0432 (MeshInstance2 \u0438 MeshInstance4) \u0432 \u043f\u043e\u043b\u0435 <strong>Shape<\/strong> \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c <strong>Make Unique<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/593\/3c9\/991\/5933c999180ff7dcd7d19e9c41eaf662.jpg\" width=\"1232\" height=\"562\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/593\/3c9\/991\/5933c999180ff7dcd7d19e9c41eaf662.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0410 \u0432\u043e\u0442 \u0432 \u0443\u0437\u043b\u0435 <strong>CollisionShape<\/strong> \u0432\u044b\u0431\u0435\u0440\u0435\u043c \u0434\u0440\u0443\u0433\u0443\u044e \u0444\u043e\u0440\u043c\u0443 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043a\u0443\u0431\u0438\u0447\u0435\u0441\u043a\u043e\u0439 &#8212; <strong>SphereShape<\/strong>. \u0420\u0430\u0434\u0438\u0443\u0441 \u0441\u0444\u0435\u0440\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0432 <strong>1.5<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/1e2\/007\/2d2\/1e20072d229aa526f5880fe965d6f47b.jpg\" width=\"1264\" height=\"517\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1e2\/007\/2d2\/1e20072d229aa526f5880fe965d6f47b.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/fba\/df3\/954\/fbadf395407aa234968b1f17a587f9ce.jpg\" width=\"1245\" height=\"420\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fba\/df3\/954\/fbadf395407aa234968b1f17a587f9ce.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043d\u0430 \u0443\u0437\u043b\u0435 <strong>Enemy_red<\/strong> \u0438 \u0441\u0436\u0438\u043c\u0430\u0435\u043c \u0435\u0433\u043e \u0432 \u0441\u0446\u0435\u043d\u0443-\u043f\u0440\u0435\u0444\u0430\u0431 (\u043f\u0440\u0430\u0432\u0430\u044f \u043a\u043d\u043e\u043f\u043a\u0430, <strong>Save Branch as Scene<\/strong>). \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u0442\u0443 \u0436\u0435 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043f\u0430\u043f\u043a\u0443 (Prerfabs) \u043f\u043e\u0434 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u043c\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043c.<\/p>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0441\u0446\u0435\u043d\u0443 \u0443\u0440\u043e\u0432\u043d\u044f. \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432\u043d\u0443\u0442\u0440\u044c \u0441\u0446\u0435\u043d\u044b <strong>Enemy_red<\/strong>. \u0412\u044b\u0434\u0435\u043b\u0438\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u043a\u0443\u0431\u0438\u043a (MeshInstance2), \u043e\u0442\u043a\u0440\u043e\u0435\u043c \u0432\u043a\u043b\u0430\u0434\u043a\u0443 <strong>Material<\/strong> \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435. \u0429\u0435\u043b\u043a\u043d\u0443\u0432 \u043d\u0430 \u043f\u0443\u0441\u0442\u043e\u043c \u043f\u043e\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b, \u0432\u044b\u0431\u0440\u0430\u0432 <strong>New SpatialMaterial<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/536\/297\/7ed\/5362977edaaa0da38836e220468a36dd.jpg\" width=\"1274\" height=\"548\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/536\/297\/7ed\/5362977edaaa0da38836e220468a36dd.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0429\u0451\u043b\u043a\u0430\u0435\u043c \u043f\u043e \u0431\u0435\u043b\u043e\u0439 \u0441\u0444\u0435\u0440\u0435 \u0438 \u0432 \u043e\u0442\u043a\u0440\u044b\u0432\u0448\u0438\u0445\u0441\u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043d\u043e\u0432\u043e\u0433\u043e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0432\u043a\u043b\u0430\u0434\u043a\u0443 <strong>Albelo<\/strong>. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c <strong>\u043a\u0440\u0430\u0441\u043d\u044b\u0439<\/strong> \u0446\u0432\u0435\u0442 \u0432 \u043f\u043e\u043b\u0435 <strong>Color<\/strong>.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/950\/71e\/6ce\/95071e6ce90cd3f9d7865146e07fca1c.jpg\" width=\"297\" height=\"148\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/950\/71e\/6ce\/95071e6ce90cd3f9d7865146e07fca1c.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/9fd\/3c7\/e4e\/9fd3c7e4e83a59b27a87adda052b2540.jpg\" width=\"889\" height=\"536\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9fd\/3c7\/e4e\/9fd3c7e4e83a59b27a87adda052b2540.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b, \u043d\u0430\u0436\u0430\u0432 \u043d\u0430 <strong>\u0438\u043a\u043e\u043d\u043a\u0443 \u0434\u0438\u0441\u043a\u0435\u0442\u043a\u0438<\/strong> \u0438 \u0432\u044b\u0431\u0440\u0430\u0432 <strong>Save As&#8230;<\/strong><\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/673\/065\/dd3\/673065dd3da8f62edb43e359b1108e36.jpg\" width=\"400\" height=\"387\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/673\/065\/dd3\/673065dd3da8f62edb43e359b1108e36.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0429\u0451\u043b\u043a\u0430\u0435\u043c \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u043f\u043e \u043f\u0430\u043f\u043a\u0435 <strong>Materials<\/strong>, \u043c\u0435\u043d\u044f\u0435\u043c \u0438\u043c\u044f \u043d\u0430 <strong>emeny_red_mat<\/strong> \u0438 \u0436\u043c\u0451\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/9de\/02e\/355\/9de02e3554def6a0b12e85ecb5baf567.jpg\" width=\"995\" height=\"399\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9de\/02e\/355\/9de02e3554def6a0b12e85ecb5baf567.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/a22\/4ed\/c2b\/a224edc2bb8414ddcb2b840300d295c2.jpg\" width=\"988\" height=\"401\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a22\/4ed\/c2b\/a224edc2bb8414ddcb2b840300d295c2.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u044b\u0434\u0435\u043b\u0438\u043c \u0435\u0449\u0451 \u0440\u0430\u0437 \u0443\u0437\u0435\u043b <strong>MeshInstance2<\/strong>, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435. \u041a\u043b\u0438\u043a\u0430\u0435\u043c \u043f\u043e \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c\u0443 \u0441\u043f\u0438\u0441\u043a\u0443 \u043d\u0430 \u043a\u0440\u0430\u0441\u043d\u043e\u0439 \u0441\u0444\u0435\u0440\u0435 \u0432 \u0435\u0433\u043e \u043f\u043e\u043b\u0435 <strong>material<\/strong> \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043e\u043f\u0446\u0438\u044e <strong>Copy<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/d1f\/7c4\/f1a\/d1f7c4f1a0cf1d106a39b7b5e246f495.jpg\" width=\"1266\" height=\"622\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d1f\/7c4\/f1a\/d1f7c4f1a0cf1d106a39b7b5e246f495.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u0443\u0431\u0438\u043a (<strong>MeshInstance4<\/strong>), \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0443 <strong>Material<\/strong> \u0438 \u0432 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c \u0441\u043f\u0438\u0441\u043a\u0435 \u0443 \u043f\u043e\u043b\u044f <strong>empty<\/strong> (\u043b\u0438\u0431\u043e \u043f\u043e \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0435) \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u0430\u043c\u044b\u0439 \u043d\u0438\u0436\u043d\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 &#8212; <strong>Paste<\/strong>. \u041a\u0440\u0430\u0441\u043d\u044b\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u0431\u0430 \u043a\u0443\u0431\u0438\u043a\u0430 \u043a\u0440\u0430\u0441\u043d\u044b\u0435. \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u043f\u043e\u043a\u0430 \u0441\u0446\u0435\u043d\u0443.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/53e\/0a5\/e59\/53e0a5e591fb8c5028987c6c7bc243c8.jpg\" width=\"1270\" height=\"460\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/53e\/0a5\/e59\/53e0a5e591fb8c5028987c6c7bc243c8.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/9ce\/c12\/174\/9cec12174ef54025cfb34b7a27feec28.jpg\" width=\"316\" height=\"291\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9ce\/c12\/174\/9cec12174ef54025cfb34b7a27feec28.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u043b\u043e\u0438 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0439, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0438 \u0441\u0442\u0430\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u044b\u043c\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0434\u0451\u043c \u0432 <strong>Project<\/strong> &#8212; <strong>Project Settings&#8230;<\/strong> <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/0c7\/7b2\/363\/0c77b2363756187a457ccde98fd86e20.jpg\" width=\"757\" height=\"517\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0c7\/7b2\/363\/0c77b2363756187a457ccde98fd86e20.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u043e\u043a\u043e\u0448\u043a\u043e \u0441 \u043a\u0443\u0447\u0435\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/669\/af8\/a92\/669af8a929a8536fb09450a69177c7bd.jpg\" width=\"920\" height=\"735\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/669\/af8\/a92\/669af8a929a8536fb09450a69177c7bd.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u043e\u043c\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u043b\u0435\u0432\u0443\u044e \u043a\u043e\u043b\u043e\u043d\u043a\u0443 \u0432\u043d\u0438\u0437 \u0438 \u0432 <strong>Layer Names<\/strong> \u043a\u043b\u0438\u043a\u0430\u0435\u043c \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443 <strong>3D Physics<\/strong>. \u0412 \u043f\u043e\u043b\u044f\u0445 \u0441\u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u0432\u043e\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043b\u043e\u0451\u0432. Layer 2 &#8212; <strong>solid object<\/strong>, Layer 3 &#8212; <strong>chest<\/strong>, Layer 4 &#8212; <strong>enemy<\/strong>, Layer 5 &#8212; <strong>player<\/strong>. \u0417\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u043d\u0430\u0436\u0430\u0432 \u0432\u043d\u0438\u0437\u0443 \u043a\u043d\u043e\u043f\u043a\u0443 <strong>close<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/447\/574\/208\/4475742080a417971760e8a1a10af2f7.jpg\" width=\"926\" height=\"738\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/447\/574\/208\/4475742080a417971760e8a1a10af2f7.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u044b\u0434\u0435\u043b\u0438\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u0437\u0435\u043b <strong>Area<\/strong>, \u043e\u0442\u043a\u0440\u043e\u0435\u043c \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435 \u0432\u043a\u043b\u0430\u0434\u043a\u0443 <strong>Collision<\/strong>, \u043d\u0430\u0432\u0435\u0434\u0451\u043c \u043d\u0430 \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u043d\u0443\u044e \u044f\u0447\u0435\u0439\u043a\u0443 &#8212; \u0442\u0430\u043c \u0433\u043e\u0440\u0438\u0442 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430, \u0447\u0442\u043e \u0441\u043b\u043e\u0439 3 \u044d\u0442\u043e chest (\u0441\u0443\u043d\u0434\u0443\u043a). \u041d\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u043f\u0440\u0435\u0444\u0430\u0431 \u0432\u0440\u0430\u0433\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u043c \u0441\u043b\u043e\u0439 3 \u0438 \u0432\u043a\u043b\u044e\u0447\u0438\u043c <strong>4<\/strong> &#8212; enemy.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/1e1\/9d2\/f74\/1e19d2f741078ee03f9508d5fdce3097.jpg\" width=\"1167\" height=\"497\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1e1\/9d2\/f74\/1e19d2f741078ee03f9508d5fdce3097.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/556\/60e\/02f\/55660e02f2ac76344f5a9ac2320fc27e.jpg\" width=\"334\" height=\"214\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/556\/60e\/02f\/55660e02f2ac76344f5a9ac2320fc27e.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432\u0440\u0430\u0433\u0443 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442. \u0412\u044b\u0434\u0435\u043b\u0438\u043c \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0443\u0437\u0435\u043b <strong>Enemy_red<\/strong> \u0438 \u043d\u0430\u0436\u043c\u0451\u043c \u043d\u0430 <strong>\u0441\u0432\u0438\u0442\u043e\u043a \u0441 \u0437\u0435\u043b\u0451\u043d\u044b\u043c \u043f\u043b\u044e\u0441\u0438\u043a\u043e\u043c<\/strong> \u043f\u0440\u0430\u0432\u0435\u0435 \u0438 \u0432\u044b\u0448\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/3a7\/fd7\/097\/3a7fd7097d0f8379cc8106690ef9a471.jpg\" width=\"640\" height=\"150\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3a7\/fd7\/097\/3a7fd7097d0f8379cc8106690ef9a471.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0416\u043c\u0451\u043c \u043d\u0430 \u0438\u043a\u043e\u043d\u043a\u0443 \u043f\u0430\u043f\u043a\u0438, \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c\u0441\u044f \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 Prefabs \u043d\u0430 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0432\u044b\u0448\u0435 \u0438 \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 scripts, \u0433\u0434\u0435 \u0443\u0436\u0435 \u043b\u0435\u0436\u0438\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0446\u0435\u043d\u044b &#8212; <a href=\"http:\/\/Main.gd\" rel=\"noopener noreferrer nofollow\">Main.gd<\/a>.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/6ca\/0d9\/791\/6ca0d979127c595f3deac17ccf545b19.jpg\" width=\"409\" height=\"354\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6ca\/0d9\/791\/6ca0d979127c595f3deac17ccf545b19.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/a20\/2bb\/642\/a202bb6424b7a4676d1b7a4e7d5013da.jpg\" width=\"729\" height=\"346\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a20\/2bb\/642\/a202bb6424b7a4676d1b7a4e7d5013da.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/72b\/f11\/7cf\/72bf117cf1a02e623e2a249dd1fbf985.jpg\" width=\"609\" height=\"346\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/72b\/f11\/7cf\/72bf117cf1a02e623e2a249dd1fbf985.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u0430\u0432\u0438\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 <strong>theAI_red<\/strong> \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c <strong>Open<\/strong>. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0436\u0430\u0442\u044c <strong>Create<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/660\/9cb\/db8\/6609cbdb831e7535416bccf324b3af44.jpg\" width=\"742\" height=\"346\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/660\/9cb\/db8\/6609cbdb831e7535416bccf324b3af44.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/2b9\/07c\/62b\/2b907c62bd883eb2d621ac0c23abf8c5.jpg\" width=\"415\" height=\"192\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2b9\/07c\/62b\/2b907c62bd883eb2d621ac0c23abf8c5.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u043f\u0430\u0434\u0430\u0435\u043c \u0432 \u043d\u043e\u0432\u044b\u0439 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442. \u0412\u043d\u0438\u0437\u0443 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0436\u0430\u0442\u044c \u043d\u0430 \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0443, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\/\u0441\u043a\u0440\u044b\u0442\u044c \u043f\u0430\u043d\u0435\u043b\u044c\u043a\u0443 \u0441 \u043f\u0435\u0440\u0435\u0447\u043d\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/624\/b01\/18c\/624b0118c29f3383491d29eecbaa5b77.jpg\" width=\"733\" height=\"677\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/624\/b01\/18c\/624b0118c29f3383491d29eecbaa5b77.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0438\u0434\u0438\u043c \u0442\u0430\u043c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0441\u0435\u0439\u0447\u0430\u0441 \u0432\u044b\u0431\u0440\u0430\u043d \u0441\u043a\u0440\u0438\u043f\u0442 theAI_red.gd. \u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0432\u0441\u0451, \u0447\u0442\u043e \u043d\u0438\u0436\u0435 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0438 \u043f\u0438\u0448\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<pre><code class=\"python\">func _physics_process(delta): self.translation.x += delta<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/12f\/8a4\/d13\/12f8a4d132726a0c8fbc92522f00fd8b.jpg\" width=\"952\" height=\"682\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/12f\/8a4\/d13\/12f8a4d132726a0c8fbc92522f00fd8b.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u0449\u0451\u043b\u043a\u043d\u0443\u0432 \u043f\u043e <strong>File<\/strong> &#8212; <strong>Save<\/strong>. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438\u0433\u0440\u0443 (\u041a\u043d\u043e\u043f\u043a\u0430 <strong>Play<\/strong>, \u0433\u043e\u0440\u044f\u0447\u0430\u044f \u043a\u043b\u0430\u0432\u0438\u0448\u0430 F5).<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/745\/48f\/17c\/74548f17cb0f0a980b91973539a39c4a.jpg\" width=\"482\" height=\"293\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/745\/48f\/17c\/74548f17cb0f0a980b91973539a39c4a.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/303\/88b\/f72\/30388bf72f2b8c3f4069320b93c9758f.jpg\" width=\"827\" height=\"209\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/303\/88b\/f72\/30388bf72f2b8c3f4069320b93c9758f.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0432\u0440\u0430\u0433 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u0439 \u0436\u0435 \u0442\u043e\u0447\u043a\u0435, \u0447\u0442\u043e \u0438 \u0438\u0433\u0440\u043e\u043a, \u0438 \u0432\u0441\u0451 \u0432\u0440\u0435\u043c\u044f \u0443\u0431\u0435\u0433\u0430\u0435\u0442 \u0432\u043f\u0440\u0430\u0432\u043e.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/54b\/55f\/eea\/54b55feea6c6c11a8a87337d34078f06.jpg\" width=\"531\" height=\"327\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/54b\/55f\/eea\/54b55feea6c6c11a8a87337d34078f06.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u0432\u0440\u0430\u0433-\u043f\u0440\u0435\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u0432\u0435\u0434\u0451\u043c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f \u0432\u043d\u0435 \u0441\u0446\u0435\u043d \u0438 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0438\u0437 \u043f\u0440\u043e\u0447\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, \u0433\u0434\u0435 \u0431\u044b \u043e\u043d\u0438 \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0438\u0441\u044c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0449\u0451\u043b\u043a\u043d\u0435\u043c \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0435 <strong>res:\/\/<\/strong> \u0432 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043b\u0435\u0432\u043e\u043c \u043e\u043a\u043e\u0448\u043a\u0435 \u0441 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0435\u0439 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 <strong>New Script<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/c0a\/335\/cef\/c0a335cefded2062e9ff53e368a75a56.jpg\" width=\"529\" height=\"394\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c0a\/335\/cef\/c0a335cefded2062e9ff53e368a75a56.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0449\u0451\u043b\u043a\u0430\u0435\u043c \u043d\u0430 \u0437\u043d\u0430\u0447\u043e\u043a \u043f\u0430\u043f\u043a\u0438. \u041c\u0435\u043d\u044f\u0435\u043c \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043d\u0430 \u0431\u0443\u043a\u0432\u0443 <strong>G<\/strong> (<a href=\"http:\/\/G.gd\" rel=\"noopener noreferrer nofollow\">G.gd<\/a>) \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c <strong>Open<\/strong>. \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u043a\u0440\u0438\u043f\u0442, \u043d\u0430\u0436\u0430\u0432 \u043d\u0430 <strong>Create<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/f54\/a71\/7c5\/f54a717c544777ba4b331f6dc4320f02.jpg\" width=\"992\" height=\"553\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f54\/a71\/7c5\/f54a717c544777ba4b331f6dc4320f02.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0442\u043a\u0440\u043e\u0435\u043c \u0435\u0433\u043e, \u0441\u0434\u0435\u043b\u0430\u0432 \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u043a\u043b\u0438\u043a \u043f\u043e <a href=\"http:\/\/G.gd\" rel=\"noopener noreferrer nofollow\"><strong>G.gd<\/strong><\/a> \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/d86\/ee6\/be2\/d86ee6be29ac5c2f772ee0ea35f62a27.jpg\" width=\"323\" height=\"368\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d86\/ee6\/be2\/d86ee6be29ac5c2f772ee0ea35f62a27.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0423\u0431\u0435\u0440\u0451\u043c \u0432\u0441\u0435 \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u0432\u044b\u0448\u0435 <em>_ready()<\/em> \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 <strong>var player_place = Vector3.ZERO<\/strong> . \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0441\u0435\u0439\u0447\u0430\u0441 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f player_place \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430\u044f \u0432 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 G.player_place.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/028\/97e\/ce6\/02897ece61924c18527e69abdc4e9448.jpg\" width=\"440\" height=\"182\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/028\/97e\/ce6\/02897ece61924c18527e69abdc4e9448.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 <strong>Project<\/strong> &#8212; <strong>Project Settings&#8230;<\/strong> <\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/713\/065\/785\/7130657852c3430e9aa619e415437e29.jpg\" width=\"373\" height=\"124\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/713\/065\/785\/7130657852c3430e9aa619e415437e29.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u0442\u0430\u043c \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0443 <strong>AutoLoad<\/strong>. \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u0437\u043d\u0430\u0447\u043e\u043a \u043f\u0430\u043f\u043a\u0438. \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c <a href=\"http:\/\/G.gd\" rel=\"noopener noreferrer nofollow\"><strong>G.gd<\/strong><\/a>. <strong>Open<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/3fc\/762\/b39\/3fc762b394cdda03264299fa88eee567.jpg\" width=\"921\" height=\"219\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3fc\/762\/b39\/3fc762b394cdda03264299fa88eee567.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/809\/b53\/815\/809b53815fca39596fc816eea5c565ce.jpg\" width=\"538\" height=\"151\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/809\/b53\/815\/809b53815fca39596fc816eea5c565ce.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/65c\/a1f\/f3e\/65ca1ff3e455d98088e383cc0e540702.jpg\" width=\"830\" height=\"410\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/65c\/a1f\/f3e\/65ca1ff3e455d98088e383cc0e540702.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0441\u0430\u043c\u0443\u044e \u043f\u0440\u0430\u0432\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 <strong>Add.<\/strong> \u041f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u0447\u043a\u0430 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438. \u0417\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043e\u043a\u043d\u043e, \u043d\u0430\u0436\u0430\u0432 \u0432\u043d\u0438\u0437\u0443 \u043d\u0430 <strong>Close<\/strong>. \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043a\u0440\u0438\u043f\u0442 G \u0441\u0442\u0430\u043b \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0438\u0437 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043f\u043e \u0441\u0432\u043e\u0435\u043c\u0443 \u0438\u043c\u0435\u043d\u0438.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/f88\/bf3\/053\/f88bf3053a9ca8013b097e8cf0bc84ec.jpg\" width=\"929\" height=\"180\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f88\/bf3\/053\/f88bf3053a9ca8013b097e8cf0bc84ec.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/f79\/6ce\/b7f\/f796ceb7f76f67620834d8de9835f519.jpg\" width=\"914\" height=\"471\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f79\/6ce\/b7f\/f796ceb7f76f67620834d8de9835f519.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u043c\u0441\u044f \u0432 \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0446\u0435\u043d\u044b <a href=\"http:\/\/theMain.gd\" rel=\"noopener noreferrer nofollow\"><strong>theMain.gd<\/strong><\/a>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/4bf\/54c\/78f\/4bf54c78f4799ed906435c7356d52b35.jpg\" width=\"636\" height=\"386\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4bf\/54c\/78f\/4bf54c78f4799ed906435c7356d52b35.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043e\u043f\u0438\u0448\u0435\u043c \u043d\u0438\u0436\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 <em>func _process()<\/em> \u043f\u0430\u0440\u0443 \u0441\u0442\u0440\u043e\u043a \u0441 \u043d\u043e\u0432\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439, \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044e\u0449\u0435\u0439 \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432\u0432\u043e\u0434\u0430:<\/p>\n<pre><code class=\"python\">func _unhandled_input(event): G.player_place = main_hero.global_translation<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/a40\/eff\/c3d\/a40effc3d48961f4f2abdc8943d1ce9b.jpg\" width=\"692\" height=\"446\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a40\/eff\/c3d\/a40effc3d48961f4f2abdc8943d1ce9b.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0447\u0442\u043e-\u0442\u043e \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u0442, \u0442\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0433\u0435\u0440\u043e\u044f (main_hero.global_translation) \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 (player_place).<\/p>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442. \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u0432 <strong>theAI_red.gd<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/d0e\/d9c\/4f0\/d0ed9c4f0839aeeb45e092e48fb0368f.jpg\" width=\"632\" height=\"190\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d0e\/d9c\/4f0\/d0ed9c4f0839aeeb45e092e48fb0368f.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u043c\u0435\u043d\u0438\u043c \u0432\u0435\u0441\u044c \u0435\u0433\u043e \u043a\u043e\u0434 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c:<\/p>\n<pre><code class=\"python\">extends Spatial  var speed = 1.0  func _physics_process(delta): self.look_at(Vector3(G.player_place.x,self.translation.y,G.player_place.z), Vector3.UP)  self.translate(-Vector3.BACK * speed * delta)<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/a53\/72a\/8fa\/a5372a8fa5e483642de82921aebc3566.jpg\" width=\"772\" height=\"187\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a53\/72a\/8fa\/a5372a8fa5e483642de82921aebc3566.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438\u0433\u0440\u0443. \u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u0440\u0430\u0433 \u0441\u0442\u0430\u043b \u043f\u0440\u0435\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0438\u0433\u0440\u043e\u043a\u0430 \u043f\u043e \u0435\u0433\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c, \u0432\u0440\u0430\u0449\u0430\u044f\u0441\u044c \u0432\u043e\u043a\u0440\u0443\u0433 \u0441\u0432\u043e\u0435\u0439 \u043e\u0441\u0438, \u0435\u0441\u043b\u0438 \u043f\u043e\u0434\u043e\u0448\u0451\u043b \u0441\u043e\u0432\u0441\u0435\u043c \u0431\u043b\u0438\u0437\u043a\u043e.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/81e\/a56\/74b\/81ea5674b8bcb1e0bebbc0c755ccf6aa.jpg\" width=\"529\" height=\"326\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/81e\/a56\/74b\/81ea5674b8bcb1e0bebbc0c755ccf6aa.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u0432\u0438\u0436\u0435\u0442\u0441\u044f \u0432\u0440\u0430\u0433 &#171;\u0441\u043f\u0438\u043d\u043e\u0439&#187;, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u043f\u0440\u0430\u0432\u0438\u043c \u0435\u0433\u043e \u0441\u0446\u0435\u043d\u0443. \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u0432 \u0440\u0435\u0436\u0438\u043c <strong>3D<\/strong>, \u043e\u043a\u0430\u0437\u0430\u0432\u0448\u0438\u0441\u044c \u043d\u0430 \u0441\u0446\u0435\u043d\u0435 <strong>Enemy_red<\/strong>. \u0412\u044b\u0434\u0435\u043b\u0438\u043c \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0443\u0437\u0435\u043b (<strong>Enemy_red<\/strong>) \u0438 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u044b\u0439 <strong>Spatial<\/strong> (\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u0443\u0435\u0442\u0441\u044f \u0432 Spatial2, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u044b\u0448\u0435 \u0435\u0441\u0442\u044c \u0443\u0437\u0435\u043b \u0441 \u0442\u0430\u043a\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c)<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/4d5\/5de\/303\/4d55de303602f08536594e607293926d.jpg\" width=\"727\" height=\"489\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4d5\/5de\/303\/4d55de303602f08536594e607293926d.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u0443\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0443\u0437\u0435\u043b \u0432 <strong>Visual<\/strong> \u0438 \u0441\u0431\u0440\u043e\u0441\u0438\u043c \u0432 \u043d\u0435\u0433\u043e \u0432\u0441\u0435 \u043f\u0440\u043e\u0447\u0438\u0435 \u0443\u0437\u043b\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/722\/39a\/076\/72239a076ab4587559c6c6b437fe13ad.jpg\" width=\"721\" height=\"484\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/722\/39a\/076\/72239a076ab4587559c6c6b437fe13ad.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u044b\u0434\u0435\u043b\u0438\u043c \u0443\u0437\u0435\u043b <strong>Visual<\/strong> \u0438 \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 <strong>Rotation Degrees<\/strong> \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u043f\u043e\u0432\u043e\u0440\u043e\u0442 \u043d\u0430 <strong>180<\/strong> \u043f\u043e Y.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/340\/5c6\/f8f\/3405c6f8fa7222590b772aa41368fcb7.jpg\" width=\"1275\" height=\"404\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/340\/5c6\/f8f\/3405c6f8fa7222590b772aa41368fcb7.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438\u0433\u0440\u0443, \u0432\u0440\u0430\u0433 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/619\/e07\/487\/619e0748793c8528c1d17c6a8f1c4b07.jpg\" width=\"527\" height=\"324\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/619\/e07\/487\/619e0748793c8528c1d17c6a8f1c4b07.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043c \u0437\u0430\u043f\u0438\u0441\u044c \u043f\u0440\u0435\u0434\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432. \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u043c\u0441\u044f \u043d\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0438 \u0434\u043e\u043f\u0438\u0448\u0435\u043c \u0432 <strong>G.gd<\/strong> \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0443\u043f\u0440\u043e\u0449\u0451\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0435\u0434\u0438\u043d\u0438\u0447\u043d\u044b\u0445 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u043e\u0441\u044f\u043c:<\/p>\n<pre><code class=\"python\">const _X = Vector3.RIGHT const _Y = Vector3.UP const _Z = Vector3.BACK<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/fd3\/19a\/162\/fd319a162c9d556254c2f0c2848210a9.jpg\" width=\"609\" height=\"309\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fd3\/19a\/162\/fd319a162c9d556254c2f0c2848210a9.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u0432\u0435\u0440\u043d\u0451\u043c\u0441\u044f \u0432 <strong>theAI_red.gd<\/strong>, \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0432 \u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c (\u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043c\u0435\u043d\u044f\u044f \u0432 \u043b\u043e\u0433\u0438\u043a\u0435, \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0432 \u0437\u0430\u043f\u0438\u0441\u044c):<\/p>\n<pre><code class=\"python\">extends Spatial  var speed = 1.0  func _physics_process(delta): self.look_at(Vector3(G.player_place.x,self.translation.y,G.player_place.z), G._Y)  self.translate(-G._Z * speed * delta)<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/67a\/e72\/5c4\/67ae725c4f00ce691535fa929645020d.jpg\" width=\"751\" height=\"195\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/67a\/e72\/5c4\/67ae725c4f00ce691535fa929645020d.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u043c\u0435\u0441\u0442\u043e \u0437\u0430\u043f\u0438\u0441\u0438 <em>Vector3.RIGHT<\/em> \u043c\u044b \u0442\u0435\u043f\u0435\u0440\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <em>G._Y<\/em><\/p>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442. \u0417\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0441\u0446\u0435\u043d\u044b Enemy_red \u0438 Level_A1 (\u0449\u0435\u043b\u043a\u0430\u044f \u043f\u043e \u043a\u0440\u0435\u0441\u0442\u0438\u043a\u0430\u043c). \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u0441\u044f \u0432 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0446\u0435\u043d\u0435, \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043d\u0430 <strong>3D<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/c83\/2d8\/168\/c832d8168ad824cd5bdf7fbbd1f0794d.jpg\" width=\"908\" height=\"492\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c83\/2d8\/168\/c832d8168ad824cd5bdf7fbbd1f0794d.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0441\u0432\u0435\u0442\u0430, \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u0440\u0442\u0438\u043d\u0430 \u0441\u0442\u0430\u043b\u0430 \u043f\u043e\u0432\u0435\u0441\u0435\u043b\u0435\u0435. \u0429\u0451\u043b\u043a\u0430\u0435\u043c \u043d\u0430 \u0443\u0437\u0435\u043b <strong>Hero<\/strong>, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u043c\u0443 \u043d\u043e\u0432\u044b\u0439 \u0443\u0437\u0435\u043b <strong>OmniLight<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/b72\/dfa\/681\/b72dfa68195ccf5cd1658fc68ab71daf.jpg\" width=\"717\" height=\"532\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b72\/dfa\/681\/b72dfa68195ccf5cd1658fc68ab71daf.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/7ae\/249\/83d\/7ae24983db3dcb743b9e7bca0465f0cf.jpg\" width=\"801\" height=\"484\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7ae\/249\/83d\/7ae24983db3dcb743b9e7bca0465f0cf.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u0434\u043d\u0438\u043c\u0435\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0441\u0432\u0435\u0442\u0430 \u0432\u044b\u0448\u0435 (\u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043d\u0430 <strong>3<\/strong> \u043f\u043e y). \u0412 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0441\u0432\u0435\u0442\u0430 \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043c <strong>Range<\/strong> \u0434\u043e <strong>7<\/strong> \u0438 \u0432\u043a\u043b\u044e\u0447\u0438\u043c \u0433\u0430\u043b\u043e\u0447\u043a\u0443 <strong>Enabled<\/strong> \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 <strong>Shadows <\/strong>(\u0447\u0442\u043e\u0431\u044b \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0441\u0432\u0435\u0442\u0430 \u043e\u0442\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u043b \u0442\u0435\u043d\u0438, \u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b \u043e\u0441\u0432\u0435\u0449\u0451\u043d\u043d\u043e\u0441\u0442\u0438).<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/695\/fa4\/409\/695fa4409f34c2141791949d451df7e7.jpg\" width=\"1272\" height=\"707\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/695\/fa4\/409\/695fa4409f34c2141791949d451df7e7.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438\u0433\u0440\u0443. \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0451 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0441\u044f \u0431\u043e\u0434\u0440\u0435\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/822\/ff7\/849\/822ff7849118073282816e8666ef8232.jpg\" width=\"526\" height=\"319\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/822\/ff7\/849\/822ff7849118073282816e8666ef8232.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0423\u043b\u0443\u0447\u0448\u0430\u0435\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0414\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435. \u041f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u0435\u043b\u043a\u0430\u043c\u0438 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0430\u043c\u0438 WASD. \u041e\u0442\u043a\u0440\u043e\u0435\u043c <strong>Project<\/strong> &#8212; <strong>Project Settings&#8230;<\/strong> \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u043c\u0441\u044f \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0443 <strong>Input Map<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/111\/af4\/65a\/111af465a33075b240b86c45f53ecf23.jpg\" width=\"933\" height=\"390\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/111\/af4\/65a\/111af465a33075b240b86c45f53ecf23.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0445\u043e\u0434\u0438\u043c \u0437\u0434\u0435\u0441\u044c \u0441\u0442\u0440\u043e\u0447\u043a\u0443 <strong>ui_left<\/strong>. \u042d\u0442\u043e\u0442 \u043a\u043b\u044e\u0447 \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043d\u0430\u0448\u0435\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u043c, \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043d\u0435\u0433\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443. \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 <strong>\u043f\u043b\u044e\u0441\u0438\u043a<\/strong> \u0441\u0431\u043e\u043a\u0443, \u0432\u044b\u0431\u0438\u0440\u0430\u044f <strong>Key.<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/5ad\/e91\/c05\/5ade91c05a0162e2e929fd3e9caabd1e.jpg\" width=\"971\" height=\"217\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5ad\/e91\/c05\/5ade91c05a0162e2e929fd3e9caabd1e.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u043e\u043a\u043e\u0448\u043a\u043e \u0441 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u043d\u0430\u0436\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443. \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c <strong>A<\/strong> \u0438 \u0436\u043c\u0451\u043c <strong>\u043e\u043a<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/12d\/19c\/abd\/12d19cabdc6fa092571a018ef0f62066.jpg\" width=\"711\" height=\"171\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/12d\/19c\/abd\/12d19cabdc6fa092571a018ef0f62066.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u043d\u0443\u0442\u0440\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043f\u043e\u0434 ui_left \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043d\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u0447\u043a\u0430.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/fde\/be2\/f01\/fdebe2f01c4b67e33d50757ad201eca9.jpg\" width=\"915\" height=\"171\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fde\/be2\/f01\/fdebe2f01c4b67e33d50757ad201eca9.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c <strong>D<\/strong> \u0432 <strong>ui_right<\/strong>, <strong>W<\/strong> \u0432 <strong>ui_up<\/strong> \u0438 <strong>S<\/strong> \u0432 <strong>ui_down<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/cb3\/566\/ae7\/cb3566ae775c9ca159c333ffcda7e090.jpg\" width=\"912\" height=\"389\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/cb3\/566\/ae7\/cb3566ae775c9ca159c333ffcda7e090.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0442\u0430\u043a\u0436\u0435 \u043f\u0430\u0440\u0443 \u0441\u0432\u043e\u0438\u0445 \u043d\u043e\u0432\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 \u043a\u043d\u043e\u043f\u043a\u0430\u043c\u0438 \u043c\u044b\u0448\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u0432\u0435\u0440\u0445\u043d\u0435\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u0435 <strong>Action<\/strong> \u043f\u0438\u0448\u0435\u043c \u0438\u043c\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 <strong>mouse_L<\/strong> \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0441\u043f\u0440\u0430\u0432\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 <strong>Add<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/7e0\/428\/2c8\/7e04282c8502e01487a1ee69cde3bdbd.jpg\" width=\"931\" height=\"160\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7e0\/428\/2c8\/7e04282c8502e01487a1ee69cde3bdbd.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0445\u043e\u0434\u0438\u043c \u0441\u0442\u0440\u043e\u0447\u043a\u0443 <strong>mouse_L<\/strong>, \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u043f\u043b\u044e\u0441 \u0441\u043f\u0440\u0430\u0432\u0430 \u0438 \u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0443\u043d\u043a\u0442 <strong>Mouse Button<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/e29\/0a3\/872\/e290a3872056aa642511a8ff765ac79a.jpg\" width=\"973\" height=\"280\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e29\/0a3\/872\/e290a3872056aa642511a8ff765ac79a.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0434\u0435\u0441\u044c \u0441\u0440\u0430\u0437\u0443 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u043b\u0435\u0432\u0430\u044f \u043a\u043d\u043e\u043f\u043a\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u043c \u043d\u0430\u0436\u0430\u0432 \u043d\u0430 <strong>Add<\/strong>.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/662\/467\/352\/662467352ef2c45229b423b035018e5d.jpg\" width=\"434\" height=\"208\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/662\/467\/352\/662467352ef2c45229b423b035018e5d.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0437\u0430\u0432\u0435\u0434\u0451\u043c \u043a\u043b\u044e\u0447 \u0434\u043b\u044f \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438 \u043c\u044b\u0448\u0438 &#8212; <strong>mouse_R<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/d83\/405\/f88\/d83405f8853fe0897085a040c48f73f3.jpg\" width=\"609\" height=\"395\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d83\/405\/f88\/d83405f8853fe0897085a040c48f73f3.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043e\u043a\u043e\u0448\u043a\u043e, \u043d\u0430\u0436\u0430\u0432 \u043d\u0430 <strong>Close<\/strong>. \u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438\u0433\u0440\u0443 \u0441\u0435\u0439\u0447\u0430\u0441, \u0442\u043e \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436 \u0431\u0443\u0434\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0438 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u043d\u044b\u043c\u0438 \u0441\u0442\u0440\u0435\u043b\u043a\u0430\u043c\u0438 \u0438 \u043a\u043d\u043e\u043f\u043a\u0430\u043c\u0438 WASD.<\/p>\n<p>\u041f\u043e\u0432\u0435\u0441\u0438\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0438 \u043c\u044b\u0448\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0441\u0432\u0435\u0442\u0430. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u0442\u043a\u0440\u043e\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 <a href=\"http:\/\/theMain.gd\" rel=\"noopener noreferrer nofollow\"><strong>theMain.gd<\/strong><\/a> \u0438 \u0434\u043e\u043f\u0438\u0448\u0435\u043c \u0441\u0432\u0435\u0440\u0445\u0443, \u0433\u0434\u0435-\u043d\u0438\u0431\u0443\u0434\u044c \u043f\u043e\u0441\u043b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 onready var hero_visual = $Hero\/Visual \u0441\u0442\u0440\u043e\u0447\u043a\u0443 <strong>onready var light = $Hero\/OmniLight<\/strong> &#8212; \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0432\u0435\u0441\u0442\u0438 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0441\u0432\u0435\u0442\u0430.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/73b\/39c\/353\/73b39c353953a368b014c41421df04fa.jpg\" width=\"588\" height=\"279\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/73b\/39c\/353\/73b39c353953a368b014c41421df04fa.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043c\u0435\u0441\u0442\u0438\u043c\u0441\u044f \u043f\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0443 \u043d\u0438\u0436\u0435 \u0438 \u0432\u044b\u0448\u0435 <em>function _process()<\/em> \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<pre><code class=\"python\">func _physics_process(delta): if Input.is_action_pressed(\"mouse_L\"): light.show()  if Input.is_action_pressed(\"mouse_R\"): light.hide()<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/bba\/d55\/046\/bbad55046c38bf4150cdefd08df5f26c.jpg\" width=\"626\" height=\"344\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bba\/d55\/046\/bbad55046c38bf4150cdefd08df5f26c.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u0432 \u043a\u043e\u0434\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u0438\u0434\u0443\u0442 \u0434\u0440\u0443\u0433 \u0437\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0439: <em>_unhandled_input<\/em>, <em>_physics_process<\/em> \u0438 <em>_process<\/em>. \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c, \u0447\u0442\u043e \u043e\u043d\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u044b \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u043e\u0442 \u0441\u0430\u043c\u043e\u0439 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0449\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0434\u043e \u0441\u0430\u043c\u043e\u0439 \u0431\u044b\u0441\u0442\u0440\u043e\u0439. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0432\u0441\u0451 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435 (\u043f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043b\u0438\u0448\u044c \u0432 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u0432\u0432\u043e\u0434\u0430, \u0432\u0442\u043e\u0440\u0430\u044f \u043a\u0440\u0443\u0442\u0438\u0442\u0441\u044f \u0432 \u0446\u0438\u043a\u043b\u0435 \u0441 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u043e\u0439, \u0442\u0440\u0435\u0442\u044c\u044f \u043a\u0440\u0443\u0442\u0438\u0442\u0441\u044f \u0432 \u0446\u0438\u043a\u043b\u0435 \u0441 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u043e\u0439), \u043d\u043e \u0447\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u0432\u0432\u043e\u0434\u0430 \u0432\u0440\u043e\u0434\u0435 <em>if Input.is_action_pressed<\/em> &#8212; \u0435\u0441\u043b\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0438\u0445 \u0432 <em>_unhandled_input<\/em> (\u0445\u043e\u0442\u044f \u043e\u043d\u0430 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0441\u043a\u043e\u0440\u0435\u0435 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 <em>events<\/em>), \u0442\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0439 (\u044d\u0444\u0444\u0435\u043a\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043a\u043e\u0433\u0434\u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \u0447\u0451\u0442\u043a\u043e \u043d\u0430\u0436\u0430\u0442\u0430, \u0441 \u0444\u0438\u043a\u0441\u0430\u0446\u0438\u0435\u0439 \u043d\u0430 \u043d\u0435\u0439). \u0412 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u0432\u043d\u0443\u0442\u0440\u0438 <em>_physics_process<\/em> \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0443\u0436\u0435 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f, \u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u044f \u0443\u0436\u0435 \u043e <em>_process<\/em>. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0440\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044f (<em>if Input.is_action_just_pressed<\/em> \u0432\u043c\u0435\u0441\u0442\u043e \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e <em>action_pressed<\/em>) \u0442\u0430\u043a \u0438 \u0432\u043e\u0432\u0441\u0435 \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0432\u043d\u0443\u0442\u0440\u0438 <em>_unhandled_input<\/em>.<\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0447\u0442\u043e-\u0442\u043e \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e (\u0431\u0435\u0437 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430) \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b\u043e \u0432 \u0446\u0438\u043a\u043b\u0435 \u0441 \u043c\u0435\u043d\u044c\u0448\u0435\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u043e\u0439, \u0447\u0435\u043c \u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <em>_physics_process<\/em> (\u043d\u0435 \u0434\u0435\u043b\u0430\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0442\u0430\u043a\u0442\u0435), \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0432 \u043d\u0435\u0439 \u0437\u0430\u0432\u0435\u0441\u0442\u0438 \u0442\u0430\u0439\u043c\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u043e\u0442\u0440\u0435\u0437\u043a\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0441\u043d\u0438\u0436\u0430\u044f \u043e\u0431\u0449\u0443\u044e \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443.<\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438\u0433\u0440\u0443 \u0438 \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0438 \u043c\u044b\u0448\u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0441\u0432\u0435\u0442\u0430 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f. \u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0434\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432\u0432\u043e\u0434\u0430 \u0438\u0437 <em>_physics_process<\/em> \u0432 <em>_unhandled_input,<\/em> \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u044f\u0441\u043d\u0438\u0442\u044c \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0438 \u043c\u044b\u0448\u0438. \u041a\u0441\u0442\u0430\u0442\u0438, \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u043c\u043d\u0438\u0442\u044c, \u0447\u0442\u043e \u043e\u0442\u0436\u0430\u0442\u0438\u0435 (\u043a\u0430\u043a \u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0435) \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043a\u043d\u043e\u043f\u043a\u0438 \u0442\u043e\u0436\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <em>_unhandled_input<\/em>.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u0434 \u0440\u0430\u043d\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f\/\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430, \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0432 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u0438 \u043f\u0435\u0440\u0435\u0431\u0440\u043e\u0441\u0438\u0432 \u0435\u0433\u043e \u0432 <em>_physics_process<\/em>. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f &#8212; \u0432\u044b\u0434\u0435\u043b\u0438\u043c \u0432\u0441\u0451, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <strong>_pr\u043ecess<\/strong> \u0438 \u043d\u0430\u0436\u043c\u0451\u043c <strong>Ctrl + K<\/strong>, \u0447\u0442\u043e\u0431\u044b \u0441\u0442\u0440\u043e\u043a\u0438 \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0438 \u0431\u044b\u043b\u0438 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u0438\u0437 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/af6\/7d0\/ef4\/af67d0ef40f37e8c96f17dc6475de0d5.jpg\" width=\"1151\" height=\"567\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/af6\/7d0\/ef4\/af67d0ef40f37e8c96f17dc6475de0d5.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0432\u0435\u0440\u0445\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0443\u0434\u0430\u043b\u0438\u043c \u0441\u0442\u0440\u043e\u0447\u043a\u0438 <strong>var horizontal_joy = 0<\/strong> \u0438 <strong>var vertikal_joy = 0<\/strong>. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/630\/084\/c0c\/630084c0cf520536135b104dc73e51e4.jpg\" width=\"938\" height=\"206\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/630\/084\/c0c\/630084c0cf520536135b104dc73e51e4.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u0442\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u044e\u0434\u0430 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 <strong>var move_direction = Vector3.ZERO<\/strong><\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/f85\/42e\/987\/f8542e9875dbb3c9c67409418c39999e.jpg\" width=\"481\" height=\"239\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f85\/42e\/987\/f8542e9875dbb3c9c67409418c39999e.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043f\u0443\u0441\u0442\u0438\u043c\u0441\u044f \u043a \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <strong>_unhanlled_input<\/strong> \u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u043c \u0435\u0451 \u043a\u043e\u0434 \u043d\u0430 \u0442\u0430\u043a\u043e\u0439:<\/p>\n<pre><code class=\"python\">func _unhandled_input(event): if game_mode == 1: G.player_place = main_hero.global_translation  move_direction.x = Input.get_axis(\"ui_left\",\"ui_right\") move_direction.z = Input.get_axis(\"ui_up\",\"ui_down\") print(move_direction)  if move_direction != Vector3.ZERO: hero_visual.look_at(hero_visual.global_transform.origin + move_direction, G._Y)<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/60d\/8a5\/a37\/60d8a5a371dd66dfb8d95e646ea376b8.jpg\" width=\"806\" height=\"310\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/60d\/8a5\/a37\/60d8a5a371dd66dfb8d95e646ea376b8.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e <strong>_physics_process<\/strong> \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"python\">func _physics_process(delta): if game_mode == 1: if Input.is_action_pressed(\"mouse_L\"): light.show()  if Input.is_action_pressed(\"mouse_R\"): light.hide()  if rcast.is_colliding() == false: if move_direction != Vector3.ZERO: main_hero.translation += move_direction * hero_speed * delta else: HealthDamage(1) if health &lt; 0: health = 0 game_mode = 0 G.player_place = Vector3.ZERO move_direction = Vector3.ZERO ui_startscreen.show()<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/7c6\/0a4\/45d\/7c60a445d7c29f4a298833a2b481c024.jpg\" width=\"701\" height=\"472\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7c6\/0a4\/45d\/7c60a445d7c29f4a298833a2b481c024.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438\u0433\u0440\u0443. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/17d\/76d\/bbf\/17d76dbbfdfb2cde3161807d83e72194.jpg\" width=\"646\" height=\"451\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/17d\/76d\/bbf\/17d76dbbfdfb2cde3161807d83e72194.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u043b\u043e\u0433\u0435 \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u0431\u0449\u0438\u0439 \u0432\u0435\u043a\u0442\u043e\u0440 <em>move_direction<\/em>, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c\u044b\u0439 \u043f\u0440\u0438 \u0432\u0432\u043e\u0434\u0435 \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 <em>_unhandled_input<\/em>. \u0415\u0441\u043b\u0438 \u0432\u0435\u043a\u0442\u043e\u0440 \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u043e\u0439 (\u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u044b\u043b\u0438 \u043d\u0430\u0436\u0430\u0442\u044b), \u0442\u043e \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436 \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f. \u0412\u043e \u0432\u0440\u0435\u043c\u044f <em>_physics_process<\/em> \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436, \u043f\u043e\u043a\u0430 \u0432\u0435\u043a\u0442\u043e\u0440 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043a\u0443\u0434\u0430-\u0442\u043e \u043f\u043e\u0432\u0451\u0440\u043d\u0443\u0442 (\u0442\u043e \u0435\u0441\u0442\u044c \u043f\u043e\u043a\u0430 \u043a\u043d\u043e\u043f\u043a\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043d\u0435 \u043e\u0442\u0436\u0430\u0442\u044b) &#8212; \u0434\u0432\u0438\u0436\u0435\u0442\u0441\u044f. \u0415\u0441\u043b\u0438 \u043e\u0442\u0436\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f, \u0442\u043e \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u043e\u0442\u0436\u0430\u0442\u0438\u044f <em>_unhandled_input<\/em> \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442, \u0447\u0442\u043e <em>move_direction<\/em> \u0441\u043d\u043e\u0432\u0430 \u0441\u0442\u0430\u043b \u043d\u0443\u043b\u0435\u0432\u044b\u043c \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u043c \u0438, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, <em>_physics_process<\/em> \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u0435\u0442 \u0434\u0432\u0438\u0433\u0430\u0442\u044c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430. \u041f\u0440\u0430\u0432\u0434\u0430 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c, \u0447\u0442\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u043e\u0442\u0436\u0430\u0442\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u043e\u0441\u0442\u0430\u0442\u044c\u0441\u044f \u043d\u0435\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u044b\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 <em>_unhandled_input<\/em>, \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043a\u0443\u0434\u0430-\u0442\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u043b\u0441\u044f \u0438\u0437 \u043e\u043a\u043d\u0430 \u0438\u0433\u0440\u044b &#8212; \u0442\u043e\u0433\u0434\u0430 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436 \u0437\u0430\u043b\u0438\u043f\u043d\u0435\u0442 \u0432 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0438, \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440 \u043f\u043e\u043a\u0430 \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u043d\u0435 \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0438\u0433\u0440\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e \u0438 \u0441\u043d\u043e\u0432\u0430 \u043d\u0435 \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u0442 \u0432\u0432\u043e\u0434 \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e <strong>_process<\/strong> \u043c\u043e\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u043a\u0430 \u043e\u043d\u0430 \u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f.<\/p>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0412\u044b\u0441\u0442\u0440\u0435\u043b\u044b \u0438 \u043f\u0440\u043e\u0447\u0435\u0435<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0421\u0434\u0435\u043b\u0430\u0435\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u0432\u044b\u0441\u0442\u0440\u0435\u043b. \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u043c\u0441\u044f \u043d\u0430 <strong>3D<\/strong> \u0432 \u0441\u0446\u0435\u043d\u0443 <strong>MainScene<\/strong>. \u0412\u044b\u0434\u0435\u043b\u0438\u043c \u0443\u0437\u0435\u043b <strong>Main<\/strong> \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u0443\u0437\u0435\u043b <strong>Area.<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/8e6\/2b5\/ee6\/8e62b5ee68bf2255097ea6c25cd2fb1d.jpg\" width=\"598\" height=\"508\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8e6\/2b5\/ee6\/8e62b5ee68bf2255097ea6c25cd2fb1d.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043a <strong>Area<\/strong> \u0443\u0437\u0435\u043b <strong>CollisionShape<\/strong>, \u0432\u044b\u0431\u0435\u0440\u0435\u043c \u0435\u043c\u0443 \u0444\u043e\u0440\u043c\u0443 \u0441\u0444\u0435\u0440\u044b (<strong>New<\/strong> <strong>SphereShape<\/strong>) \u0432 \u043f\u043e\u043b\u0435 <strong>Shape <\/strong>\u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435<em>.<\/em><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/f5f\/cbd\/2d1\/f5fcbd2d117b5f658a41f7e0d93b3ebb.jpg\" width=\"1243\" height=\"406\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f5f\/cbd\/2d1\/f5fcbd2d117b5f658a41f7e0d93b3ebb.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0442\u043a\u0440\u043e\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 <strong>SphereShape <\/strong> (\u0449\u0451\u043b\u043a\u043d\u0443\u0432 \u043f\u043e cfvjq \u043d\u0430\u0434\u043f\u0438\u0441\u0438 SphereShape) \u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0440\u0430\u0434\u0438\u0443\u0441 <strong>0.5<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/95f\/7de\/4c5\/95f7de4c5132b93408ac60caa65d7393.jpg\" width=\"519\" height=\"202\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/95f\/7de\/4c5\/95f7de4c5132b93408ac60caa65d7393.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u0443\u0435\u043c \u0443\u0437\u0435\u043b <strong>Area<\/strong> \u0432 <strong>MagicStrike<\/strong>. \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u043a\u0430\u043a \u043f\u0440\u0435\u0444\u0430\u0431 (\u043f\u0440\u0430\u0432\u0430\u044f \u043a\u043d\u043e\u043f\u043a\u0430, <strong>Save Brunch as Scene<\/strong>). <\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/5b2\/142\/a72\/5b2142a72aad23942dd45cc4f84b3cd8.jpg\" width=\"445\" height=\"277\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5b2\/142\/a72\/5b2142a72aad23942dd45cc4f84b3cd8.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0429\u0451\u043b\u043a\u043d\u0435\u043c \u043f\u043e \u043f\u0430\u043f\u043a\u0435 <strong>Prefabs<\/strong>. \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0451 \u043f\u0430\u043f\u043a\u0443 <strong>Spawned<\/strong>, \u043a\u0443\u0434\u0430 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u043d\u0430\u0448 \u043f\u0440\u0435\u0444\u0430\u0431 <strong>MagicStrike.<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/98e\/8b5\/9e5\/98e8b59e5c6f0df711447b453b784365.jpg\" width=\"755\" height=\"366\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/98e\/8b5\/9e5\/98e8b59e5c6f0df711447b453b784365.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/ea6\/ecf\/d80\/ea6ecfd803686a4f279ef7bfe2e4713d.jpg\" width=\"869\" height=\"375\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ea6\/ecf\/d80\/ea6ecfd803686a4f279ef7bfe2e4713d.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432\u043d\u0443\u0442\u0440\u044c \u043f\u0440\u0435\u0444\u0430\u0431\u0430. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/d51\/eeb\/cb9\/d51eebcb9d2dedf9829f0927c32de721.jpg\" width=\"798\" height=\"474\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d51\/eeb\/cb9\/d51eebcb9d2dedf9829f0927c32de721.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u044b\u0434\u0435\u043b\u0438\u043c \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0443\u0437\u0435\u043b \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a \u043d\u0435\u043c\u0443 (Ctrl + A) \u043d\u043e\u0432\u044b\u0439 \u0443\u0437\u0435\u043b <strong>MeshInstance<\/strong>, \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0441\u0442\u0440\u0435\u043b\u0443 \u043a\u0430\u043a\u0443\u044e-\u0442\u043e \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u043e\u0440\u043c\u0443. \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u043d\u043e\u0432\u043e\u043c \u0443\u0437\u043b\u0435 \u0432 \u0435\u0433\u043e \u043f\u043e\u043b\u0435 <strong>Mesh<\/strong> \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435 \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c <strong>New PrismMesh<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/96a\/990\/e12\/96a990e12b97d49cb67bcac1c01977f8.jpg\" width=\"1272\" height=\"520\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/96a\/990\/e12\/96a990e12b97d49cb67bcac1c01977f8.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u043f\u043e\u043b\u0435 <strong>Scale<\/strong> \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u044b <strong>0.3<\/strong> \u043f\u043e \u0432\u0441\u0435\u043c \u043e\u0441\u044f\u043c.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/5d6\/a56\/87d\/5d6a5687d6f4db7b7c039c809af2e4bc.jpg\" width=\"1253\" height=\"593\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5d6\/a56\/87d\/5d6a5687d6f4db7b7c039c809af2e4bc.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u044b\u0434\u0435\u043b\u0438\u043c \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0443\u0437\u0435\u043b (<strong>Magic Strike<\/strong>) \u0438 \u043d\u0430\u0436\u043c\u0451\u043c \u043d\u0430 <strong>\u0441\u0432\u0438\u0442\u043e\u043a \u0441 \u0437\u0435\u043b\u0451\u043d\u044b\u043c \u043f\u043b\u044e\u0441\u043e\u043c<\/strong>, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/ed7\/637\/fdc\/ed7637fdce61209e7406987860986f38.jpg\" width=\"656\" height=\"157\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ed7\/637\/fdc\/ed7637fdce61209e7406987860986f38.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u0438\u043a\u043e\u043d\u043a\u0443 \u043f\u0430\u043f\u043a\u0438. \u041f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c\u0441\u044f \u043f\u0430\u0440\u0443 \u0440\u0430\u0437 \u0432\u0432\u0435\u0440\u0445. <\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/237\/ebe\/6e4\/237ebe6e4e8e6416fd90b84fadd9ad1f.jpg\" width=\"413\" height=\"353\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/237\/ebe\/6e4\/237ebe6e4e8e6416fd90b84fadd9ad1f.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/86b\/b53\/1ff\/86bb531ff2eafada58b0b1e276fcc788.jpg\" width=\"730\" height=\"388\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/86b\/b53\/1ff\/86bb531ff2eafada58b0b1e276fcc788.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0429\u0435\u043b\u043a\u0430\u0435\u043c \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u043d\u0430 \u043f\u0430\u043f\u043a\u0435 Scripts.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/8a4\/c51\/951\/8a4c519517c3f9dc7040180a56dbc496.jpg\" width=\"618\" height=\"383\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8a4\/c51\/951\/8a4c519517c3f9dc7040180a56dbc496.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041c\u0435\u043d\u044f\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 <strong>theMagicStrike<\/strong> \u0438 \u0436\u043c\u0451\u043c <strong>Open<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/5dd\/370\/8f3\/5dd3708f3aa81f524782b3b63ae47367.jpg\" width=\"712\" height=\"392\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5dd\/370\/8f3\/5dd3708f3aa81f524782b3b63ae47367.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Create.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/501\/b16\/1c4\/501b161c4d35e75696b6005acb0d8e84.jpg\" width=\"396\" height=\"349\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/501\/b16\/1c4\/501b161c4d35e75696b6005acb0d8e84.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0442\u043a\u0440\u044b\u043b\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u044b\u0441\u0442\u0440\u0435\u043b\u0430. \u041c\u0435\u043d\u044f\u0435\u043c \u0435\u0433\u043e \u043a\u043e\u0434 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439:<\/p>\n<pre><code class=\"python\">extends Area  var timer = 0.0 var lifetime = 2.0  func _physics_process(delta): if timer > -1.0: timer += delta if timer > lifetime: timer = -1.0 queue_free()<\/code><\/pre>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/7db\/232\/d73\/7db232d73254fba7d376019569429cb3.jpg\" width=\"339\" height=\"295\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7db\/232\/d73\/7db232d73254fba7d376019569429cb3.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0438\u0433\u0440\u0443 (\u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0432 \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u0441\u0446\u0435\u043d\u044b). \u041d\u0430 \u0442\u043e\u0447\u043a\u0435 \u0441\u0442\u0430\u0440\u0442\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0431\u0435\u043b\u044b\u0439 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a, \u0438 \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u0440\u0443 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u0438\u0439 \u043f\u0440\u043e\u043f\u0430\u0434\u0430\u0442\u044c.<\/p>\n<p>\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u043c\u0441\u044f \u043d\u0430 <strong>3D<\/strong>, \u0437\u0430\u043a\u0440\u043e\u0435\u043c \u0441\u0446\u0435\u043d\u0443 <strong>MagicStrike<\/strong>, \u043e\u043a\u0430\u0437\u0430\u0432\u0448\u0438\u0441\u044c \u0432<strong> MainScene<\/strong>.<\/p>\n<p>\u0423\u0434\u0430\u043b\u0438\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c \u0443\u0437\u0435\u043b <strong>MagicStrike<\/strong> \u0441 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0446\u0435\u043d\u044b.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/7c4\/6b3\/9ca\/7c46b39ca8ef16c6ca7b656ec56a5359.jpg\" width=\"858\" height=\"355\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7c4\/6b3\/9ca\/7c46b39ca8ef16c6ca7b656ec56a5359.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u043c\u044b \u044d\u0442\u043e \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0438\u043c\u0435\u0442\u044c \u0432\u044b\u0441\u0442\u0440\u0435\u043b \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0432 \u0441\u0446\u0435\u043d\u0435 \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043f\u0440\u0435\u0444\u0430\u0431 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u0433\u0440\u044b, \u0438\u0437 \u043a\u043e\u0434\u0430.<\/p>\n<p>\u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u044b (Scripts), \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 theMain. \u041f\u0438\u0448\u0435\u043c \u043d\u0438\u0436\u0435 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u043d\u043e\u0432\u0443\u044e: <strong>var magic_strike = preload(&#171;res:\/\/Prefabs\/Spawned\/MagicStrike.tscn&#187;)<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/c11\/ae5\/d6e\/c11ae5d6e0d29527e6b4806c727b45c8.jpg\" width=\"644\" height=\"242\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c11\/ae5\/d6e\/c11ae5d6e0d29527e6b4806c727b45c8.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u044b \u043f\u0440\u0435\u0434\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043c \u043f\u0440\u0435\u0444\u0430\u0431-\u0432\u044b\u0441\u0442\u0440\u0435\u043b, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0438\u0433\u0440\u044b.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u0441\u044f \u043d\u0438\u0436\u0435, \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e <em>physics_process<\/em> \u0438 \u043f\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 <em>if Input.is_action_pressed(&#171;mouse_L&#187;):<\/em> , \u043d\u0438\u0436\u0435 <em>light.show()<\/em> \u043d\u043e\u0432\u044b\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438:<\/p>\n<pre><code class=\"python\">var cloned_pref = magic_strike.instance() cloned_pref.transform = main_hero.transform cloned_pref.translation.y = 0.5 self.add_child(cloned_pref)<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/b59\/a32\/de4\/b59a32de4bd3b8faf570d77aadedd5c6.jpg\" width=\"534\" height=\"267\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b59\/a32\/de4\/b59a32de4bd3b8faf570d77aadedd5c6.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0438\u0433\u0440\u0443, \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u043c\u044b\u0448\u0438, \u0442\u043e \u0437\u0430 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u043c \u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442\u0441\u044f \u0446\u0435\u043b\u0430\u044f &#171;\u0437\u043c\u0435\u0439\u043a\u0430&#187; \u0438\u0437 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u044b\u0445 \u0432\u044b\u0441\u0442\u0440\u0435\u043b\u043e\u0432. \u042d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043c\u044b \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0432\u044b\u0441\u0442\u0440\u0435\u043b\u0430 \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u0435  <em>if Input.is_action_pressed(&#171;mouse_L&#187;)<\/em>, \u0433\u0434\u0435 <em>is_action_pressed<\/em>  \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432\u0441\u0451 \u0432\u0440\u0435\u043c\u044f, \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0436\u0430\u0442\u0430 \u043a\u043d\u043e\u043f\u043a\u0430.  <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/897\/16f\/cbd\/89716fcbd549e0ea03d932cc558ef933.jpg\" width=\"521\" height=\"320\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/897\/16f\/cbd\/89716fcbd549e0ea03d932cc558ef933.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u043f\u0440\u0430\u0432\u0438\u043c \u044d\u0442\u043e, \u0434\u043e\u043f\u0438\u0441\u0430\u0432 \u0432\u044b\u0448\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u0443\u0441\u043a\u0430 \u043a\u043e\u0434\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0440\u0430\u0437\u043e\u0432\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043d\u043e\u043f\u043a\u0438. \u0412\u043e\u0442, \u043a\u0430\u043a \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u044d\u0442\u0443 \u0447\u0430\u0441\u0442\u044c:<\/p>\n<pre><code class=\"python\">if Input.is_action_just_pressed(\"mouse_L\"): var cloned_pref = magic_strike.instance() cloned_pref.transform = main_hero.transform cloned_pref.translation.y = 0.5 self.add_child(cloned_pref)<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/b02\/98f\/6c5\/b0298f6c5399d42e212c3fafb85f6f53.jpg\" width=\"572\" height=\"357\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b02\/98f\/6c5\/b0298f6c5399d42e212c3fafb85f6f53.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043b\u0435\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438 \u043c\u044b\u0448\u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u044b\u0439 \u0432\u044b\u0441\u0442\u0440\u0435\u043b.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/8b7\/091\/c55\/8b7091c550900a841328b4ae6829f749.jpg\" width=\"530\" height=\"326\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8b7\/091\/c55\/8b7091c550900a841328b4ae6829f749.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u043c\u0441\u044f \u0442\u0435\u043f\u0435\u0440\u044c \u0432 <strong>3D<\/strong> \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u0441\u0446\u0435\u043d\u0443. \u0417\u0430\u0439\u0434\u0451\u043c \u0432 \u0443\u0437\u0435\u043b \u0443\u0440\u043e\u0432\u043d\u044f (<strong>Level_A1<\/strong>).<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/b6d\/54e\/76b\/b6d54e76b05da43f2993169f86437c03.jpg\" width=\"824\" height=\"518\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b6d\/54e\/76b\/b6d54e76b05da43f2993169f86437c03.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u044b\u0434\u0435\u043b\u0438\u043c \u0443\u0437\u0435\u043b \u0432\u0440\u0430\u0433\u0430 (<strong>Enemy_red<\/strong>) \u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0435\u0449\u0451 4 \u043a\u043e\u043f\u0438\u0438 (Ctrl + D).<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/485\/bcb\/355\/485bcb35528396b0ac594dba7f9f3d1b.jpg\" width=\"661\" height=\"539\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/485\/bcb\/355\/485bcb35528396b0ac594dba7f9f3d1b.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0440\u0430\u0441\u0442\u0430\u0449\u0438\u043c \u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043f\u043e \u0443\u0433\u043b\u0430\u043c \u0443\u0440\u043e\u0432\u043d\u044f. \u0418 \u043e\u0434\u043d\u043e\u0433\u043e \u0432 \u0446\u0435\u043d\u0442\u0440\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/7fb\/9ed\/9a5\/7fb9ed9a55f013730accd3bed43bd67c.jpg\" width=\"957\" height=\"486\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7fb\/9ed\/9a5\/7fb9ed9a55f013730accd3bed43bd67c.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0438\u0433\u0440\u0443. \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0440\u0430\u0433\u043e\u0432 \u0441\u0442\u0430\u043b\u043e \u043c\u043d\u043e\u0433\u043e.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/4eb\/005\/f33\/4eb005f335012a40a6bb87d4f5dc721f.jpg\" width=\"526\" height=\"326\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4eb\/005\/f33\/4eb005f335012a40a6bb87d4f5dc721f.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0420\u0430\u0437\u0432\u0435 \u0447\u0442\u043e \u043e\u043d\u0438 \u0432\u0441\u0435 \u0441\u0436\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u0433\u043e, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0438 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u043f\u0440\u0430\u0432\u0438\u043c \u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442. \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u044b, \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0432 <strong>theAI_red.gd<\/strong> \u0438 \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0435 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0432 \u043a\u043e\u0434 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"python\">extends Spatial  var speed = 1.0  var my_point = Vector3.ZERO  func _ready(): my_point = self.translation  func _physics_process(delta): self.look_at(Vector3(G.player_place.x,self.translation.y,G.player_place.z), G._Y)  self.translate(-G._Z * speed * delta)  if G.player_place == Vector3.ZERO: self.translation = my_point<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/0de\/f60\/ddc\/0def60ddca1f14992b36ad040e7d892b.jpg\" width=\"764\" height=\"361\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0de\/f60\/ddc\/0def60ddca1f14992b36ad040e7d892b.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u0440\u0430\u0433 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u0441\u0432\u043e\u044e \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 &#8212; \u043d\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043b\u0438 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u0438\u0433\u0440\u043e\u043a \u0432 \u043d\u0443\u043b\u0435\u0432\u044b\u0445 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u0445 (\u0447\u0442\u043e \u0441\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0435 \u0443\u0440\u043e\u0432\u043d\u044f). \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0441\u043b\u0435\u043f\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435 \u0432\u0440\u0430\u0433\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043d\u0430 \u0438\u0445 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u0438, \u043f\u043e\u0442\u0435\u0440\u044f\u0432 \u0432\u0441\u0451 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u0435 \u043e\u0442 \u0441\u043e\u043f\u0440\u0438\u043a\u043e\u0441\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0441 \u043a\u043e\u043b\u043e\u043d\u043d\u0430\u043c\u0438.<\/p>\n<\/p>\n<\/div>\n<\/details>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u043f\u043e\u043a\u0430 \u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c\u0441\u044f.<\/p>\n<details class=\"spoiler\">\n<summary>\u041a\u043e\u0434 \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u0432 \u0438\u0442\u043e\u0433\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432<\/summary>\n<div class=\"spoiler__content\">\n<p><strong>G.gd<\/strong><\/p>\n<pre><code class=\"python\">extends Node  const _X = Vector3.RIGHT const _Y = Vector3.UP const _Z = Vector3.BACK  var player_place = Vector3.ZERO  func _ready(): pass # Replace with function body.<\/code><\/pre>\n<p><strong>theMain.gd<\/strong><\/p>\n<pre><code class=\"python\">extends Spatial  var magic_strike = preload(\"res:\/\/Prefabs\/Spawned\/MagicStrike.tscn\")  onready var ui_startscreen = $StartScreen  onready var healthbar = $Interface\/HealthGauge\/Bar  onready var main_hero = $Hero onready var hero_visual = $Hero\/Visual onready var light = $Hero\/OmniLight  onready var rcast = $Hero\/Visual\/RayCast  var move_direction = Vector3.ZERO  var hero_speed = 2.2  var game_mode = 0 var health = 200  func _ready(): main_hero.translation.x += 10.0  func _unhandled_input(event): if game_mode == 1: G.player_place = main_hero.global_translation  move_direction.x = Input.get_axis(\"ui_left\",\"ui_right\") move_direction.z = Input.get_axis(\"ui_up\",\"ui_down\") print(move_direction)  if move_direction != Vector3.ZERO: hero_visual.look_at(hero_visual.global_transform.origin + move_direction, G._Y)  func _physics_process(delta): if game_mode == 1: if Input.is_action_pressed(\"mouse_L\"): light.show()  if Input.is_action_just_pressed(\"mouse_L\"): var cloned_pref = magic_strike.instance() cloned_pref.transform = main_hero.transform cloned_pref.translation.y = 0.5 self.add_child(cloned_pref)  if Input.is_action_pressed(\"mouse_R\"): light.hide()  if rcast.is_colliding() == false: if move_direction != Vector3.ZERO: main_hero.translation += move_direction * hero_speed * delta else: HealthDamage(1) if health &lt; 0: health = 0 game_mode = 0 G.player_place = Vector3.ZERO move_direction = Vector3.ZERO ui_startscreen.show()  func HealthDamage(amount): health -= amount if health > 0: healthbar.rect_size.x = health  func _on_StartButton_pressed(): ui_startscreen.hide() game_mode = 1 main_hero.translation = Vector3(0.0,0.0,0.0) health = 200 HealthDamage(0)<\/code><\/pre>\n<p><strong>theAI_red.gd<\/strong><\/p>\n<pre><code class=\"python\">extends Spatial  var speed = 1.0  var my_point = Vector3.ZERO  func _ready(): my_point = self.translation  func _physics_process(delta): self.look_at(Vector3(G.player_place.x,self.translation.y,G.player_place.z), G._Y)  self.translate(-G._Z * speed * delta)  if G.player_place == Vector3.ZERO: self.translation = my_point<\/code><\/pre>\n<p><strong>theMagicStrike.gd<\/strong><\/p>\n<pre><code class=\"python\">extends Area  var timer = 0.0 var lifetime = 2.0  func _physics_process(delta): if timer > -1.0: timer += delta if timer > lifetime: timer = -1.0 queue_free()<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/bda\/b0a\/135\/bdab0a135c856f898ff4b50a95374454.jpg\" alt=\"\u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0432 \u0438\u0442\u043e\u0433\u0435\" title=\"\u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0432 \u0438\u0442\u043e\u0433\u0435\" width=\"1045\" height=\"647\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bda\/b0a\/135\/bdab0a135c856f898ff4b50a95374454.jpg\" data-blurred=\"true\"\/><figcaption>\u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0432 \u0438\u0442\u043e\u0433\u0435<\/figcaption><\/figure>\n<p>\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f:<\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/683986\/\" rel=\"noopener noreferrer nofollow\">\u0427\u0430\u0441\u0442\u044c alpha<\/a><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/684502\/\"> https:\/\/habr.com\/ru\/post\/684502\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0411\u043e\u043b\u044c\u0448\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u0434\u043b\u044f \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0430 \u0438\u0433\u0440\u044b: \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0443\u0440\u043e\u0432\u043d\u044f, \u0432\u0440\u0430\u0433\u0438, \u0430\u043f\u0433\u0440\u0435\u0439\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0435 \u0432\u044b\u0441\u0442\u0440\u0435\u043b\u044b.<\/p>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/6307c79ccca9c98d660475ad\" data-style=\"\" id=\"6307c79ccca9c98d660475ad\" width=\"\"><\/div>\n<p>\u0410\u0440\u0445\u0438\u0432 \u0441 \u0433\u043e\u0442\u043e\u0432\u044b\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435: <a href=\"https:\/\/thenonsense.itch.io\/opendungeon\" rel=\"noopener noreferrer nofollow\">https:\/\/thenonsense.itch.io\/opendungeon<\/a><\/p>\n<div class=\"embed_link\">\n<div class=\"embed__thumb\" style=\"background-image: url(&quot;https:\/\/img.itch.zone\/aW1nLzk4NTI3NzQuanBn\/original\/O9oAvV.jpg&quot;);\"><\/div>\n<div class=\"embed__caption\">\n<div class=\"embed__caption-title\"><span>Open Dungeon<\/span><\/div>\n<p><a href=\"https:\/\/thenonsense.itch.io\/opendungeon\" target=\"_blank\" rel=\"noopener noreferrer nofollow\" class=\"embed__caption-link\">thenonsense.itch.io<\/a><\/div>\n<\/div>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u043c \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f alfa \u0434\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f beta:<\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c Godot. \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 <strong>Open Dungeon<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0440\u0430\u043d\u0435\u0435 \u0432 <a href=\"https:\/\/habr.com\/ru\/post\/683986\/\" rel=\"noopener noreferrer nofollow\">\u0447\u0430\u0441\u0442\u0438 alpha<\/a> . \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0446\u0435\u043d\u0430 <strong>MainScene<\/strong>.<\/p>\n<details class=\"spoiler\">\n<summary>\u0423\u0440\u043e\u0432\u0435\u043d\u044c<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043a <strong>Main<\/strong> (\u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0443\u0437\u0435\u043b \u0441\u0446\u0435\u043d\u044b) \u043d\u043e\u0432\u044b\u0439 \u0443\u0437\u0435\u043b <strong>Spatial<\/strong>. \u041f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u043c \u0432 \u043d\u0435\u0433\u043e \u0432\u0441\u0435 \u043a\u043e\u043f\u0438\u0438 Pol \u0438 Pillar, \u0437\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u0443\u0435\u043c \u044d\u0442\u043e\u0442 \u0443\u0437\u0435\u043b \u0432 <strong>Level_A1<\/strong>.<\/p>\n<figure class=\"\"><figcaption>\u0434\u0430\u043b\u0435\u0435 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0443\u0437\u0435\u043b Spatial<\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption>\u041f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0432 Spatial<\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption>\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c Spatial \u0432 Level_A1<\/figcaption><\/figure>\n<p>\u0429\u0451\u043b\u043a\u0430\u0435\u043c \u043f\u043e \u0443\u0437\u043b\u0443 \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439, \u0432\u044b\u0431\u0438\u0440\u0430\u044f <strong>Save Branch as Scene<\/strong>. \u0414\u0435\u043b\u0430\u0435\u043c \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u0449\u0435\u043b\u0447\u043e\u043a \u043d\u0430 \u043f\u0430\u043f\u043a\u0435 <strong>Prefabs<\/strong> (\u0432\u0445\u043e\u0434\u044f \u0432 \u043d\u0435\u0451) \u0437\u0430\u0442\u0435\u043c \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0441\u0432\u0435\u0440\u0445\u0443 \u0441\u043f\u0440\u0430\u0432\u0430 <strong>Create Folder<\/strong>. \u041f\u0438\u0448\u0435\u043c \u0438\u043c\u044f \u043f\u0430\u043f\u043a\u0438 &#8212; <strong>Levels<\/strong>. \u041e\u043a. \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043f\u0440\u0435\u0444\u0430\u0431 \u0443\u0440\u043e\u0432\u043d\u044f.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0446\u0435\u043d\u0435 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0437\u0435\u043b level_A1, \u0432\u0441\u0435 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0441\u0436\u0430\u043b\u0438\u0441\u044c \u0432\u043d\u0443\u0442\u0440\u044c \u043d\u0435\u0433\u043e. \u0412 Godot \u043c\u043e\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u0441\u0446\u0435\u043d\u044b-\u043f\u0440\u0435\u0444\u0430\u0431\u0430, \u043d\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044f \u0435\u0433\u043e \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e (\u0432 \u043c\u0435\u043d\u044f \u043f\u043e \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0435 \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 Editable Children), \u043d\u043e \u043c\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0438 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0441\u0446\u0435\u043d-\u043f\u0440\u0435\u0444\u0430\u0431\u043e\u0432 \u0431\u0443\u0434\u0435\u043c \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0438\u0445 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043e\u043a\u043d\u0435.<\/p>\n<p>\u041e\u0442\u043a\u0440\u043e\u0435\u043c <strong>Level_A1<\/strong> \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0446\u0435\u043d\u043e\u0439, \u0449\u0451\u043b\u043a\u043d\u0443\u0432 \u043f\u043e \u0437\u043d\u0430\u0447\u043a\u0443 \u0440\u044f\u0434\u043e\u043c \u0441 \u0433\u043b\u0430\u0437\u043e\u043c.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u044b\u0434\u0435\u043b\u0438\u043c \u0443\u0437\u043b\u044b <strong>Pol_A<\/strong> \u0438 <strong>Pol_A2<\/strong>, \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c (Ctrl + D). \u0421\u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0430 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 Transform \u0432 \u043f\u043e\u043b\u0435 <strong>Translation<\/strong> \u0434\u043e\u043f\u0438\u0448\u0435\u043c \u043a <strong>0<\/strong> \u0432 \u044f\u0447\u0435\u0439\u043a\u0435 Z \u0435\u0449\u0451 <strong>\u043c\u0438\u043d\u0443\u0441 10<\/strong> \u0438 \u043d\u0430\u0436\u043c\u0451\u043c \u0432\u0432\u043e\u0434 (Enter). \u041a\u0430\u0436\u0434\u044b\u0439 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u0443\u0441\u043e\u0447\u0435\u043a \u0441\u0434\u0432\u0438\u043d\u0435\u0442\u0441\u044f \u043d\u0430 \u043c\u0438\u043d\u0443\u0441 10 \u043f\u0443\u043d\u043a\u0442\u043e\u0432, \u0438 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0443\u0436\u0435 4 \u043f\u0440\u0438\u043c\u044b\u043a\u0430\u044e\u0449\u0438\u0445 \u0434\u0440\u0443\u0433 \u043a \u0434\u0440\u0443\u0433\u0443 \u043a\u0443\u0441\u043a\u0430 \u043f\u043e\u043b\u0430.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435 (\u043f\u0440\u0438\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u043d\u044f\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e), \u0442\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u0440\u0430\u0441\u0441\u0447\u0451\u0442\u0430 \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0432 \u043f\u043e\u043b\u0435 \u043a \u0442\u0435\u043a\u0443\u0449\u0435\u043c\u0443 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0443 <em>+ \u0447\u0438\u0441\u043b\u043e<\/em> \u0438\u043b\u0438 <em>&#8212; \u0447\u0438\u0441\u043b\u043e<\/em>, \u0447\u0442\u043e\u0431\u044b Godot \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u043b \u043d\u043e\u0432\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u0415\u0441\u043b\u0438 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u044b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043f\u043e\u043b\u0435\u0439 \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435 \u0431\u0443\u0434\u0435\u0442 \u043a\u0430\u0441\u0430\u0442\u044c\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u0438\u0445 \u0432\u0441\u0435\u0445 (\u0435\u0441\u043b\u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043e\u0434\u043d\u043e\u0442\u0438\u043f\u043d\u044b\u0435, \u0438\u043b\u0438 \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0435\u0441\u0442\u044c \u0443 \u0432\u0441\u0435\u0445 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432).<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0442\u0440\u0438 \u0443\u0437\u043b\u0430 Pillar \u0438 \u043e\u0442\u043e\u0434\u0432\u0438\u043d\u0435\u043c \u0438\u0445 \u0434\u0430\u043b\u044c\u0448\u0435 \u0437\u0430 \u0441\u0438\u043d\u044e\u044e \u0441\u0442\u0440\u0435\u043b\u043a\u0443 \u043f\u043e \u043e\u0441\u0438 Z.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0421\u0443\u043d\u0434\u0443\u043a\u0438<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0412\u044b\u0434\u0435\u043b\u0438\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0443\u0437\u0435\u043b <strong>Pillar_A6<\/strong> \u0438 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u0435\u0433\u043e \u043e\u0431\u0440\u0430\u0442\u043d\u043e, \u043d\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0435, \u0434\u043e\u0441\u0442\u0430\u0432 \u0438\u0437 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0436\u043c\u0451\u043c \u043d\u0430 \u0443\u0437\u0435\u043b \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u0438 \u0432\u044b\u0431\u0435\u0440\u0435\u043c \u043f\u0443\u043d\u043a\u0442 <strong>Make Lo\u0441al.<\/strong><\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0420\u0430\u0441\u0442\u0440\u0435\u0431\u0443\u0448\u0438\u0432 \u043f\u0440\u0435\u0444\u0430\u0431 \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043d\u0438\u0436\u043d\u0438\u0439 \u043f\u0440\u0438\u043f\u043b\u044e\u0441\u043d\u0443\u0442\u044b\u0439 \u043a\u0443\u0431\u0438\u043a (MeshInstance3), \u043a\u043e\u043b\u043e\u043d\u043d\u0443 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u043c \u0434\u043e \u043a\u0443\u0431\u0430 \u0438 \u0441\u0434\u0432\u0438\u0433\u0430\u0435\u043c \u0432\u043d\u0438\u0437, \u0432\u0435\u0440x\u043d\u0438\u0439 \u0441\u043f\u043b\u044e\u0449\u0435\u043d\u043d\u044b\u0439 \u043a\u0443\u0431 \u043e\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0432\u0435\u0440\u0445\u0443, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044f \u043d\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u043c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0438.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u0439\u0434\u0451\u043c \u0432 \u043f\u043e\u043b\u0435 <strong>Mesh<\/strong> \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 \u044d\u0442\u0438\u0445 \u0434\u0432\u0443\u0445 MeshInstance, \u0432\u044b\u0431\u0440\u0430\u0432 \u0442\u0430\u043c \u043e\u043f\u0446\u0438\u044e <strong>Make Unique<\/strong>. \u0412\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f, \u043e\u0434\u043d\u0430\u043a\u043e \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u044b \u043f\u0435\u0440\u0435\u043d\u0430\u0437\u043d\u0430\u0447\u0438\u043b\u0438 \u0441\u0435\u0442\u043a\u0430\u043c \u0444\u043e\u0440\u043c\u0443 \u0438 \u043e\u043d\u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u0430 \u043a \u0444\u043e\u0440\u043c\u0435, \u043e\u0441\u0442\u0430\u0432\u0448\u0435\u0439\u0441\u044f \u0443 \u043a\u0443\u0431\u0438\u043a\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u0435\u0444\u0430\u0431\u043e\u0432 \u0441 \u043a\u043e\u043b\u043e\u043d\u043d\u0430\u043c\u0438.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0436\u0430\u0442\u044c \u043d\u0430 \u0443\u0437\u0435\u043b <strong>CollisionShape<\/strong> \u0438 \u0442\u043e\u0436\u0435 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043e\u043f\u0446\u0438\u044e <strong>Make Unique<\/strong> \u0432 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c \u0441\u043f\u0438\u0441\u043a\u0435 \u0434\u043b\u044f \u0435\u0433\u043e <strong>Shape<\/strong>. \u0415\u0441\u043b\u0438 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0442\u043e \u0432\u044b \u0441\u0430\u043c\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u044f \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u0430 \u0441 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u044f\u043c\u0438 \u043a\u043e\u043b\u043e\u043d\u043d &#8212; \u043f\u043e\u0442\u044f\u043d\u0443\u0432 \u0437\u0430 \u0442\u043e\u0447\u043a\u0443 \u043a\u0443\u0431\u0430 \u0438 \u0443\u0432\u0438\u0434\u0435\u0432, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u0435 \u043a\u0443\u0431\u0438\u043a\u0438 \u043a\u043e\u043b\u043e\u043d\u043d \u0442\u043e\u0436\u0435 \u0442\u044f\u043d\u0443\u0442\u0441\u044f. \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f Make Unique \u044d\u0442\u0430 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u044f \u0441\u0442\u0430\u043d\u0435\u0442 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0439, \u043d\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0439 \u0441 \u043f\u0440\u043e\u0447\u0438\u043c\u0438.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption>\u0412\u0430\u0440\u0438\u0430\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 Make Unique \u043d\u0435 \u0431\u044b\u043b \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d &#8212; \u043a\u043e\u043b\u043b\u0430\u0439\u0434\u0435\u0440\u044b \u0432 \u043a\u043e\u043b\u043e\u043d\u043d\u0430\u0445 \u0442\u044f\u043d\u0443\u0442\u0441\u044f \u0432\u0441\u043b\u0435\u0434 \u0437\u0430 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u043c \u043a\u043e\u043b\u043b\u0430\u0439\u0434\u0435\u0440\u043e\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0430.<\/figcaption><\/figure>\n<p>\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0443\u0437\u0435\u043b <strong>Pillar_A6<\/strong> \u0432 <strong>Chest_A<\/strong>. \u0412 \u043f\u043e\u043b\u0435 <strong>Translation<\/strong> \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u043e\u043a \u0441\u0431\u0440\u043e\u0441\u0430 \u043a\u043e\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442, \u0447\u0442\u043e\u0431\u044b Chest_A \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 (0 \u043f\u043e \u0432\u0441\u0435\u043c \u0442\u0440\u0451\u043c \u043e\u0441\u044f\u043c).<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0445\u043e\u0434\u0438\u043c \u0435\u0433\u043e. \u0418 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043c \u0432 \u043f\u0440\u0435\u0444\u0430\u0431 (\u043f\u0440\u0430\u0432\u0430\u044f \u043a\u043d\u043e\u043f\u043a\u0430, <strong>Save Branch as Scene<\/strong>). <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u0435\u0439\u0447\u0430\u0441 \u0443 \u043d\u0430\u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u0430 \u043f\u0430\u043f\u043a\u0430 Levels \u0432\u043d\u0443\u0442\u0440\u0438 Prefabs, \u043f\u043e\u0434\u043d\u0438\u043c\u0435\u043c\u0441\u044f \u0432\u044b\u0448\u0435 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c Chest_A \u0441\u044e\u0434\u0430. \u0422\u0430\u043a\u0436\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0441\u0446\u0435\u043d\u0443 Level_A1 (\u0412\u0435\u0440\u0445\u043d\u044f\u044f \u043f\u0430\u043d\u0435\u043b\u044c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 &#8212; Scene &#8212; Save Scene).<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u0439\u0434\u0451\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u043d\u0443\u0442\u0440\u044c <strong>Chest_A<\/strong>, \u0449\u0435\u043b\u043a\u043d\u0443\u0432 \u043f\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c\u0443 \u0437\u043d\u0430\u0447\u043a\u0443. <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u044b\u0434\u0435\u043b\u0438\u043c \u0443\u0437\u0435\u043b <strong>Area<\/strong>, \u0438 \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435 \u0432 \u044f\u0447\u0435\u0439\u043a\u0430\u0445 <strong>Layer<\/strong> \u0443 <strong>Collision<\/strong> \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u044f\u0447\u0435\u0439\u043a\u0443 <strong>3<\/strong>, \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u044f \u0441\u0443\u043d\u0434\u0443\u043a\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0438 \u043a\u043e\u043b\u043e\u043d\u043d, \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044f\u0441\u044c \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u0441\u043b\u043e\u0435.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u044b\u0434\u0435\u043b\u0438\u043c \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0443\u0437\u0435\u043b <strong>Chest_A<\/strong> \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u0443\u0437\u0435\u043b <strong>Spatial<\/strong>. \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u043c \u0435\u0433\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0432\u0432\u0435\u0440\u0445 \u0438 \u0432\u043f\u0440\u0430\u0432\u043e \u043f\u043e \u043e\u0441\u0438 Z, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043d\u0430 \u0431\u043e\u043a\u043e\u0432\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0441\u0443\u043d\u0434\u0443\u043a\u0430, \u0432 \u0449\u0435\u043b\u0438 \u043c\u0435\u0436\u0434\u0443 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438 &#171;\u043a\u0440\u044b\u0448\u043a\u043e\u0439&#187;. <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u043c &#171;\u043a\u0440\u044b\u0448\u043a\u0443&#187; (MeshInstance4) \u0432\u043d\u0443\u0442\u0440\u044c Spatial. <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u044b\u0434\u0435\u043b\u0438\u043c \u0443\u0437\u0435\u043b Spatial \u0438 \u043f\u043e\u0432\u0435\u0440\u043d\u0451\u043c \u0435\u0433\u043e \u043f\u043e \u043e\u0441\u0438 X \u043f\u043e\u0442\u044f\u043d\u0443\u0432 \u0437\u0430 \u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u043a\u0440\u0443\u0433 (\u043a\u0430\u043a \u0431\u044b \u043f\u0440\u0438\u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044f &#171;\u043a\u0440\u044b\u0448\u043a\u0443&#187;). \u0418\u043b\u0438 \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u0431\u0438\u0442\u044c \u0443\u0433\u043e\u043b \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430 \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435 (\u043d\u0430\u0431\u0438\u0440\u0430\u0435\u043c \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435 \u0434\u043b\u044f Rotation Degrees -25 \u0432 \u044f\u0447\u0435\u0439\u043a\u0435 X).<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0441\u0446\u0435\u043d\u0443. \u0417\u0430\u043a\u0440\u043e\u0435\u043c \u0435\u0451 \u0432\u043a\u043b\u0430\u0434\u043a\u0443, \u043d\u0430\u0436\u0430\u0432 \u043d\u0430 \u043a\u0440\u0435\u0441\u0442\u0438\u043a \u0440\u044f\u0434\u043e\u043c \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c. <\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u0441\u044f \u0441\u043d\u043e\u0432\u0430 \u0432 \u0441\u0446\u0435\u043d\u0435 \u0443\u0440\u043e\u0432\u043d\u044f. \u0421\u0434\u0435\u043b\u0430\u0435\u043c \u043f\u0430\u0440\u0443 \u043a\u043e\u043f\u0438\u0439 <strong>Chest_A<\/strong> (\u0421trl + D) \u0441\u0434\u0432\u0438\u0433\u0430\u044f \u043a\u0430\u0436\u0434\u0443\u044e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e Z. \u0417\u0430\u0442\u0435\u043c \u0432\u044b\u0434\u0435\u043b\u0438\u043c \u0432\u0441\u0435 \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u043c \u043f\u0440\u0430\u0432\u0435\u0435 \u043f\u043e \u043e\u0441\u0438 X, \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043e\u0442 \u043a\u043e\u043b\u043e\u043d\u043d.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0438\u0433\u0440\u0443. \u041f\u0435\u0440\u0441\u043e\u043d\u0430\u0436 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0441\u043a\u0432\u043e\u0437\u044c \u0441\u0443\u043d\u0434\u0443\u043a\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u043f\u0435\u0440\u0435\u0432\u0435\u043b\u0438 \u0438\u0445 \u0432 \u0441\u043b\u043e\u0439, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u0442 \u0440\u0435\u0439\u043a\u0430\u0441\u0442 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430. \u0422\u0430\u043a \u043f\u043e\u043a\u0430 \u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u043c.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0417\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0434\u043b\u044f \u0432\u0440\u0430\u0433\u0430<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0421\u0434\u0435\u043b\u0430\u0435\u043c \u043a\u043e\u043f\u0438\u044e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0441\u0443\u043d\u0434\u0443\u043a\u0430 <strong>Chest_A3<\/strong>. \u0412\u044b\u0434\u0435\u043b\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0439\u0441\u044f <strong>Chest_A4<\/strong> \u0438 \u0441\u0431\u0440\u043e\u0441\u0438\u043c \u0435\u0433\u043e <strong>Translation<\/strong> \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0429\u0435\u043b\u043a\u0430\u0435\u043c \u043f\u043e <strong>Chest_A4<\/strong> \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u0438 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u0435\u0433\u043e \u043d\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435 (<strong>Make Local<\/strong>).<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u0443\u0435\u043c \u0443\u0437\u0435\u043b \u0432 <strong>Enemy_red<\/strong>. <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0423 \u043e\u0431\u043e\u0438\u0445 \u043a\u0443\u0431\u0438\u043a\u043e\u0432 (MeshInstance2 \u0438 MeshInstance4) \u0432 \u043f\u043e\u043b\u0435 <strong>Shape<\/strong> \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c <strong>Make Unique<\/strong>.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0410 \u0432\u043e\u0442 \u0432 \u0443\u0437\u043b\u0435 <strong>CollisionShape<\/strong> \u0432\u044b\u0431\u0435\u0440\u0435\u043c \u0434\u0440\u0443\u0433\u0443\u044e \u0444\u043e\u0440\u043c\u0443 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043a\u0443\u0431\u0438\u0447\u0435\u0441\u043a\u043e\u0439 &#8212; <strong>SphereShape<\/strong>. \u0420\u0430\u0434\u0438\u0443\u0441 \u0441\u0444\u0435\u0440\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0432 <strong>1.5<\/strong>.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043d\u0430 \u0443\u0437\u043b\u0435 <strong>Enemy_red<\/strong> \u0438 \u0441\u0436\u0438\u043c\u0430\u0435\u043c \u0435\u0433\u043e \u0432 \u0441\u0446\u0435\u043d\u0443-\u043f\u0440\u0435\u0444\u0430\u0431 (\u043f\u0440\u0430\u0432\u0430\u044f \u043a\u043d\u043e\u043f\u043a\u0430, <strong>Save Branch as Scene<\/strong>). \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u0442\u0443 \u0436\u0435 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043f\u0430\u043f\u043a\u0443 (Prerfabs) \u043f\u043e\u0434 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u043c\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043c.<\/p>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0441\u0446\u0435\u043d\u0443 \u0443\u0440\u043e\u0432\u043d\u044f. \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432\u043d\u0443\u0442\u0440\u044c \u0441\u0446\u0435\u043d\u044b <strong>Enemy_red<\/strong>. \u0412\u044b\u0434\u0435\u043b\u0438\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u043a\u0443\u0431\u0438\u043a (MeshInstance2), \u043e\u0442\u043a\u0440\u043e\u0435\u043c \u0432\u043a\u043b\u0430\u0434\u043a\u0443 <strong>Material<\/strong> \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435. \u0429\u0435\u043b\u043a\u043d\u0443\u0432 \u043d\u0430 \u043f\u0443\u0441\u0442\u043e\u043c \u043f\u043e\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b, \u0432\u044b\u0431\u0440\u0430\u0432 <strong>New SpatialMaterial<\/strong>.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0429\u0451\u043b\u043a\u0430\u0435\u043c \u043f\u043e \u0431\u0435\u043b\u043e\u0439 \u0441\u0444\u0435\u0440\u0435 \u0438 \u0432 \u043e\u0442\u043a\u0440\u044b\u0432\u0448\u0438\u0445\u0441\u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043d\u043e\u0432\u043e\u0433\u043e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0432\u043a\u043b\u0430\u0434\u043a\u0443 <strong>Albelo<\/strong>. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c <strong>\u043a\u0440\u0430\u0441\u043d\u044b\u0439<\/strong> \u0446\u0432\u0435\u0442 \u0432 \u043f\u043e\u043b\u0435 <strong>Color<\/strong>.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b, \u043d\u0430\u0436\u0430\u0432 \u043d\u0430 <strong>\u0438\u043a\u043e\u043d\u043a\u0443 \u0434\u0438\u0441\u043a\u0435\u0442\u043a\u0438<\/strong> \u0438 \u0432\u044b\u0431\u0440\u0430\u0432 <strong>Save As&#8230;<\/strong><\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0429\u0451\u043b\u043a\u0430\u0435\u043c \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u043f\u043e \u043f\u0430\u043f\u043a\u0435 <strong>Materials<\/strong>, \u043c\u0435\u043d\u044f\u0435\u043c \u0438\u043c\u044f \u043d\u0430 <strong>emeny_red_mat<\/strong> \u0438 \u0436\u043c\u0451\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u044b\u0434\u0435\u043b\u0438\u043c \u0435\u0449\u0451 \u0440\u0430\u0437 \u0443\u0437\u0435\u043b <strong>MeshInstance2<\/strong>, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435. \u041a\u043b\u0438\u043a\u0430\u0435\u043c \u043f\u043e \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c\u0443 \u0441\u043f\u0438\u0441\u043a\u0443 \u043d\u0430 \u043a\u0440\u0430\u0441\u043d\u043e\u0439 \u0441\u0444\u0435\u0440\u0435 \u0432 \u0435\u0433\u043e \u043f\u043e\u043b\u0435 <strong>material<\/strong> \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043e\u043f\u0446\u0438\u044e <strong>Copy<\/strong>.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u0443\u0431\u0438\u043a (<strong>MeshInstance4<\/strong>), \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0443 <strong>Material<\/strong> \u0438 \u0432 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c \u0441\u043f\u0438\u0441\u043a\u0435 \u0443 \u043f\u043e\u043b\u044f <strong>empty<\/strong> (\u043b\u0438\u0431\u043e \u043f\u043e \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0435) \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u0430\u043c\u044b\u0439 \u043d\u0438\u0436\u043d\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 &#8212; <strong>Paste<\/strong>. \u041a\u0440\u0430\u0441\u043d\u044b\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u0431\u0430 \u043a\u0443\u0431\u0438\u043a\u0430 \u043a\u0440\u0430\u0441\u043d\u044b\u0435. \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u043f\u043e\u043a\u0430 \u0441\u0446\u0435\u043d\u0443.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u043b\u043e\u0438 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0439, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0438 \u0441\u0442\u0430\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u044b\u043c\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0434\u0451\u043c \u0432 <strong>Project<\/strong> &#8212; <strong>Project Settings&#8230;<\/strong> <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u043e\u043a\u043e\u0448\u043a\u043e \u0441 \u043a\u0443\u0447\u0435\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a. <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u043e\u043c\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u043b\u0435\u0432\u0443\u044e \u043a\u043e\u043b\u043e\u043d\u043a\u0443 \u0432\u043d\u0438\u0437 \u0438 \u0432 <strong>Layer Names<\/strong> \u043a\u043b\u0438\u043a\u0430\u0435\u043c \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443 <strong>3D Physics<\/strong>. \u0412 \u043f\u043e\u043b\u044f\u0445 \u0441\u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u0432\u043e\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043b\u043e\u0451\u0432. Layer 2 &#8212; <strong>solid object<\/strong>, Layer 3 &#8212; <strong>chest<\/strong>, Layer 4 &#8212; <strong>enemy<\/strong>, Layer 5 &#8212; <strong>player<\/strong>. \u0417\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u043d\u0430\u0436\u0430\u0432 \u0432\u043d\u0438\u0437\u0443 \u043a\u043d\u043e\u043f\u043a\u0443 <strong>close<\/strong>.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u044b\u0434\u0435\u043b\u0438\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u0437\u0435\u043b <strong>Area<\/strong>, \u043e\u0442\u043a\u0440\u043e\u0435\u043c \u0432 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0435 \u0432\u043a\u043b\u0430\u0434\u043a\u0443 <strong>Collision<\/strong>, \u043d\u0430\u0432\u0435\u0434\u0451\u043c \u043d\u0430 \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u043d\u0443\u044e \u044f\u0447\u0435\u0439\u043a\u0443 &#8212; \u0442\u0430\u043c \u0433\u043e\u0440\u0438\u0442 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430, \u0447\u0442\u043e \u0441\u043b\u043e\u0439 3 \u044d\u0442\u043e chest (\u0441\u0443\u043d\u0434\u0443\u043a). \u041d\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u043f\u0440\u0435\u0444\u0430\u0431 \u0432\u0440\u0430\u0433\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u043c \u0441\u043b\u043e\u0439 3 \u0438 \u0432\u043a\u043b\u044e\u0447\u0438\u043c <strong>4<\/strong> &#8212; enemy.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432\u0440\u0430\u0433\u0443 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442. \u0412\u044b\u0434\u0435\u043b\u0438\u043c \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0443\u0437\u0435\u043b <strong>Enemy_red<\/strong> \u0438 \u043d\u0430\u0436\u043c\u0451\u043c \u043d\u0430 <strong>\u0441\u0432\u0438\u0442\u043e\u043a \u0441 \u0437\u0435\u043b\u0451\u043d\u044b\u043c \u043f\u043b\u044e\u0441\u0438\u043a\u043e\u043c<\/strong> \u043f\u0440\u0430\u0432\u0435\u0435 \u0438 \u0432\u044b\u0448\u0435.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0416\u043c\u0451\u043c \u043d\u0430 \u0438\u043a\u043e\u043d\u043a\u0443 \u043f\u0430\u043f\u043a\u0438, \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c\u0441\u044f \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 Prefabs \u043d\u0430 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0432\u044b\u0448\u0435 \u0438 \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 scripts, \u0433\u0434\u0435 \u0443\u0436\u0435 \u043b\u0435\u0436\u0438\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0446\u0435\u043d\u044b &#8212; <a href=\"http:\/\/Main.gd\" rel=\"noopener noreferrer nofollow\">Main.gd<\/a>.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u0430\u0432\u0438\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 <strong>theAI_red<\/strong> \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c <strong>Open<\/strong>. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0436\u0430\u0442\u044c <strong>Create<\/strong>.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u043f\u0430\u0434\u0430\u0435\u043c \u0432 \u043d\u043e\u0432\u044b\u0439 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442. \u0412\u043d\u0438\u0437\u0443 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0436\u0430\u0442\u044c \u043d\u0430 \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0443, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\/\u0441\u043a\u0440\u044b\u0442\u044c \u043f\u0430\u043d\u0435\u043b\u044c\u043a\u0443 \u0441 \u043f\u0435\u0440\u0435\u0447\u043d\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432. <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0438\u0434\u0438\u043c \u0442\u0430\u043c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0441\u0435\u0439\u0447\u0430\u0441 \u0432\u044b\u0431\u0440\u0430\u043d \u0441\u043a\u0440\u0438\u043f\u0442 theAI_red.gd. \u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0432\u0441\u0451, \u0447\u0442\u043e \u043d\u0438\u0436\u0435 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0438 \u043f\u0438\u0448\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<pre><code class=\"python\">func _physics_process(delta): self.translation.x += delta<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u0449\u0451\u043b\u043a\u043d\u0443\u0432 \u043f\u043e <strong>File<\/strong> &#8212; <strong>Save<\/strong>. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438\u0433\u0440\u0443 (\u041a\u043d\u043e\u043f\u043a\u0430 <strong>Play<\/strong>, \u0433\u043e\u0440\u044f\u0447\u0430\u044f \u043a\u043b\u0430\u0432\u0438\u0448\u0430 F5).<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0432\u0440\u0430\u0433 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u0439 \u0436\u0435 \u0442\u043e\u0447\u043a\u0435, \u0447\u0442\u043e \u0438 \u0438\u0433\u0440\u043e\u043a, \u0438 \u0432\u0441\u0451 \u0432\u0440\u0435\u043c\u044f \u0443\u0431\u0435\u0433\u0430\u0435\u0442 \u0432\u043f\u0440\u0430\u0432\u043e.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u0432\u0440\u0430\u0433-\u043f\u0440\u0435\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u0432\u0435\u0434\u0451\u043c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f \u0432\u043d\u0435 \u0441\u0446\u0435\u043d \u0438 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0438\u0437 \u043f\u0440\u043e\u0447\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, \u0433\u0434\u0435 \u0431\u044b \u043e\u043d\u0438 \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0438\u0441\u044c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0449\u0451\u043b\u043a\u043d\u0435\u043c \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0435 <strong>res:\/\/<\/strong> \u0432 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043b\u0435\u0432\u043e\u043c \u043e\u043a\u043e\u0448\u043a\u0435 \u0441 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0435\u0439 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 <strong>New Script<\/strong>.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0449\u0451\u043b\u043a\u0430\u0435\u043c \u043d\u0430 \u0437\u043d\u0430\u0447\u043e\u043a \u043f\u0430\u043f\u043a\u0438. \u041c\u0435\u043d\u044f\u0435\u043c \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043d\u0430 \u0431\u0443\u043a\u0432\u0443 <strong>G<\/strong> (<a href=\"http:\/\/G.gd\" rel=\"noopener noreferrer nofollow\">G.gd<\/a>) \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c <strong>Open<\/strong>. \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u043a\u0440\u0438\u043f\u0442, \u043d\u0430\u0436\u0430\u0432 \u043d\u0430 <strong>Create<\/strong>.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0442\u043a\u0440\u043e\u0435\u043c \u0435\u0433\u043e, \u0441\u0434\u0435\u043b\u0430\u0432 \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u043a\u043b\u0438\u043a \u043f\u043e <a href=\"http:\/\/G.gd\" rel=\"noopener noreferrer nofollow\"><strong>G.gd<\/strong><\/a> \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0423\u0431\u0435\u0440\u0451\u043c \u0432\u0441\u0435 \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u0432\u044b\u0448\u0435 <em>_ready()<\/em> \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 <strong>var player_place = Vector3.ZERO<\/strong> . \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0441\u0435\u0439\u0447\u0430\u0441 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f player_place \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430\u044f \u0432 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 G.player_place.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 <strong>Project<\/strong> &#8212; <strong>Project Settings&#8230;<\/strong> <\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u0442\u0430\u043c \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0443 <strong>AutoLoad<\/strong>. \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u0437\u043d\u0430\u0447\u043e\u043a \u043f\u0430\u043f\u043a\u0438. \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c <a href=\"http:\/\/G.gd\" rel=\"noopener noreferrer nofollow\"><strong>G.gd<\/strong><\/a>. <strong>Open<\/strong>.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0441\u0430\u043c\u0443\u044e \u043f\u0440\u0430\u0432\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 <strong>Add.<\/strong> \u041f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u0447\u043a\u0430 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438. \u0417\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043e\u043a\u043d\u043e, \u043d\u0430\u0436\u0430\u0432 \u0432\u043d\u0438\u0437\u0443 \u043d\u0430 <strong>Close<\/strong>. \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043a\u0440\u0438\u043f\u0442 G \u0441\u0442\u0430\u043b \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0438\u0437 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043f\u043e \u0441\u0432\u043e\u0435\u043c\u0443 \u0438\u043c\u0435\u043d\u0438.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u043c\u0441\u044f \u0432 \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0446\u0435\u043d\u044b <a href=\"http:\/\/theMain.gd\" rel=\"noopener noreferrer nofollow\"><strong>theMain.gd<\/strong><\/a>.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043e\u043f\u0438\u0448\u0435\u043c \u043d\u0438\u0436\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 <em>func _process()<\/em> \u043f\u0430\u0440\u0443 \u0441\u0442\u0440\u043e\u043a \u0441 \u043d\u043e\u0432\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439, \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044e\u0449\u0435\u0439 \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432\u0432\u043e\u0434\u0430:<\/p>\n<pre><code class=\"python\">func _unhandled_input(event): G.player_place = main_hero.global_translation<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0447\u0442\u043e-\u0442\u043e \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u0442, \u0442\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0433\u0435\u0440\u043e\u044f (main_hero.global_translation) \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 (player_place).<\/p>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442. \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u0432 <strong>theAI_red.gd<\/strong>.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u043c\u0435\u043d\u0438\u043c \u0432\u0435\u0441\u044c \u0435\u0433\u043e \u043a\u043e\u0434 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c:<\/p>\n<pre><code class=\"python\">extends Spatial  var speed = 1.0  func _physics_process(delta): self.look_at(Vector3(G.player_place.x,self.translation.y,G.player_place.z), Vector3.UP)  self.translate(-Vector3.BACK * speed * delta)<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438\u0433\u0440\u0443. \u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u0440\u0430\u0433 \u0441\u0442\u0430\u043b \u043f\u0440\u0435\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0438\u0433\u0440\u043e\u043a\u0430 \u043f\u043e \u0435\u0433\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c, \u0432\u0440\u0430\u0449\u0430\u044f\u0441\u044c \u0432\u043e\u043a\u0440\u0443\u0433 \u0441\u0432\u043e\u0435\u0439 \u043e\u0441\u0438, \u0435\u0441\u043b\u0438 \u043f\u043e\u0434\u043e\u0448\u0451\u043b \u0441\u043e\u0432\u0441\u0435\u043c \u0431\u043b\u0438\u0437\u043a\u043e.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u0432\u0438\u0436\u0435\u0442\u0441\u044f \u0432\u0440\u0430\u0433 &#171;\u0441\u043f\u0438\u043d\u043e\u0439&#187;, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u043f\u0440\u0430\u0432\u0438\u043c \u0435\u0433\u043e \u0441\u0446\u0435\u043d\u0443. \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u0432 \u0440\u0435\u0436\u0438\u043c <strong>3D<\/strong>, \u043e\u043a\u0430\u0437\u0430\u0432\u0448\u0438\u0441\u044c \u043d\u0430 \u0441\u0446\u0435\u043d\u0435 <strong>Enemy_red<\/strong>. \u0412\u044b\u0434\u0435\u043b\u0438\u043c \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0443\u0437\u0435\u043b (<strong>Enemy_red<\/strong>) \u0438 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u044b\u0439 <strong>Spatial<\/strong><\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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-337525","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/337525","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=337525"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/337525\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=337525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=337525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=337525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}