Skip to content
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.11 #380

Merged
merged 12 commits into from Jul 10, 2023
Merged

Update to Bevy 0.11 #380

merged 12 commits into from Jul 10, 2023

Conversation

irate-devil
Copy link
Contributor

@irate-devil irate-devil commented Jun 12, 2023

Blocked on dimforge/nalgebra#1242 and, of course, the Bevy 0.11 release.

To use bevy_rapier with Bevy 0.11 now, add the following to your Cargo.toml.

[dependencies]
bevy = "0.11"
bevy_rapier2d = "0.22"
# or
bevy_rapier3d = "0.22"

Changes

  • The PhysicsSet sets are now run inside of the PostUpdate schedule, as opposed to runnning before it as base sets.
  • Removed the vendored debug lines plugin in favor of Bevy's new built in debug line drawing.
  • In Bevy 0.11 with default-features = false it enables WebGPU support but requires --cfg=web_sys_unstable_apis to be passed to rustc for it to compile. I've enabled the webgl2 feature for bevy in the wasm-test ci so it uses WebGL2 like Bevy 0.10 and compiles again.
  • FromReflect no longer needs to be derived separately from Reflect.
  • Examples now use the updated add_plugins api.

Copy link
Sponsor Contributor

@Aceeri Aceeri left a comment

Choose a reason for hiding this comment

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

LGTM, the removal of always on top is a bit unfortunate but I think the tradeoff here is more than worth it.

@irate-devil
Copy link
Contributor Author

always_on_top now exists as the depth_bias setting within Bevy.
(always_on_top: true is identical to depth_bias: -1.)

@Aceeri
Copy link
Sponsor Contributor

Aceeri commented Jul 7, 2023

Ohhhh, that is even nicer than always_on_top 👍

@irate-devil irate-devil marked this pull request as ready for review July 9, 2023 20:37
@irate-devil
Copy link
Contributor Author

This is good to go!

@sebcrozet
Copy link
Member

Perfect, thanks!

@sebcrozet sebcrozet merged commit 17c57e0 into dimforge:master Jul 10, 2023
3 checks passed
@irate-devil irate-devil deleted the bevy-0.11 branch November 1, 2023 12:24
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.

None yet

3 participants