-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update to bevy 0.14 #59
Comments
Here's some thread I could trace a bit on discord. Let's try to establish a bit of transparency here:
|
Looks like they didn't change init_state, but still changed get_state. |
I think you can just use the patched version here: https://github.com/Azorlogh/bevy-trait-query/tree/bevy-0.14 It just doesn't make use of the state. I just ran the benchmarks again and here is the comparison with respect to bevy 0.13. TLDR: after bevy update:
|
Can you submit a PR for that fork? I'm not the maintainer, but it would be nice to have increased visibility. |
AFAIK there are still unresolved issues since transmute won't work with this implementation on those queries and will actually panic (?). I'll add a test and some notes somewhere to showcase that. I'm not sure if we can prevent users from trying to transmute those queries in a good way other than through docs :/ But yeah, at least it's working somehow :) |
Would it be possible to have an rc version with this change for crates that depend on bevy trait query, just so they can migrate to 0.14? |
You can just add [patch.crates-io]
bevy-trait-query = { git = "https://github.com/RobWalt/bevy-trait-query.git", branch = "bevy-0.14-partial-update" } to your |
You can't use this if you're releasing your crate on |
As far as I can tell this crate is going to have a hard time to upgrade to bevy 0.14.
When impl-ing
WorldQuery
we're currently relying on the fact that we get world acces ininit_state
andget_state
to init/get the trait registry internally and get the relevant data. The API ofWorldQuery
changed to onlyComponentInitializer
or Components respectively.I'm not seeing any easy way of resolving this, hence I wanted to open this issue for discussion here. Ideas are welcome. I'll try hacking around a bit now 🔧
The text was updated successfully, but these errors were encountered: