Update to Bevy 0.19.0 (WIP)#694
Conversation
|
Is there even anything that can be done except for converting between the different glam versions' types everywhere, as there isn't going to be a rapier version matching bevy 0.19? Has something like this been done in bevy_rapier before? I guess the conversion would a least be free as the layout will match, but the code is not going to be pretty. And potentially annoying to work with for users too... |
|
I agree that adding manual conversions everywhere would get messy. A cleaner alternative might be to create a This is something that the maintainers should decide. @sebcrozet |
|
@Buncys I agree the approach your are suggesting sounds like the best one in this siutation. |
|
@sebcrozet Glad you agree! Would it be possible to create a |
Being a native bevy plugin, avian provides support for new bevy versions quickly and is not plagued by dependency incompatibilities (like requiring rapier and bevy to use the same version of glam). Prepares for the Bevy 0.19 update in #404. As noted in dimforge/bevy_rapier#694, rapier skipped the glam version used by Bevy 0.19, so making them work together is cumbersome (and not even using a git version of bevy_rapier would work). Using avian instead of bevy_rapier allows us to update bevy without waiting for a solution and avoids similar problems in the future. As far as I can tell, nothing about the game feels significantly different with this change applied. One ugly hack was necessary to make it work correctly, marked by a comment.
134decb to
06c3421
Compare
|
@sebcrozet I created a branch on my fork of Rapier for The only remaining issue is with Thanks! |
- [x] Waiting for StarArawn/bevy_ecs_tilemap#634 - [x] Depends on #405, as there is not even a git version of bevy_rapier with support for 0.19, and there may not be for some time due to the dependency incompatibilities noted in dimforge/bevy_rapier#694 - [x] Decide how to deal with inconsistent sprite ordering (caused by the avian migration, not Bevy 0.19) ~With the platformer example I'm seeing inconsistent sprite ordering between the player and the chests after the update to 0.19. See #404 (comment) I've also given this a superficial test with a simple personal project. I didn't notice any obvious issues here.
|
Thank you! |
This PR begins the update to Bevy 0.19.0.
What has been done
bevyto0.19.0glamto0.32.1bevy_inspector_eguito0.37.0bevy_eguito0.40.0bevy_mod_debugdumpto0.16.0Remaining blockers
The main issue is a glam version conflict:
glam 0.32.1glamx 0.1.3(used byrapier 0.32.0andparry 0.26.1) depends onglam 0.30.10Update path
glamx 0.2.0matchesglam 0.32.1perfectly.However, the latest
rapier 0.33.0andparry 0.28.0have already moved toglamx 0.3.0(which usesglam 0.33)Once the version conflict is resolved, remaining Bevy 0.19 API changes will be addressed.
Feedback is welcome.