Port platformer example from bevy_rapier to avian#405
Merged
Conversation
Trouv
reviewed
Jun 26, 2026
Trouv
left a comment
Owner
There was a problem hiding this comment.
Thanks for the split, main's git log will look better when squashing these individually.
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).
Trouv
approved these changes
Jun 27, 2026
Trouv
pushed a commit
that referenced
this pull request
Jul 5, 2026
- [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.
Trouv
added a commit
that referenced
this pull request
Jul 5, 2026
🤖 I have created a release *beep* *boop* --- ## [0.15.0](v0.14.0...v0.15.0) (2026-07-05) ### ⚠ BREAKING CHANGES * upgrade to bevy 0.19 ([#404](#404)) ### Features * set per-tile opacity in tile maker ([#400](#400)) ([351986c](351986c)) * upgrade to bevy 0.19 ([#404](#404)) ([5c48dcb](5c48dcb)) ### Bug Fixes * map Array<FilePath> field to correct FieldValue variant ([#403](#403)) ([564dcb7](564dcb7)) ### Documentation Changes * add bevy_ecs_ldtk 0.15 to compatibility chart ([#407](#407)) ([8954fb5](8954fb5)) ### Example Changes * port platformer example from bevy_rapier to avian ([#405](#405)) ([c34db11](c34db11)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.