Help needed with 'merge' function in Suika-like game #19968
Unanswered
Kitty-Kat-3
asked this question in
Q&A
Replies: 1 comment
-
Look here: let Ok([shape1, shape2]) = query.get_many([collider1, collider2]) else {
bevy::log::info!("Cannot get collider: {:?}", query.get_many([collider1, collider2])); // Problem here
continue;
}; First, you try to get some objects from your query. You must to change your program: let Ok([shape1, shape2]) = query.get_many([collider1, collider2]) else {
bevy::log::info!("Cannot get collider: {:?} and {:?}", collider1, collider2); // Problem here
continue;
}; Can I help you more? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to create a function in a Suika-like game that will merge 'shapes' (equivalent to Suika's fruits) and am having difficulty.
Whenever a collision occurs, the following statement is shown:
Cannot get collider: Err(QueryDoesNotMatch(10v1#4294967306, ArchetypeId(16)))
The point at which this error occurs within the function is shown in the code below. Can somebody help me solve this?
Beta Was this translation helpful? Give feedback.
All reactions