Closed rapushka closed 2 months ago
According to the 2nd step of the Setup section in the readme file – you could use the github link to the dgext crate for dependency
[dependencies] godot = { git = "https://github.com/godot-rust/gdext", branch = "master" }
but, at least in my case (linux, godot 4.3) – it just doesn't work, cuz the BevyApp node just won't appear! even considering that the gdextension is set up correctly, for example: i could write this code and the Player node will work just fine!
BevyApp
Player
#[derive(GodotClass)] #[class(base=Sprite2D)] struct Player { speed: f64, angular_speed: f64, base: Base<Sprite2D>, } #[godot_api] impl ISprite2D for Player { fn init(base: Base<Sprite2D>) -> Self { Self { speed: 400.0, angular_speed: std::f64::consts::PI, base, } } }
meanwhile the simple example uses crates.io version of the godot crate as dependency. so did i, and it just works!
[dependencies] godot = "0.1.3"
Thanks!
According to the 2nd step of the Setup section in the readme file – you could use the github link to the dgext crate for dependency
but, at least in my case (linux, godot 4.3) – it just doesn't work, cuz the
BevyApp
node just won't appear! even considering that the gdextension is set up correctly, for example: i could write this code and thePlayer
node will work just fine!meanwhile the simple example uses crates.io version of the godot crate as dependency. so did i, and it just works!