{"id":12258,"date":"2025-06-19T23:54:04","date_gmt":"2025-06-19T14:54:04","guid":{"rendered":"https:\/\/www.webcyou.com\/?p=12258"},"modified":"2025-06-19T23:54:05","modified_gmt":"2025-06-19T14:54:05","slug":"godot-4-rust-%e5%a7%8b%e3%82%81%e6%96%b9","status":"publish","type":"post","link":"https:\/\/www.webcyou.com\/?p=12258","title":{"rendered":"Godot 4 &#038; Rust \u59cb\u3081\u65b9"},"content":{"rendered":"\n<p>\u3069\u3082\u3067\u3059\uff01<br \/>\u5c02\u3089\u3001Tauri\u304b\u3089\u6700\u8fd1\u306fGodot\u3055\u3093\u3067\u3059\uff01<br \/>Godot\u306f\u8d85\u8efd\u91cf\u3067\u3057\u304b\u3082\u6c17\u8efd\u306b\u6271\u3048\u308b\u53cd\u9762\u3001<br \/>\u8a2d\u8a08\u601d\u60f3\u304b\u3089\u3082\u5206\u304b\u308b\u3088\u3046\u306b\u3001\u5927\u898f\u6a21\u3084\u5927\u4eba\u6570\u3067\u6271\u3046\u3088\u3046\u306b\u306a\u308b\u3068\u3059\u3050\u306b\u30ab\u30aa\u30b9\u306b\u7834\u7dbb\u3057\u3084\u3059\u3044\u5370\u8c61\u3067\u3057\u305f\u3002<br \/>\u3067\u3082\u3001\u500b\u4eba\u958b\u767a\u3068\u304b\u6301\u3063\u3066\u3053\u3044\u306e\u30b2\u30fc\u30e0\u30a8\u30f3\u30b8\u30f3\u3067\u3059\u306d\uff01<br \/>\u3069\u3063\u304b\u3069\u304b\u3001\u6cbb\u5b89\u306e\u60aa\u3044\u30bd\u30fc\u30b9\u3092\u751f\u307f\u51fa\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01\uff01\uff08\u7b11\uff09<br \/><br \/>\u4f1a\u793e\u3067\u4f7f\u3046\u3068\u306a\u308b\u3068\u3001\u304b\u306a\u308a\u8003\u3048\u306a\u3044\u3068\u306a\u3041\u3002\u3002<br \/>\u3068\u3044\u3046\u3068\u3053\u308d\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u3001Rust\u3068\u9023\u643a\u3059\u308b\u304b\u3002\u3002<\/p>\n<p>\u3068 <a href=\"https:\/\/github.com\/godot-rust\/gdext\" target=\"_blank\" rel=\"noopener\">godot-rust<\/a>\u3092\u4f7f\u304a\u3046\u3068\u601d\u3044\u3001\u5b9f\u88c5\u3092\u59cb\u3081\u305f\u306e\u3067\u3059\u304c\u3001\u3069\u3046\u3082Godot 3\u306e\u60c5\u5831\u306a\u3069\u53e4\u3044\u60c5\u5831\u3082\u6df7\u5728\u3057\u3066\u3044\u3066\u3044\u305f\u308a\u3001<a href=\"https:\/\/godot-rust.github.io\/book\/\" target=\"_blank\" rel=\"noopener\">\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3082\u306a\u3093\u304b\u3001\u4e0a\u624b\u304f\u3044\u304b\u306a\u304b\u3063\u305f\u308a\u3068\u30d5\u30ac\u30d5\u30ac\u3057\u3061\u3083\u3063\u305f\u306e\u3067\u3001\u4e00\u65e6\u307e\u3068\u3081\u3088\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h4>Godot 4 \u3067 Rust \u3092\u4f7f\u3046<\/h4>\n<p>Godot 4\u3067Rust\u3092\u4f7f\u3046\u305f\u3081\u3001godot-rust\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p><strong>GitHub<\/strong><\/p>\n<p><a href=\"https:\/\/github.com\/godot-rust\/gdext\" target=\"_blank\" rel=\"noopener\">godot-rust<\/a><\/p>\n<p><strong>Crate<\/strong><\/p>\n<p><a href=\"https:\/\/crates.io\/crates\/godot\" target=\"_blank\" rel=\"noopener\">https:\/\/crates.io\/crates\/godot<\/a><\/p>\n<p>\u307e\u305a\u306f\u3001\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u3068\u304a\u308a\u3001Godot\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3068Rust\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u4e26\u5217\u3067\u4e26\u3076\u69d8\u306b\u3001\u300c<strong>rust_godot_project<\/strong><!-- notionvc: 3420ff24-106e-4384-9c4f-b1150242b94a -->\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\">rust_godot_project\n\u251c\u2500\u2500 godot\n\u2514\u2500\u2500 rust<\/pre>\n<p>\u300c<strong>rust_godot_project<\/strong><!-- notionvc: 3420ff24-106e-4384-9c4f-b1150242b94a -->\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u3067 cargo new\u3067Rust \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u751f\u6210\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\">cargo new --lib rust<\/pre>\n<p>Cargo.toml\u30d5\u30a1\u30a4\u30eb\u3092\u4ee5\u4e0b\u3092\u8ffd\u52a0<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">[lib]\ncrate-type = [\"cdylib\"]\n\n[dependencies]\ngodot = \"0.3.1\" <\/pre>\n<p>godot\u30af\u30ec\u30fc\u30c8\u306f\u3001git\u30ec\u30dd\u30b8\u30c8\u30ea\u6307\u5b9a\u3067\u3082<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\">[dependencies]\ngodot = { git = \"https:\/\/github.com\/godot-rust\/gdext.git\", branch=\"master\" }<\/pre>\n<p>lib.rs\u3092\u4ee5\u4e0b\u306b\u4fee\u6b63\u3057\u307e\u3059\u3002<!-- notionvc: 3724e282-1fc9-4aea-8f19-4fa26d1ca867 --><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"rust\">mod player;\nuse godot::prelude::*;\n\nstruct RustExtension;\n\n#[gdextension]\nunsafe impl ExtensionLibrary for RustExtension {}<\/pre>\n<p class=\"p1\">odot crate \u306e prelude \u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30b9\u30b3\u30fc\u30d7\u306b\u5165\u308c\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001gdext API\u3092\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>RustExtension\u306f\u4efb\u610f\u306e\u540d\u524d\u3067\u3001\u4eca\u56de\u300crust\u300d\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3057\u305f\u306e\u3067\u3001\u300cRustExtension\u300d\u3068\u3057\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>Player.rs\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"rust\">use godot::prelude::*;\nuse godot::classes::{ISprite2D, Sprite2D};\n\n#[derive(GodotClass)]\n#[class(base=Sprite2D)]\nstruct Player {\n    speed: f64,\n    angular_speed: f64,\n\n    base: Base&lt;Sprite2D&gt;\n}\n\n#[godot_api]\nimpl ISprite2D for Player {\n    fn init(base: Base&lt;Sprite2D&gt;) -&gt; Self {\n        godot_print!(\"Hello, world!\");\n\n        Self {\n            speed: 400.0,\n            angular_speed: std::f64::consts::PI,\n            base,\n        }\n    }\n\n    fn physics_process(&amp;mut self, delta: f64) {\n        let radians = (self.angular_speed * delta) as f32;\n        self.base_mut().rotate(radians);\n    }\n}<\/pre>\n<p>\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u30d9\u30fc\u30b9\u306bPlayer.rs\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u3061\u3089\u306ePlayer\u69cb\u9020\u3092Godot\u3067\u5229\u7528\u3059\u308b\u5f62\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u3067\u304d\u305f\u3089\u4e00\u65e6 cargo build\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\">cargo build<\/pre>\n<p>\u3053\u306e\u969b\u3001rustc\u304c\u53e4\u3044\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>Rust\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u6700\u4f4e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c <code data-start=\"64\" data-end=\"76\">rustc 1.87<\/code>\u3068\u6bd4\u8f03\u7684\u65b0\u3057\u3044rustc\u3092\u8981\u6c42\u3055\u308c\u307e\u3059\u306e\u3067\u6c17\u3092\u3064\u3051\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u66f4\u65b0\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\">rustup update stable<\/pre>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\">rustc --version\nrustc 1.87.0 (17067e9ac 2025-05-09)<\/pre>\n<p>\u305d\u308c\u3067\u306f\u3001Godot\u5074\u3067\u4f5c\u696d\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h5>Godot\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f5c\u6210<!-- notionvc: 524d9796-d12d-4e2c-a4fa-5b5edaaf467a --><\/h5>\n<p>Godot\u3092\u8d77\u52d5\u3057\u3001godot\u3068\u3044\u3046\u540d\u524d\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<!-- notionvc: 79537a0c-8fe9-4cb8-96b1-c4b9f05e15ca --><\/p>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d1\u30b9\u306f\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u300c<strong>rust_godot_project<\/strong><!-- notionvc: 3420ff24-106e-4384-9c4f-b1150242b94a -->\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-12264\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust2.png\" alt=\"\" width=\"249\" height=\"155\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust2.png 430w, https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust2-300x187.png 300w\" sizes=\"auto, (max-width: 249px) 100vw, 249px\" \/><\/p>\n<p>2D \u30b7\u30fc\u30f3\u62bc\u4e0b\u3067\u3001\u65b0\u898f2D\u30b7\u30fc\u30f3\u3092\u4f5c\u6210\u3002<!-- notionvc: 6bda99c3-8598-45c9-a4ec-90273b4d7136 --><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-12265\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust3.png\" alt=\"\" width=\"279\" height=\"199\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust3.png 534w, https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust3-300x215.png 300w\" sizes=\"auto, (max-width: 279px) 100vw, 279px\" \/><\/p>\n<p>\u300cMain\u300d\u306b\u30ea\u30cd\u30fc\u30e0\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-12266\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust4.png\" alt=\"\" width=\"286\" height=\"161\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust4.png 502w, https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust4-300x169.png 300w\" sizes=\"auto, (max-width: 286px) 100vw, 286px\" \/><\/p>\n<p>Godot\u3068Rust\u63a5\u7d9a\u306e\u305f\u3081\u306b\u809d\u3068\u306a\u308b\u300c<strong>.<span class=\"notion-enable-hover\" spellcheck=\"false\" data-token-index=\"0\">gdextension<\/span><\/strong><!-- notionvc: e2772096-ae65-4545-8373-0610e37af6b2 -->\u300d\u30d5\u30a1\u30a4\u30eb\u3092\u300cgodot\u300d\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u4f5c\u6210\u3001\u914d\u7f6e\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u300c<strong><span class=\"notion-enable-hover\" spellcheck=\"false\" data-token-index=\"0\">rust.gdextension<\/span><\/strong><!-- notionvc: 2cfb51f9-f052-4194-b2af-519accf56011 -->\u300d\u3068\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<!-- notionvc: 6ce6af6c-7f00-4173-b52c-805dd8e7ca09 --><\/p>\n<p><strong><span class=\"notion-enable-hover\" spellcheck=\"false\" data-token-index=\"0\">rust.gdextension<\/span><\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">[configuration]\nentry_symbol = \"gdext_rust_init\"\ncompatibility_minimum = 4.1\nreloadable = true\n\n[libraries]\nlinux.debug.x86_64 =     \"res:\/\/..\/rust\/target\/debug\/librust.so\"\nlinux.release.x86_64 =   \"res:\/\/..\/rust\/target\/release\/librust.so\"\nwindows.debug.x86_64 =   \"res:\/\/..\/rust\/target\/debug\/rust.dll\"\nwindows.release.x86_64 = \"res:\/\/..\/rust\/target\/release\/rust.dll\"\nmacos.debug =            \"res:\/\/..\/rust\/target\/debug\/librust.dylib\"\nmacos.release =          \"res:\/\/..\/rust\/target\/release\/librust.dylib\"\nmacos.debug.arm64 =      \"res:\/\/..\/rust\/target\/debug\/librust.dylib\"\nmacos.release.arm64 =    \"res:\/\/..\/rust\/target\/release\/librust.dylib\"<\/pre>\n<p><code class=\"hljs\">[libraries]<\/code><span>\u30bb\u30af\u30b7\u30e7\u30f3\u306f\u3001\u52d5\u7684 Rust \u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30d1\u30b9\u3068\u4e00\u81f4\u3059\u308b\u3088\u3046\u306b\u66f4\u65b0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<p>\u5404\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u5408\u308f\u305b\u305f\u30d1\u30b9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u304c\u3001mac\u3060\u3051\u3067\u826f\u3044\u5834\u5408\u306f\u9650\u5b9a\u3082\u884c\u3048\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u300clib{YourCrate}.dylib\u300d\u3068\u3044\u3046\u5f62\u306b\u306a\u308a\u3001\u4eca\u56de\u306f\u300crust\u300d\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u751f\u6210\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u300clibrust.dylib\u300d\u3068\u3044\u3063\u305f\u5f62\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u00a0<\/p>\n<p>\u3053\u3053\u307e\u3067\u884c\u3048\u3070\u3001\u5148\u7a0bRust\u5074\u3067\u4f5c\u6210\u3057\u305f\u300cPlayer\u300dstruct\u3092\u30ce\u30fc\u30c9\u3068\u3057\u3066\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<!-- notionvc: 5629e238-453b-4cfd-9d6c-668ab9409a18 -->Main\u30b7\u30fc\u30f3\u306e\u5b50\u30ce\u30fc\u30c9\u3068\u3057\u3066 Sprite2D\u306e\u300c<strong>Player<\/strong>\u300d\u30ce\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<!-- notionvc: f9fdb387-bc21-4ebf-a018-1041d1c55ce8 --><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-12267\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust5.png\" alt=\"\" width=\"333\" height=\"247\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust5.png 866w, https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust5-300x222.png 300w, https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust5-768x569.png 768w\" sizes=\"auto, (max-width: 333px) 100vw, 333px\" \/><\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3088\u308a\u300cicon.svg\u300d\u3092Sprite2D\u306e\u30c6\u30af\u30b9\u30c1\u30e3\u306b\u9069\u5fdc\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-12268\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust6.png\" alt=\"\" width=\"272\" height=\"217\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust6.png 570w, https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust6-300x240.png 300w\" sizes=\"auto, (max-width: 272px) 100vw, 272px\" \/><\/p>\n<p>\u5927\u4f53\u771f\u3093\u4e2d\u3042\u305f\u308a\u306b\u79fb\u52d5\u3055\u305b\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-12269\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust7.png\" alt=\"\" width=\"421\" height=\"269\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust7.png 700w, https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust7-300x192.png 300w\" sizes=\"auto, (max-width: 421px) 100vw, 421px\" \/><\/p>\n<p>godot\u3092\u30d3\u30eb\u30c9\u3059\u308b\u3068\u3001\u30a2\u30a4\u30b3\u30f3\u304c\u304f\u308b\u304f\u308b\u56de\u8ee2\u3057\u307e\u3059\u3002\u4e0a\u624b\u304fRust\u3068\u9023\u643a\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-12270\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust8-1024x626.png\" alt=\"\" width=\"417\" height=\"255\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust8-1024x626.png 1024w, https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust8-300x183.png 300w, https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust8-768x469.png 768w, https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust8.png 1152w\" sizes=\"auto, (max-width: 417px) 100vw, 417px\" \/><\/p>\n<h5>\u66f4\u306b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u5f93\u3063\u3066\u56de\u8ee2\u3055\u305b\u308b<\/h5>\n<p>\u66f4\u306b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u5f93\u3063\u3066\u3001\u30a2\u30a4\u30b3\u30f3\u3092\u5468\u56de\u3055\u305b\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>Rust\u306ephysics_process\u3092\u4ee5\u4e0b\u306e\u69d8\u306b\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"rust\">fn physics_process(&amp;mut self, delta: f64) {        \n    let radians = (self.angular_speed * delta) as f32;\n    self.base_mut().rotate(radians);\n\n    let rotation = self.base().get_rotation();\n    let velocity = Vector2::UP.rotated(rotation) * self.speed as f32;\n    self.base_mut().translate(velocity * delta as f32);\n}<\/pre>\n<p>\u4fee\u6b63\u5f8c\u3001Godot\u3092\u30d3\u30eb\u30c9\u3057\u3066\u3082\u307e\u3060\u53cd\u6620\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>Rust\u5074\u306e\u4fee\u6b63\u306e\u90fd\u5ea6\u30d3\u30eb\u30c9\u3092\u884c\u308f\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\">cargo build<\/pre>\n<p>\u518d\u3073\u3001Godot\u3092\u30d3\u30eb\u30c9\u3057\u3066\u78ba\u8a8d\u3002\u4eca\u56de\u306f\u4e0a\u624b\u304f\u3044\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-12271\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust9-1024x626.png\" alt=\"\" width=\"413\" height=\"253\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust9-1024x626.png 1024w, https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust9-300x183.png 300w, https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust9-768x469.png 768w, https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/06\/godot-rust9.png 1152w\" sizes=\"auto, (max-width: 413px) 100vw, 413px\" \/><\/p>\n<p>\u3068\u3044\u3046\u611f\u3058\u3067\u3001Rust\u3092\u7528\u3044\u3066Godot\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f5c\u6210\u3082\u9032\u3081\u3066\u884c\u3051\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u304c\u3001\u4e00\u756a\u884c\u3044\u305f\u3044\u306e\u304cWasm\u3068\u9023\u643a\u3067\u3001\u3053\u3061\u3089\u306e\u30af\u30ec\u30fc\u30c8\uff08\u3060\u3063\u305f\u304b\u306a\uff09\u3082\u5b58\u5728\u3059\u308b\u307f\u305f\u3044\u306a\u306e\u3067\u8abf\u3079\u3066\u884c\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u696d\u52d9\u4e0a\u6271\u3063\u3066\u3044\u308b\u3053\u3068\u3082\u3042\u3063\u3066\u3001\u4eca\u5f8c\u306fGodot\u306b\u95a2\u3059\u308b\u3053\u3068\u3092\u767a\u4fe1\u3057\u3066\u3044\u304f\u3053\u3068\u304c\u5897\u3048\u305d\u3046\u306a\u306e\u3067\u5b9c\u3057\u304f\u304a\u9858\u3044\u3057\u307e\u3059\u30fc\uff01<\/p>\n<p>\u4eca\u56de\u306e\u30bd\u30fc\u30b9\u306f\u3053\u3061\u3089\u3067\u53c2\u7167\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/godot-game-samples\/rust-godot-starter\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/godot-game-samples\/rust-godot-starter<\/a><\/p>\n<p>\u305d\u308c\u3067\u306f\u3041\u3002<\/p>\n<p>\u307e\u305f\u307e\u305f\u3041\u3002<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3082\u3067\u3059\uff01\u5c02\u3089\u3001Tauri\u304b\u3089\u6700\u8fd1\u306fGodot\u3055\u3093\u3067\u3059\uff01Godot\u306f\u8d85\u8efd\u91cf\u3067\u3057\u304b\u3082\u6c17\u8efd\u306b\u6271\u3048\u308b\u53cd\u9762\u3001\u8a2d\u8a08\u601d\u60f3\u304b\u3089\u3082\u5206\u304b\u308b\u3088\u3046\u306b\u3001\u5927\u898f\u6a21\u3084\u5927\u4eba\u6570\u3067\u6271\u3046\u3088\u3046\u306b\u306a\u308b\u3068\u3059\u3050\u306b\u30ab\u30aa\u30b9\u306b\u7834\u7dbb\u3057\u3084\u3059\u3044\u5370\u8c61\u3067\u3057\u305f\u3002\u3067\u3082\u3001\u500b\u4eba\u958b\u767a\u3068\u304b\u6301\u3063 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":12260,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[299],"tags":[371,166,37,327,145,109,370,178,114],"class_list":["post-12258","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-rust","tag-godot","tag-iphone","tag-iphone-","tag-rust","tag-unity","tag-109","tag-370","tag-178","tag-114"],"_links":{"self":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/12258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12258"}],"version-history":[{"count":6,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/12258\/revisions"}],"predecessor-version":[{"id":12273,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/12258\/revisions\/12273"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/media\/12260"}],"wp:attachment":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}