Need help with iter_combinations #17180
Replies: 1 comment
-
Fixed: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
`fn Step(
mut query: Query<&mut Ball>,
win: Single<&mut Window>,
) {
// Get the window dimensions
let res = win.resolution.clone();
let mut vx: f32;
let mut vy: f32;
let mut vx2: f32;
let mut vy2: f32;
let mut d: f32;
let mut dot: f32;
let mut query = query.iter_combinations_mut();
}`
Hello! I'm struggling with iter_combinations:
For some reason when I'm running my program I'm having an issue with physics: every ball is having defferent ticking rate and as a result one of them is not being processed, others having defferent insance processing speeds, and only one is having normal processing speed
I've at first tried to use nested loops, but borrower haven't allowed it
I can't figure out what I'm doing wrong.
Violet = no updates
Red = way more updates
Blue = right amount of updates
Beta Was this translation helpful? Give feedback.
All reactions