-
Bevy version0.12.1 I'm sure that the input works. I checked if it works without entity iteration. I tried to do a lot. But I don’t understand why the filter simply doesn’t seem to find my essence... It’s like it doesn’t exist. I don't understand. I cant move player... I've already gone crazy searching. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Can you maybe query the Player too with &Player, just so we can know that the problem is indeed the Filter? query_player: Query<&Player>
// the function here...
for player in query_player {
println!("{}", player.input_id);
} |
Beta Was this translation helpful? Give feedback.
-
You seem to be dealing with many different Example: #[path="player.rs"]
mod a;
#[path="player.rs"]
mod b;
fn main() {
let a = a::Player;
a == b::Player; // error: mismatched types
// ^note: `b::Player` and `a::Player` have similar names, but are actually distinct types
}
|
Beta Was this translation helpful? Give feedback.
-
Thank you all for your help, with perseverance I finally found what was going on.... This was a real test for me “considering that I am an experienced programmer,” but on all other tools, it was very difficult for me for the last 8 hours. |
Beta Was this translation helpful? Give feedback.
You should go back to where you were before, in the first prints, and maybe just try to use the same mod. Maybe defining the Player mod upper in the main file, then doing
use crate::player::Player;
(something like this)