Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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

tim-blackbird
Copy link
Contributor

@tim-blackbird tim-blackbird 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
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.

@tim-blackbird
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
Contributor

Aceeri commented Jul 7, 2023

Ohhhh, that is even nicer than always_on_top 👍

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

This is good to go!

@sebcrozet
Copy link
Member

Perfect, thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants