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.10 #324

Merged
merged 19 commits into from Mar 7, 2023
Merged

Update to Bevy 0.10 #324

merged 19 commits into from Mar 7, 2023

Conversation

irate-devil
Copy link
Contributor

@irate-devil irate-devil commented Feb 6, 2023

DetectDespawn was removed. It existed to make sure that removed components were not missed. This should no longer be an issue as RemovedComponents is now backed by an Events<T> which keeps the events around for an extra frame.

Supercedes #331

Tasks

src/plugin/plugin.rs Outdated Show resolved Hide resolved
@rparrett
Copy link
Contributor

rparrett commented Mar 4, 2023

Bevy 0.10 will now use glam 0.23. Should probably upgrade here too.

Related #331

bevy_rapier2d/Cargo.toml Outdated Show resolved Hide resolved
@irate-devil irate-devil marked this pull request as ready for review March 7, 2023 12:11
Copy link
Member

@sebcrozet sebcrozet left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@@ -72,20 +72,23 @@ pub fn setup_physics(mut commands: Commands) {

fn cast_ray(
mut commands: Commands,
windows: Res<Windows>,
windows: Query<&Window>,
Copy link

Choose a reason for hiding this comment

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

Should you add With<PrimaryWindow> filter here to keep the previous behavior? I see you were calling get_primary() to get the window.

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, I merged right before seeing your comment. I think this is a good point. I’ll make the change with the release.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The example already didn't support multiple windows so it's effectively the same.
I just followed what Bevy's examples do, but I'll leave it up to seb

Copy link

Choose a reason for hiding this comment

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

No worries! I'm anxious for this new release tbh. 😆

Thanks everyone!

@sebcrozet sebcrozet merged commit f884f5e into dimforge:master Mar 7, 2023
3 checks passed
@irate-devil irate-devil deleted the bevy-0.10 branch November 1, 2023 12:23
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

6 participants