Skip to content
Discussion options

You must be logged in to vote

You need to add a Without filter to the cam_q query. This allows bevy to tell cam_q and light_q do not overlap, and therefore can run safely without violating rust's borrowing rules:

    cam_q: Query<&Transform, (With<FlyCam>, Without<PointLight>)>,

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zzhgithub
Comment options

Answer selected by zzhgithub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants