Swapping particles one tick late #8828
Unanswered
100-TomatoJuice
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a falling sand simulation where particles that are denser can swap with lesser dense particles. With the code below, the particles do swap, but the
other_entity
takes one tick of the simulation to update its position. According to logs, the positions do correctly swap, but this change isn't seen until the next tick. I'm usingbevy_ecs_tilemap
if that changes anything. I'm happy to give more information about the problem if needed.What happens
▒ Sand (moving ↓) __________________ One tick later_ █ Water
█ Water (still)_____ ▒ Sand + Water_________________ ▒ Sand
What should happen
▒ Sand (moving ↓) _ Same tick _ █ Water
█ Water (still)___________________▒ Sand
Beta Was this translation helpful? Give feedback.
All reactions