Skip to content

Port platformer example from bevy_rapier to avian#405

Merged
Trouv merged 1 commit into
Trouv:mainfrom
neocturne:avian
Jun 27, 2026
Merged

Port platformer example from bevy_rapier to avian#405
Trouv merged 1 commit into
Trouv:mainfrom
neocturne:avian

Conversation

@neocturne

Copy link
Copy Markdown
Contributor

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.

@neocturne neocturne mentioned this pull request Jun 26, 2026
3 tasks

@Trouv Trouv left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the split, main's git log will look better when squashing these individually.

Comment thread examples/platformer/walls.rs Outdated
Comment thread examples/platformer/main.rs Outdated
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
Trouv merged commit c34db11 into Trouv:main Jun 27, 2026
5 checks passed
@neocturne
neocturne deleted the avian branch June 27, 2026 18:33
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants